2016-08-14 41 views
0

我一直在嘗試在數字海洋液滴中的新鮮centos7上安裝CouchDB。我沒有得到任何錯誤,試圖用下面的步驟來安裝:CouchDB不會啓動badmatch錯誤bad_return CentOS7

yum -y update 
yum -y groupinstall "Development Tools" 
yum -y install libicu-devel curl-devel ncurses-devel libtool libxslt fop java-1.6.0-openjdk java-1.6.0-openjdk-devel unixODBC unixODBC-devel openssl-devel 


Step 2 - Installing Erlang 

wget http://www.erlang.org/download/otp_src_R16B02.tar.gz 
tar -zxvf otp_src_R16B02.tar.gz 
cd otp_src_R16B02 
./configure && make 
make install 



Step 3 - Installing the SpiderMonkey JS Engine 

wget http://ftp.mozilla.org/pub/mozilla.org/js/js185-1.0.0.tar.gz 
tar -zxvf js185-1.0.0.tar.gz 
cd js-1.8.5/js/src 
./configure && make 
make install 


Step 4 - Installing CouchDB 

wget http://mirror.olnevhost.net/pub/apache/couchdb/source/1.6.1/apache-couchdb-1.6.1.tar.gz 
tar -xvf apache-couchdb-1.6.1.tar.gz 
cd apache-couchdb-1.6.1 
./configure && make 
make install 


Step 5 - Setting up CouchDB 

adduser --no-create-home couchdb 
chown -R couchdb:couchdb /usr/local/var/lib/couchdb /usr/local/var/log/couchdb /usr/local/var/run/couchdb 
ln -sf /usr/local/etc/rc.d/couchdb /etc/init.d/couchdb 
chkconfig --add couchdb 
chkconfig couchdb on 


vi /usr/local/etc/couchdb/local.ini 
Should you need to access couchdb from the web, in the [httpd] section, look for a setting called bind_address and change it to 0.0.0.0 - this will make CouchDB bind all available addresses. 

[httpd] 
port = 5984 
bind_address = 0.0.0.0 

service couchdb start 
/etc/init.d/couchdb status (this has no output) 

,我得到下面的時候我嘗試運行:

/usr/local/bin/couchdb 
Apache CouchDB 1.6.1 (LogLevel=info) is starting. 
{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default.ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_secondary_services,{shutdown,{",[]},{couch_uuids,new_prefix,0,[{file,"couch_uuids.erl"},{line,84}]},{couch_uuids,state,0,[{file,"couch_uuids.erl"},{line,100}]},{couch_uuids,init,1,[{file,"couch_uuids.erl"},{line,50}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,304}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,239}]}]}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}} 

Crash dump was written to: erl_crash.dump 
init terminating in do_boot() 

有誰知道如何讓過去呢?

注意試圖從here

回答

1

答案您可以檢查是否二郎,加密是也許沒有安裝一個單獨的模塊,當我得到no such file or directory

CouchDB沒有(imho的確如此)沒有考慮分發分裂的單片發佈的Erlang安裝。

在UUID模塊中引發了您的錯誤,我能立即想到的唯一事情就是可能會丟失的加密依賴項。

+0

感謝您的帖子。我還沒有時間來測試這個。幾天後,我問服務器問題,我將服務器切換到Ubuntu。鑑於此項目首選centos,我仍然打算對其進行測試。 – jtlindsey