Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jsapi.h: No such file or directory #712

Closed
jvabob opened this issue Jul 24, 2017 · 2 comments
Closed

jsapi.h: No such file or directory #712

jvabob opened this issue Jul 24, 2017 · 2 comments

Comments

@jvabob
Copy link

jvabob commented Jul 24, 2017

Attempting to install Apache 2.0 on Amazon Linux
Encountering an issue similar to Isue #455

http.c:18:19: fatal error: jsapi.h: No such file or directory
#include <jsapi.h>
^
compilation terminated.
ERROR: compile failed while processing /home/bjones/apache-couchdb-2.0.0/src/couch: rebar_abort

which is a problem related to the SpiderMonkey install however in my case spider monkey is installed in /usr/local

jsapi.h is in /usr/local/include/js/ and libmozjs185.so is in /usr/local/lib

I have tried modifying apache-couchdb-2.0.0/src/couch/rebar.config.script as described in Issue #455 by changing line 74 from

{"-DHAVE_CURL -I/usr/local/include", "-DHAVE_CURL -lmozjs185 -lcurl"};

to

{"-DHAVE_CURL -I/usr/local/include -I/usr/local/include/js", "-DHAVE_CURL i-L/usr/local/lib -lmozjs185 -lcurl"};

In both cases the output of ./configure and make release stays the same

[root@couchdb-2-1.qa apache-couchdb-2.0.0]# ./configure -c
==> configuring couchdb in rel/couchdb.config
You have configured Apache CouchDB, time to relax. Relax.
[root@couchdb-2-1.qa apache-couchdb-2.0.0]# make release
==> couch_epi (compile)
==> config (compile)
==> b64url (compile)
==> couch_log (compile)
==> chttpd (compile)
==> couch (compile)
Compiling /home/bjones/apache-couchdb-2.0.0/src/couch/priv/couch_js/http.c
/home/bjones/apache-couchdb-2.0.0/src/couch/priv/couch_js/http.c:18:19: fatal error: jsapi.h: No such file or directory
#include <jsapi.h>
^
compilation terminated.
ERROR: compile failed while processing /home/bjones/apache-couchdb-2.0.0/src/couch: rebar_abort
make: *** [couch] Error 1

@wohali
Copy link
Member

wohali commented Jul 24, 2017

Duplicate of #546 .

@wohali wohali marked this as a duplicate of #546 Jul 24, 2017
@wohali wohali closed this as completed Jul 24, 2017
@jvabob
Copy link
Author

jvabob commented Jul 24, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants