Hi everyone,
I usually use packaged versions of CouchDB, but in order to help a friend of
mine, I tried to install it from source (master HEAD) on CentOS 6.5 (the same
distro as his).
For most of the dependencies, it was OK with `yum` (the packet manager).
But, on this distribution, `js-devel` was only at 1.7. So I tried to install
SpiderMonkey 1.8.5 from source. I think it worked:
$ js-config --includedir --libdir
/usr/local/include
/usr/local/lib
$ ls /usr/local/include/js
[...]
jsapi.h
[...]
$] ls /usr/local/lib
libmozjs185-1.0.a
libmozjs185.so
libmozjs185.so.1.0
libmozjs185.so.1.0.0
pkgconfig
Then I tried to `configure` CouchDB:
==> configuring couchdb in rel/couchdb.config
==> updating dependencies
==> b64url (get-deps)
[...]
Updating lager from
{git,"https://git-wip-us.apache.org/repos/asf/couchdb-lager.git",
{branch,"master"}}
[...]
==> fauxton (update-deps)
This doesn't look really look like the output of a `configure` script, but it
seems to reach the end with no error.
Then, I try to `make` it and problems pop out:
==> b64url (compile)
==> cassim (compile)
==> lager (compile)
==> couch_log (compile)
==> config (compile)
==> chttpd (compile)
==> couch (compile)
Compiling /home/staff/couchdb/src/couch/priv/couch_js/main.c
/home/staff/couchdb/src/couch/priv/couch_js/main.c:17:19: erreur: jsapi.h
: Aucun fichier ou dossier de ce type
In file included from priv/couch_js/http.h:16,
from /home/staff/couchdb/src/couch/priv/couch_js/main.c:19:
priv/couch_js/util.h:23: erreur: expected specifier-qualifier-list before
‘JSString’
[...]
Any idea of what went wrong?
Regards,
Aurélien