couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "Installing_on_Ubuntu" by nberveiler
Date Fri, 24 Sep 2010 03:27:54 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Installing_on_Ubuntu" page has been changed by nberveiler.
The comment on this change is: Added an alternate set of Example 1 install directions that
installs to /usr/local/, keeping the new installation away from pre-installed 0.10.0 files.
http://wiki.apache.org/couchdb/Installing_on_Ubuntu?action=diff&rev1=54&rev2=55

--------------------------------------------------

  curl http://127.0.0.1:5984/
  # {"couchdb":"Welcome","version":"1.0.1"}
  }}}
+ 
+ === Example 1 (Alternate) ===
+ The default installation of Ubuntu desktop 10.04 has a lot of version 0.10.0 CouchDB files
and I did not want to worry about having them mixed with my source installed files.
+ 
+ This set of install instructions is modified from Example 1 and places all current CouchDB
files within the /usr/local/ tree. Any other CouchDB related files outside of /usr/local/
can be deleted or ignored.
+ 
+ {{{
+ 
+ sudo su
+ # Install dependencies required to build couchdb from source
+ apt-get build-dep couchdb
+ cd /opt
+ # download the latest release from http://couchdb.apache.org/downloads.html
+ # wget <url>
+ tar xvzf apache-couchdb-x.xx.x.tar.gz
+ cd apache-couchdb-x.xx.x
+ 
+ # see xulrunner directions below and do them this fixes problem where basic test suite fails
to run.
+ # Note: To check what XULRunner version you have installed use xulrunner -v
+ ./configure --prefix=/usr/local/ --with-js-lib=/usr/lib/xulrunner-devel-x.x.x.x/lib --with-js-include=/usr/lib/xulrunner-devel-x.x.x.x/include
+ 
+ # Test installation, you will have problems regarding libmozjs and xulrunner here if you
have not already corrected them
+ make check
+ 
+ # Now you can compile and install couchdb
+ make && make install
+ 
+ # vi /etc/passwd here and change home directory to /usr/local/var/lib/couchdb/, couchdb
user is created during make && make install
+ 
+ # change file ownership from root to couchdb user and adjust permissions
+ chown -R couchdb: /usr/local/var/{lib,log,run}/couchdb /usr/local/etc/couchdb
+ chmod 0770 /usr/local/var/{lib,log,run}/couchdb/
+ chmod 664 /usr/local/etc/couchdb/*.ini
+ chmod 775 /usr/local/etc/couchdb/*.d
+ 
+ # start couchdb
+ cd /etc/init.d
+ ln -s /usr/local/etc/init.d/couchdb couchdb
+ /etc/init.d/couchdb start
+ # Start couchdb on system start
+ update-rc.d couchdb defaults
+ 
+ # Verify couchdb is running
+ curl http://127.0.0.1:5984/
+ # {"couchdb":"Welcome","version":"1.0.1"}
+ 
+ # run test suite in firefox at http://127.0.0.1:5984/_utils/couch_tests.html?script/couch_tests.js
+ 
+ }}}
+ 
+ 
+ 
  === Example 2 (with minimal dependencies) ===
  Tested with CouchDB versions: 0.11.0, 1.0.0
  
@@ -127, +179 @@

  {{{
  sudo vi /etc/ld.so.conf.d/xulrunner.conf
  }}}
+ Note: To check what XULRunner version you have installed use xulrunner -v
+ 
  Then add the following lines to the file (You may need to change the library version to
match whats installed):
  
  {{{
- /usr/lib/xulrunner-1.9.2.8
+ /usr/lib/xulrunner-x.x.x.x
- /usr/lib/xulrunner-devel-1.9.2.8
+ /usr/lib/xulrunner-devel-x.x.x.x
  }}}
  Once the configuration files is created and saved, you will need to run ldconfig:
  

Mime
View raw message