You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Alexandre Corrêa Barbosa <al...@gmail.com> on 2010/09/21 04:25:33 UTC

Error installing CouchDB in Ubuntu

Hi,

I'm trying to install Couchdb on Ubuntu. I've managed to install all
dependencies, and successfully run ./configure. But when I run 'make', I've
got the following error:

/bin/bash ../../../libtool --tag=CC   --mode=link gcc -I/usr/local/include
 -L/usr/local/lib  -g -O2 -module -avoid-version -I/usr/local/include
 -L/usr/local/lib   -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
-I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
-I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
-I/usr/local/include/js -DXP_UNIX  -lm  -o couch_icu_driver.la -rpath
/usr/local/lib/couchdb/erlang/lib/couch-1.0.1/priv/lib
couch_icu_driver_la-couch_icu_driver.lo -licuuc -licudata -licui18n
-L/usr/local/lib -L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
libtool: link: gcc -shared  .libs/couch_icu_driver_la-couch_icu_driver.o
-L/usr/local/lib -L/opt/local/lib -lm -licuuc -licudata -licui18n -lpthread
-lcrypt    -Wl,-soname -Wl,couch_icu_driver.so -o .libs/couch_icu_driver.so
libtool: link: ( cd ".libs" && rm -f "couch_icu_driver.la" && ln -s "../
couch_icu_driver.la" "couch_icu_driver.la" )
cp spawnkillable/couchspawnkillable.sh couchspawnkillable
chmod +x couchspawnkillable
gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
-L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
-I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
-I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
-D_BSD_SOURCE  -g -O2 -MT couchjs-http.o -MD -MP -MF .deps/couchjs-http.Tpo
-c -o couchjs-http.o `test -f 'couch_js/http.c' || echo './'`couch_js/http.c
couch_js/http.c:318: warning: initialization from incompatible pointer type
couch_js/http.c:323: warning: initialization from incompatible pointer type
couch_js/http.c:323: warning: excess elements in struct initializer
couch_js/http.c:323: warning: (near initialization for
‘CouchHTTPFunctions[0]’)
couch_js/http.c:324: warning: initialization from incompatible pointer type
couch_js/http.c:324: warning: excess elements in struct initializer
couch_js/http.c:324: warning: (near initialization for
‘CouchHTTPFunctions[1]’)
couch_js/http.c:325: warning: initialization from incompatible pointer type
couch_js/http.c:325: warning: excess elements in struct initializer
couch_js/http.c:325: warning: (near initialization for
‘CouchHTTPFunctions[2]’)
couch_js/http.c:326: warning: excess elements in struct initializer
couch_js/http.c:326: warning: (near initialization for
‘CouchHTTPFunctions[3]’)
couch_js/http.c: In function ‘install_http’:
couch_js/http.c:346: warning: passing argument 5 of ‘JS_InitClass’ from
incompatible pointer type
/usr/local/include/js/jsapi.h:1858: note: expected ‘JSNative’ but argument
is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval
*, jsval *)’
mv -f .deps/couchjs-http.Tpo .deps/couchjs-http.Po
gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
-L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
-I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
-I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
-D_BSD_SOURCE  -g -O2 -MT couchjs-main.o -MD -MP -MF .deps/couchjs-main.Tpo
-c -o couchjs-main.o `test -f 'couch_js/main.c' || echo './'`couch_js/main.c
couch_js/main.c:251: warning: initialization from incompatible pointer type
couch_js/main.c:251: warning: excess elements in struct initializer
couch_js/main.c:251: warning: (near initialization for
‘global_functions[0]’)
couch_js/main.c:252: warning: initialization from incompatible pointer type
couch_js/main.c:252: warning: excess elements in struct initializer
couch_js/main.c:252: warning: (near initialization for
‘global_functions[1]’)
couch_js/main.c:253: warning: initialization from incompatible pointer type
couch_js/main.c:253: warning: excess elements in struct initializer
couch_js/main.c:253: warning: (near initialization for
‘global_functions[2]’)
couch_js/main.c:254: warning: initialization from incompatible pointer type
couch_js/main.c:254: warning: excess elements in struct initializer
couch_js/main.c:254: warning: (near initialization for
‘global_functions[3]’)
couch_js/main.c:255: warning: initialization from incompatible pointer type
couch_js/main.c:255: warning: excess elements in struct initializer
couch_js/main.c:255: warning: (near initialization for
‘global_functions[4]’)
couch_js/main.c:256: warning: initialization from incompatible pointer type
couch_js/main.c:256: warning: excess elements in struct initializer
couch_js/main.c:256: warning: (near initialization for
‘global_functions[5]’)
couch_js/main.c:257: warning: excess elements in struct initializer
couch_js/main.c:257: warning: (near initialization for
‘global_functions[6]’)
mv -f .deps/couchjs-main.Tpo .deps/couchjs-main.Po
gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
-L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
-I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
-I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
-D_BSD_SOURCE  -g -O2 -MT couchjs-utf8.o -MD -MP -MF .deps/couchjs-utf8.Tpo
-c -o couchjs-utf8.o `test -f 'couch_js/utf8.c' || echo './'`couch_js/utf8.c
mv -f .deps/couchjs-utf8.Tpo .deps/couchjs-utf8.Po
/bin/bash ../../../libtool --tag=CC   --mode=link gcc -D_BSD_SOURCE  -g -O2
-lcurl -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
-I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
-I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
-I/usr/local/include/js -DXP_UNIX  -lm  -o couchjs couchjs-http.o
couchjs-main.o couchjs-utf8.o -lcurl -lmozjs -L/usr/local/lib
-L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
libtool: link: gcc -D_BSD_SOURCE -g -O2 -I/usr/local/lib/erlang/usr/include
-I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
-I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX -o
couchjs couchjs-http.o couchjs-main.o couchjs-utf8.o  -L/usr/local/lib
-L/opt/local/lib -lm /usr/lib/libcurl.so -lmozjs -lpthread -lcrypt
couchjs-http.o: In function `status':
/home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/http.c:289:
undefined reference to `INT_FITS_IN_JSVAL'
couchjs-main.o: In function `readfp':
/home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/main.c:134:
undefined reference to `js_fgets'
collect2: ld returned 1 exit status


