Hello,

I'm new to CouchDB. 

I've successfully installed and used CouchDB 1.0.1 on Mac OS X.

MacOS X Installation summary
---------------------------------------

sudo port install icu erlang spidermonkey curl

Then conventional installation from source

apache-couchdb-1.0.1.tar.gz

Automated Linux installation
---------------------------------------

sudo yum install couchdb

Installs a runnable couchdb

couchdb.x86_64                         0.11.2-2.el5                    installed


Manual Linux Installation summary - apache-couchdb-1.0.1.tar.gz
-----------------------------------------------------------------------------------

(Details attached)

Manually from sources - no errors during build / install 

When run via

sudo -u couchdb couchdb

Multiple errors - samples below - full log in attachment

> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: eacces. Target: .. Function: read_file_info. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: eacces. Target: ./beam_lib.beam. Function: get_file. Process: code_server."}

 =CRASH REPORT==== 10-Oct-2010::17:35:37 ===
>   crasher:
>     initial call: application_master:init/4
>     pid: <0.29.0>
>     registered_name: []
>     exception exit: {bad_return,
>                         {{couch_app,start,
>                              [normal,
>                               ["/usr/local/couchdb-1.0.1/etc/couchdb/default.ini",
>                                "/usr/local/couchdb-1.0.1/etc/couchdb/local.ini"]]},
>                          {'EXIT',
>                              "libicuuc.so.44: cannot open shared object file: No such file or directory"}}}
>       in function  application_master:init/4

This second error suggests that the appropriate libraries are not accessible - however, they show up with correct ownership and permissions.

Any insights would be appreciated.


Regards,

Tracy Flynn




wget http://curl.haxx.se/download/curl-7.20.1.tar.gz
tar xzf curl-7.20.1.tar.gz
cd curl-7.20.1
./configure --prefix=/usr/local
make
sudo make install

wget http://www.erlang.org/download/otp_src_R14B.tar.gz
tar xvf otp_src_R14B.tar.gz
cd otp_src_R14B
./configure --prefix=/usr/local
make
sudo make install

wget http://download.icu-project.org/files/icu4c/4.4.2/icu4c-4_4_2-src.tgz
tar xvf icu4c-4_4_2-src.tgz
cd icu/source
./configure --prefix=/usr/local
make
sudo make install

