tag:blogger.com,1999:blog-37642571.post7328959023724720834..comments2024-03-20T02:30:44.457-07:00Comments on Thinking In Software: Installing CouchDB in UbuntuNestor Urquizahttp://www.blogger.com/profile/12351754666722274569noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-37642571.post-83560367599529538962012-02-03T06:03:30.721-08:002012-02-03T06:03:30.721-08:00@rizalp
I have installed couchdb in several Ubunt...@rizalp<br /><br />I have installed couchdb in several Ubuntu boxes and the steps here are the ones that lately have been working for me.<br /><br />There could be other ways for sure. I tried several in the past and probably those in wiki are fine now. My recommendation would be to try them and if they work for you and they are simpler of course use them instead of mine.<br /><br />In regards to what the lines are doing it is basically pivoting the result of 'whereis couchdb' command to change the ownership to the proper user. Then xulrunner.conf is populated with the current xulrunner version and finally couchdb is started as a process and schedule to start next time the box is restarted. BTW in production I really use monit to keep the daemon up and running.Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-50971715276695555982012-02-03T05:14:19.839-08:002012-02-03T05:14:19.839-08:00Thanks for the reply! I couldn't help but noti...Thanks for the reply! I couldn't help but notice that your steps here is slightly different from mentioned here (Example 2 with minimal dependencies): <br /><br />http://wiki.apache.org/couchdb/Installing_on_Ubuntu<br /><br />This is the first time i'm installing from the source. I have tried to read both and trying to understand the concept, but kinda lost in here :<br /><br />#from the link above, the last line<br />sudo chmod 0770 ${prefix}/var/{lib,log,run}/couchdb ${prefix}/etc/couchdb<br /><br />while your steps here are different : <br />$ for dir in `whereis couchdb | sed 's/couchdb: //'`; do echo $dir | xargs sudo chown couchdb; done<br />$ export xulrunnerversion=`xulrunner -v 2>&1 > /dev/null | egrep -o "([0-9]{1,2})(\.[0-9]{1,2})+"`<br />$ echo $xulrunnerversion<br />$ echo "/usr/lib/xulrunner-$xulrunnerversion" > /etc/ld.so.conf.d/xulrunner.conf<br />$ echo "/usr/lib/xulrunner-devel-$xulrunnerversion" >> /etc/ld.so.conf.d/xulrunner.conf<br />$ sudo ln -s /usr/local/etc/init.d/couchdb /etc/init.d/couchdb<br />$ update-rc.d couchdb defaults<br />$ /etc/init.d/couchdb start<br />$ curl -X GET http://localhost:5984<br />{"couchdb":"Welcome","version":"1.1.1a1187726"}<br /><br />If you don't mind, would you explain to me why? Thanks for your timerizalphttps://www.blogger.com/profile/15775856840955105567noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-36013949708919060812012-02-02T08:35:27.363-08:002012-02-02T08:35:27.363-08:00@Rizalp
Thank you for the correction. Actually I ...@Rizalp<br /><br />Thank you for the correction. Actually I added three lines instead, that way when restarting you make sure couchdb starts automatically and you keep the expected by the OS path (/etc/init.d/couchdb)<br /><br />In addition you might want to take a second look at the way I have automated the xulrunner version configuration. Now it is ready to go in a receipt ;-)Nestor Urquizahttps://www.blogger.com/profile/12351754666722274569noreply@blogger.comtag:blogger.com,1999:blog-37642571.post-20866723698753971702012-02-02T04:51:06.806-08:002012-02-02T04:51:06.806-08:00Hi, these steps are really helping when building c...Hi, these steps are really helping when building couchdb from source. I notice that this line:<br /><br />sudo /etc/init.d/couchdb start<br /><br />should be:<br /><br />sudo ${prefix}/etc/init.d/couchdb startrizalphttps://www.blogger.com/profile/15775856840955105567noreply@blogger.com