Does anyone knows what I'm doing wrong? How can I overcome this?

Thanks,
-- 
Alexandre Corrêa Barbosa
http://log4dev.com - Blog para computeiros
http://job4dev.com - Procurando emprego?

Re: Error installing CouchDB in Ubuntu

Posted by aristides villarreal <av...@gmail.com>.
step
1.

sudo apt-get install automake autoconf libtool help2man  sudo apt-get
install build-essential erlang libicu-dev *xulrunner-dev
*libcurl4-openssl-dev

2.


wget http://apache.linux-mirror.org/couchdb/1.0.1/apache-couchdb-1.0.1.tar.gz
<http://apache.linux-mirror.org/couchdb/1.0.0/apache-couchdb-1.0.0.tar.gz>

3.

wget ftp://ftp.mozilla.org/pub/mozilla.org/js/js-1.7.0.tar.gz


tar zxvf js-1.7.0.tar.gz
cd js/src
export CFLAGS="-DJS_C_STRINGS_ARE_UTF8"
make -f Makefile.ref
sudo JS_DIST=/usr make -f Makefile.ref export

4. cd /home/couchdb

./configure
make
sudo make install

cd /home/avbravo/apache-couchdb-1.0.1


On Tue, Sep 21, 2010 at 11:23 AM, Tyler Gillies <ty...@pdxbrain.com> wrote:

> if you *do* need to install from source use:
> http://github.com/jhs/build-couchdb
>
> --
> http://www.readwriteweb.com/about#tyler
>
> My website: http://list.pdxbrain.com
>



-- 
*-------------------------------------------------------------------------*
Member of NetBeans Dream Team
http://www.netbeans.org/community/contribute/dreamteam.html
http://dreamteam.netbeans.org/
http://wiki.netbeans.org/wiki/view/SpanishTranslation
NetBeans Community Docs Evangelist
http://nb-community-docs.blogspot.com/2008/09/welcome-community-docs-evangelists.html
http://avbravo.blogspot.com

Re: Error installing CouchDB in Ubuntu