wget http://ftp.mozilla.org/pub/mozilla.org/js/js-1.8.0-rc1.tar.gz
tar xzf js-1.8.0-rc1.tar.gz 
mv js js-1.8.0-rc1
cd js-1.8.0-rc1
cd src
gmake -f Makefile.ref
// Manual installation
sudo cp Linux_All_DBG.OBJ/libjs.so /usr/local/lib
sudo cp Linux_All_DBG.OBJ/js /usr/local/bin
sudo cp Linux_All_DBG.OBJ/jscpucfg /usr/local/bin
sudo cp Linux_All_DBG.OBJ/jskwgen /usr/local/bin
sudo mkdir -p /usr/local/include/js
sudo cp *.h /usr/local/include/js/
sudo cp *.tbl /usr/local/include/js/
sudo cp Linux_All_DBG.OBJ/*.h  /usr/local/include/js/


wget 
http://mirror.atlanticmetro.net/apache//couchdb/1.0.1/apache-couchdb-1.0.1.tar.gz
tar xzf apache-couchdb-1.0.1.tar.gz
cd apache-couchdb-1.0.1
./configure --prefix=/usr/local/couchdb-1.0.1
make
sudo make install

sudo vi /usr/local/couchdb-1.0.1/etc/couchdb/local.ini
sudo /usr/sbin/adduser -r --home /usr/local/couchdb-1.0.1/var/lib/couchdb -M 
--shell /bin/bash  --comment "CouchDB Administrator" couchdb

sudo -E chown -R couchdb:couchdb /usr/local/couchdb-1.0.1/etc/couchdb
sudo -E chown -R couchdb:couchdb /usr/local/couchdb-1.0.1/var/lib/couchdb
sudo -E chown -R couchdb:couchdb /usr/local/couchdb-1.0.1/var/log/couchdb/
sudo -E chown -R couchdb:couchdb /usr/local/couchdb-1.0.1/var/run/couchdb

export PATH=/usr/local/couchdb-1.0.1/bin:${PATH}
sudo -u couchdb couchdb

which couchdb
> /usr/local/couchdb-1.0.1/bin/couchdb

sudo -u couchdb couchdb

> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: .. Function: read_file_info. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./beam_lib.beam. Function: get_file. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./file.beam. Function: get_file. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./ram_file.beam. Function: get_file. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./standard_error.beam. Function: get_file. Process: 
> code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./supervisor_bridge.beam. Function: get_file. Process: 
> code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./user_sup.beam. Function: get_file. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./user.beam. Function: get_file. Process: code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./kernel_config.beam. Function: get_file. Process: 
> code_server."}
> {error_logger,{{2010,10,10},{17,35,37}},std_error,"File operation error: 
> eacces. Target: ./queue.beam. Function: get_file. Process: code_server."}
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: read_file_info. Process: 
> code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./beam_lib.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./file.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ram_file.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./standard_error.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./supervisor_bridge.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./user_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./user.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./kernel_config.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> {lost_messages,1}
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./error_logger_tty_h.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./io_lib.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./io_lib_format.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./io_lib_pretty.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./io.beam. Function: get_file. Process: 
> code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./unicode.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_scan.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./c.beam. Function: get_file. Process: 
> code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_eval.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./orddict.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./file_io_server.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_posix_msg.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> file:path_eval([".","/home/tflynn"],".erlang"): permission denied
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./proplists.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_parse.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch_app.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./crypto_app.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./crypto_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./crypto_server.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./sasl.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./sasl_report_tty_h.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./calendar.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./alarm_handler.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./sasl_report.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./overload.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./release_handler.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./inets_app.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./inets_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ftp_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc_profile_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc_manager.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./inets.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc_cookie.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpc_handler_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./httpd_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./tftp_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./timer.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: .. Function: list_dir. Process: 
> application_controller.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_app.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_broker_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_manager.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_certificate_db.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_session_cache.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ssl_connection_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ibrowse_app.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ibrowse_sup.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./ibrowse.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./mochiweb_app.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./mochiweb_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch_server_sup.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch_config.beam. Function: 
> get_file. Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch_util.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./re.beam. Function: get_file. Process: 
> code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./string.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./couch_server.beam. Function: 
> get_file. Process: code_server.
> Apache CouchDB 1.0.1 (LogLevel=info) is starting.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_ddll.beam. Function: get_file. 
> Process: code_server.
> 
> =CRASH REPORT==== 10-Oct-2010::17:35:37 ===
>   crasher:
>     initial call: application_master:init/4
>     pid: <0.29.0>
>     registered_name: []
>     exception exit: {bad_return,
>                         {{couch_app,start,
>                              [normal,
>                               
> ["/usr/local/couchdb-1.0.1/etc/couchdb/default.ini",
>                                
> "/usr/local/couchdb-1.0.1/etc/couchdb/local.ini"]]},
>                          {'EXIT',
>                              "libicuuc.so.44: cannot open shared object file: 
> No such file or directory"}}}
>       in function  application_master:init/4
>     ancestors: [<0.28.0>]
>     messages: [{'EXIT',<0.30.0>,normal}]
>     links: [<0.28.0>,<0.7.0>]
>     dictionary: []
>     trap_exit: true
>     status: running
>     heap_size: 987
>     stack_size: 24
>     reductions: 173
>   neighbours:
> 
> =INFO REPORT==== 10-Oct-2010::17:35:37 ===
>     application: couch
>     exited: {bad_return,{{couch_app,start,
>                                     [normal,
>                                      
> ["/usr/local/couchdb-1.0.1/etc/couchdb/default.ini",
>                                       
> "/usr/local/couchdb-1.0.1/etc/couchdb/local.ini"]]},
>                          {'EXIT',"libicuuc.so.44: cannot open shared object 
> file: No such file or directory"}}}
>     type: temporary
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./lib.beam. Function: get_file. 
> Process: code_server.
> 
> =ERROR REPORT==== 10-Oct-2010::17:35:37 ===
> File operation error: eacces. Target: ./erl_internal.beam. Function: 
> get_file. Process: code_server.

Reply via email to