问题描述
-
使用setup-couchdb-1.4.0_R16B01.exe在Windows 7 x64上安装了全新的Apache CouchDB。
Did a fresh install of Apache CouchDB on Windows 7 x64, using setup-couchdb-1.4.0_R16B01.exe
可以访问被褥没有任何问题
Can access futon without any problem
可以以编程方式创建数据库并添加文档(包括视图)
Can programmatically create databases and add documents (including views)
执行视图时,获取以下粘贴的错误(即使在Futon中执行最简单的默认未编辑临时map-reduce)
Get the error pasted below when executing a view (even when executing the simplest default non-edited temporary map-reduce in Futon
map:function(doc){emit(null,doc);}
在浏览器弹出窗口中显示相同的确切错误文字)
注意:
- 路径c:/cygwin/relax/APACHE~1.0/src/couchdb/在我的机器上不存在...
- 我已经尝试卸载1.4版本.0替换为1.3.0甚至更老的1.2.0,但同样的问题总是发生。
错误消息:
{"error":"EXIT",
"reason":"{{badmatch,\n
{error,\n
{enoent,\n
[{erlang,open_port,\n
[{spawn,\n
\"c:/Program Files (x86)/Apache Software Foundation/CouchDB/lib/couch-1.4.0/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js\"},\n
[stream,{line,4096},binary,exit_status,hide]],\n
[]},\n
{couch_os_process,init,1,\n
[{file,\n
\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_os_process.erl\"},\n
{line,148}]},\n
{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,304}]},\n
{proc_lib,init_p_do_apply,3,\n
[{file,\"proc_lib.erl\"},{line,239}]}]}}},\n
[{couch_query_servers,new_process,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,477}]},\n
{couch_query_servers,lang_proc,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,462}]},\n
{couch_query_servers,handle_call,3,\n
[{file,\"c:/cygwin/relax/APACHE~1.0/src/couchdb/couch_query_servers.erl\"},\n
{line,334}]},\n {gen_server,handle_msg,5,[{file,\"gen_server.erl\"},{line,585}]},\n
{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,239}]}]}"}
推荐答案
运行 http:// localhost:5984 / _utils的结果是什么/verify_install.html
?
这个错误通常发生在人们安装到af ilesystem与ntfs 8.3文件管理禁用。各种调整和性能工具为您而不理解后果。
This error usually happens when people install to a filesystem with ntfs 8.3 filename mangling disabled. Various "tune-up" and performance tools do this for you without understanding the consequences.
最简单的修复是安装到没有空格的目录,例如 c:\couchdb
。
Easiest fix is to install to a directory without spaces, e.g. c:\couchdb
.
奇怪的c:\cygwin ...行出来,因为当CouchDB已建成编译错误消息,相对于构建目录而不是您以后的安装目录返回文件名和行号。
The weird c:\cygwin... lines come up because when CouchDB is built & compiled, error messages are returned with filenames and line numbers present, relative to the build directory, not your future install directory.
此外,couchdb邮件列表是最好的地方要求支持(我读到: - )。
Also, the couchdb mailing list is the best place to ask for support (I read it :-).
这篇关于除了在win7 x64上执行视图外,CouchDB安装正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!