Posted by Tyler Gillies <ty...@pdxbrain.com>.
if you *do* need to install from source use:
http://github.com/jhs/build-couchdb

-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: Error installing CouchDB in Ubuntu

Posted by Tyler Gillies <ty...@pdxbrain.com>.
On Tue, Sep 21, 2010 at 8:55 AM, Paul Davis <pa...@gmail.com>wrote:

> Alexandre,
>
> Looks like your version of spidermonkey is incompatible which is odd
> as we should be compatible with everything since 1.7. Can you check
> what version of the spidermonkey lib you've got?
>
> Paul Davis
>
>
They removed spidermonkey in ubuntu 10.04, fwiw, if you don't *need* to
install from source install the release deb file from couchone.com

-- 
http://www.readwriteweb.com/about#tyler

My website: http://list.pdxbrain.com

Re: Error installing CouchDB in Ubuntu

Posted by Paul Davis <pa...@gmail.com>.
Alexandre,

Looks like your version of spidermonkey is incompatible which is odd
as we should be compatible with everything since 1.7. Can you check
what version of the spidermonkey lib you've got?

Paul Davis

2010/9/20 Alexandre Corrêa Barbosa <al...@gmail.com>:
> Hi,
>
> I'm trying to install Couchdb on Ubuntu. I've managed to install all
> dependencies, and successfully run ./configure. But when I run 'make', I've
> got the following error:
>
> /bin/bash ../../../libtool --tag=CC   --mode=link gcc -I/usr/local/include
>  -L/usr/local/lib  -g -O2 -module -avoid-version -I/usr/local/include
>  -L/usr/local/lib   -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
> -I/usr/local/include/js -DXP_UNIX  -lm  -o couch_icu_driver.la -rpath
> /usr/local/lib/couchdb/erlang/lib/couch-1.0.1/priv/lib
> couch_icu_driver_la-couch_icu_driver.lo -licuuc -licudata -licui18n
> -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
> libtool: link: gcc -shared  .libs/couch_icu_driver_la-couch_icu_driver.o
> -L/usr/local/lib -L/opt/local/lib -lm -licuuc -licudata -licui18n -lpthread
> -lcrypt    -Wl,-soname -Wl,couch_icu_driver.so -o .libs/couch_icu_driver.so
> libtool: link: ( cd ".libs" && rm -f "couch_icu_driver.la" && ln -s "../
> couch_icu_driver.la" "couch_icu_driver.la" )
> cp spawnkillable/couchspawnkillable.sh couchspawnkillable
> chmod +x couchspawnkillable
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-http.o -MD -MP -MF .deps/couchjs-http.Tpo
> -c -o couchjs-http.o `test -f 'couch_js/http.c' || echo './'`couch_js/http.c
> couch_js/http.c:318: warning: initialization from incompatible pointer type
> couch_js/http.c:323: warning: initialization from incompatible pointer type
> couch_js/http.c:323: warning: excess elements in struct initializer
> couch_js/http.c:323: warning: (near initialization for
> ‘CouchHTTPFunctions[0]’)
> couch_js/http.c:324: warning: initialization from incompatible pointer type
> couch_js/http.c:324: warning: excess elements in struct initializer
> couch_js/http.c:324: warning: (near initialization for
> ‘CouchHTTPFunctions[1]’)
> couch_js/http.c:325: warning: initialization from incompatible pointer type
> couch_js/http.c:325: warning: excess elements in struct initializer
> couch_js/http.c:325: warning: (near initialization for
> ‘CouchHTTPFunctions[2]’)
> couch_js/http.c:326: warning: excess elements in struct initializer
> couch_js/http.c:326: warning: (near initialization for
> ‘CouchHTTPFunctions[3]’)
> couch_js/http.c: In function ‘install_http’:
> couch_js/http.c:346: warning: passing argument 5 of ‘JS_InitClass’ from
> incompatible pointer type
> /usr/local/include/js/jsapi.h:1858: note: expected ‘JSNative’ but argument
> is of type ‘JSBool (*)(struct JSContext *, struct JSObject *, uintN,  jsval
> *, jsval *)’
> mv -f .deps/couchjs-http.Tpo .deps/couchjs-http.Po
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-main.o -MD -MP -MF .deps/couchjs-main.Tpo
> -c -o couchjs-main.o `test -f 'couch_js/main.c' || echo './'`couch_js/main.c
> couch_js/main.c:251: warning: initialization from incompatible pointer type
> couch_js/main.c:251: warning: excess elements in struct initializer
> couch_js/main.c:251: warning: (near initialization for
> ‘global_functions[0]’)
> couch_js/main.c:252: warning: initialization from incompatible pointer type
> couch_js/main.c:252: warning: excess elements in struct initializer
> couch_js/main.c:252: warning: (near initialization for
> ‘global_functions[1]’)
> couch_js/main.c:253: warning: initialization from incompatible pointer type
> couch_js/main.c:253: warning: excess elements in struct initializer
> couch_js/main.c:253: warning: (near initialization for
> ‘global_functions[2]’)
> couch_js/main.c:254: warning: initialization from incompatible pointer type
> couch_js/main.c:254: warning: excess elements in struct initializer
> couch_js/main.c:254: warning: (near initialization for
> ‘global_functions[3]’)
> couch_js/main.c:255: warning: initialization from incompatible pointer type
> couch_js/main.c:255: warning: excess elements in struct initializer
> couch_js/main.c:255: warning: (near initialization for
> ‘global_functions[4]’)
> couch_js/main.c:256: warning: initialization from incompatible pointer type
> couch_js/main.c:256: warning: excess elements in struct initializer
> couch_js/main.c:256: warning: (near initialization for
> ‘global_functions[5]’)
> couch_js/main.c:257: warning: excess elements in struct initializer
> couch_js/main.c:257: warning: (near initialization for
> ‘global_functions[6]’)
> mv -f .deps/couchjs-main.Tpo .deps/couchjs-main.Po
> gcc -DHAVE_CONFIG_H -I. -I../../..   -D_XOPEN_SOURCE -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX
> -D_BSD_SOURCE  -g -O2 -MT couchjs-utf8.o -MD -MP -MF .deps/couchjs-utf8.Tpo
> -c -o couchjs-utf8.o `test -f 'couch_js/utf8.c' || echo './'`couch_js/utf8.c
> mv -f .deps/couchjs-utf8.Tpo .deps/couchjs-utf8.Po
> /bin/bash ../../../libtool --tag=CC   --mode=link gcc -D_BSD_SOURCE  -g -O2
> -lcurl -L/usr/local/lib -L/usr/local/lib -L/opt/local/lib
> -I/usr/local/lib/erlang/usr/include -I/usr/lib/erlang/usr/include
> -I/usr/local/lib/erlang/usr/include -I/opt/local/lib/erlang/usr/include
> -I/usr/local/include/js -DXP_UNIX  -lm  -o couchjs couchjs-http.o
> couchjs-main.o couchjs-utf8.o -lcurl -lmozjs -L/usr/local/lib
> -L/usr/local/lib -L/opt/local/lib -lpthread  -lcrypt
> libtool: link: gcc -D_BSD_SOURCE -g -O2 -I/usr/local/lib/erlang/usr/include
> -I/usr/lib/erlang/usr/include -I/usr/local/lib/erlang/usr/include
> -I/opt/local/lib/erlang/usr/include -I/usr/local/include/js -DXP_UNIX -o
> couchjs couchjs-http.o couchjs-main.o couchjs-utf8.o  -L/usr/local/lib
> -L/opt/local/lib -lm /usr/lib/libcurl.so -lmozjs -lpthread -lcrypt
> couchjs-http.o: In function `status':
> /home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/http.c:289:
> undefined reference to `INT_FITS_IN_JSVAL'
> couchjs-main.o: In function `readfp':
> /home/alexandre/Downloads/apache-couchdb-1.0.1/src/couchdb/priv/couch_js/main.c:134:
> undefined reference to `js_fgets'
> collect2: ld returned 1 exit status
>
>
> Does anyone knows what I'm doing wrong? How can I overcome this?
>
> Thanks,
> --
> Alexandre Corrêa Barbosa
> http://log4dev.com - Blog para computeiros
> http://job4dev.com - Procurando emprego?
>