去apache下載到couchDB 1.1.1版本,在debian上解壓到目錄couchDB,進(jìn)入目錄,命令:
./configure
報錯:
configure: error: Could not find the js library.
Is the Mozilla SpiderMonkey library installed?
需要先安裝SpiderMonkey,這是一個JS的引擎由Mozilla基金維護(hù),安裝不難,下載地址
http://ftp.mozilla.org/pub/mozilla.org/js/
下載了1.7那個,然后在debian上解壓,進(jìn)入js/src,命令:
make BUILD_OPT=1 -f Makefile.ref
命令:
make BUILD_OPT=1 JS_DIST=/usr/local -f Makefile.ref export
然后再去couchDB那兒
./configure
報錯:
configure: error: Your SpiderMonkey library is too new.
真讓人難受不是,現(xiàn)在卸載1.7的SM,根據(jù)當(dāng)時make的信息,在usr/local/的目錄下bin,lib,included子目錄下刪除make命令拷貝進(jìn)去的東西,然后回過來把整個SpiderMonkey都刪除了。接著下載js185-1.0.0版本,解壓,進(jìn)入到src目錄,命令
./configure
make
編譯完成后,回去配置couchDB,說找不到spider的庫,因?yàn)椋@個185xx的版本沒有那個拷貝庫到usr/local/lib的流程,所以,在configure的時候設(shè)置庫路徑參數(shù),命令:
./configure --with-js-lib=/usr/local/spidermonkey/lib --with-js-include=/usr/local/spidermonkey/include
把路徑改成到src目錄的路徑。這樣之后報錯:
The icu-config script could not be found.
安裝icu似乎很簡單,命令
apt-get install libicu-dev
然后在像上面那樣configure,報錯:
Could not find the `erl' executable. Is Erlang installed?
安裝erl,,命令:
apt-get install erlang-nox erlang-dev
安裝好了,在按上面的命令configure,哦yeah,提示:You have configured Apache CouchDB, time to relax.,接下來,命令
make install
然后,哈哈!提示我:You have installed Apache CouchDB, time to relax.