I installed 1.1.0 without any patch and it works. So, try without.
On 09/26/2011 10:22 PM, Robert Jones wrote:
When attempting to build couchdb I get the following error: checking for pthread_create in -lpthread... yes ./configure: line 12347: syntax error near unexpected token `mozjs185,' ./configure: line 12347: `PKG_CHECK_EXISTS(mozjs185, JS_LIB_BASE=mozjs185,)' This instance of configure is kicked off as part of the make process. The original configure completes just fine, that is, it does not barf on the pkg-config autoconf macros. I am not an AutoTools guru so I'm struggling with the issue here. Any advice would be appreciated. I'm working with couchdb-1.1.0. I've applied patches from the following Jira Issue: https://issues.apache.org/jira/browse/COUCHDB-1078?page=com.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel#issue-tabs Specifically, I applied the mozjs1.8.5.patch, followed by the couchjs_ff185.patch. Here is the output after a successful configure and kicking off the make: config.status: executing libtool commands You have configured Apache CouchDB, time to relax. Run `make&& sudo make install' to install. + export ERL_LIBS=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/../erlang/lib + ERL_LIBS=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/../erlang/lib + make -s cd .&& /bin/sh /home/user/minimal-couchdb-sm/couchdb/build-aux/missing --run automake-1.11 --foreign running CONFIG_SHELL=/bin/sh /bin/sh ./configure --prefix=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/couchdb --with-erlang=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/otp_rel/usr/include --with-js-include=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/mozilla-current/mozilla-central/js/src/dist/include --with-js-lib=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/build/deps/mozilla-current/mozilla-central/js/src ERL=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/../erlang/bootstrap/bin/erl ERLC=/home/user/minimal-couchdb-sm/Couchbase-SourceBuild/../erlang/bootstrap/bin/erlc --no-create --no-recursion <snip> checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes ./configure: line 4671: PKG_PROG_PKG_CONFIG: command not found checking for gcc... (cached) gcc <snip> checking for pthread_create in -lpthread... yes ./configure: line 12347: syntax error near unexpected token `mozjs185,' ./configure: line 12347: `PKG_CHECK_EXISTS(mozjs185, JS_LIB_BASE=mozjs185,)' make: *** [config.status] Error 2
