wohali commented on issue #455: jsapi.h: No such file or directory URL: https://github.com/apache/couchdb/issues/455#issuecomment-287523718 1. Start with a clean checkout. 2. Run `./configure -c` to ensure you are enabling the curl interface for couchjs. This is used primarily for testing, but will make the process easier. You will need to ensure libcurl is installed along with its developer package (i.e., include headers) 3. Edit the file `src/couch/rebar.config.script` and on line 74 change `-I/usr/local/include` to `-I/usr/local/include -I/home/user/include/js`. On the same line you'll have to change `-lmozjs185` to `-L/home/user/lib -lmozjs185` if the `libmozsj185.so` library isn't installed under `/usr` as well. 4. `make rel` should succeed. In production it is common for CouchDB to not have to share a machine with other processes that would conflict on the JS version, so it's most typical that Spidermonkey 1.8.5 will be installed under /usr. If you're feeling enterprising, a pull request to enhance our `rebar.config.script` to support adding include/library paths from environment variables would be most welcome. You can see we reference environment variables down on lines 91 and 92; a similar trick for JS_CFLAGS/JS_LDFLAGS should work. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org
With regards, Apache Git Services