在SUSE LINUX上编译安装CouchDB1.5.0

按照这个步骤装了两台,在SUSE上安装是没有问题了,打包的话还在研究,查了一下光拷贝编译后文件有些问题。 

软件版本及依赖: 
1.SpiderMonkey 1.7.0 
2.icu4c 4.2.1 
3.libcurl 7.36.0 
4.ncurses 5.9 
5.openssl 1.0.1g 
6.erlang R16B03 依赖 ncurses、openssl 
7.couchDB 1.5.0 依赖上述所有 

SpiderMonkey: js-1.7.0.tar.gz 

1 tar
2 cd 
3 make 
4 make BUILD_OPT=1 JS_DIST=/usr/local -f Makefile.ref export

 


icu4c : icu4c-53_1-src.tar 

1 tar
2 cd washome/couchdbinstall/icu/src 
3 ./configure 
4 make && make install

 


libcurl:curl-7.36.0.tar.gz 

1 tar
2 cd XX
3 ./configure && make && make install

 


ncurses :ncurses-5.9.tar.gz 

1 tar
2 cd XX
3 ./configure && make && make install

 


openssl:openssl-1.0.1g.tar.gz 

1 tar
2 cd
3 ./config -fPIC --prefix=/usr/local/openssl 
4 make && make install 
5 vi etc/ld.so.conf   
6 /usr/local/openssl/lib
7 export OPENSSL=/usr/local/openssl/bin 
8 export PATH=$OPENSSL:$PATH:$HOME/bin

 


erlang:otp_src_R16B03.tar.gz 

1 tar
2 ./configure --prefix=/usr/local/ --with-ssl=/usr/local/openssl --without-javac
3 make && make install

 


couchdb:apache-couchdb-1.5.0.tar.gz 

1 tar
2 ./configure --with-js-lib=/usr/local/spidermonkey/lib64 --with-js-include=/usr/local/spidermonkey/include --prefix=/washome/mycouchdb 
3 make && make install

 

修改couchdb安装目录etc/couchdb/default.ini 
中的bind ip 
如报错libicu.s0.53不能打开对象 则export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/spidermonkey/lib 
或设置环境变量 

posted on 2016-09-27 23:38  assd2001  阅读(525)  评论(0编辑  收藏  举报

导航