Github user wohali commented on the issue:

    https://github.com/apache/couchdb/issues/455
  
    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.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to