-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Support additional INCLUDE/LIB paths during compile #546
Comments
HI @NoodleBB, at present we don't support searching for include headers or shared libraries anywhere other than the system default. Our It is possible to update https://github.com/apache/couchdb/blob/master/src/couch/rebar.config.script to make this work specifically for couchjs in a platform-neutral fashion, by changing how we handle the JS_CFLAGS and JS_LDFLAGS variables. We'd be happy to accept a pull request here that doesn't break our current build process. |
Hi @wohali.
Not very handy.
I tried it to change it that way...
...but it fails at the same point again. |
Yeah, that won't work, because there is no $ENVVAR expansion with that syntax inside of a If you just want it compiling for now, hard-code the path to your home directory instead of using $HOME. |
Yes: now.
By the way...
...also fails. Same point, same error. |
That line only applies if you specify |
Nope. I didn't know. But now...
Nothing changed. Make still fails. Same error. |
Try |
I did. Build fails. Same error. |
I am having he same problem.... have tried the same things and end up in the same place.... I thought my spidermonkey was installed in the default location /usr/local/lib/libmozjs185.so and If that is not the default location where do I need to move it to? |
Default location should be under So sorry for the inconvenience here. Pull requests welcome. |
That did the trick... THANKS! |
Added needhelp label, closing for inactivity until somebody sends a PR |
installing libmozjs185-dev fixed my problem |
Yeah, I had to download https://launchpad.net/ubuntu/bionic/amd64/libmozjs185-dev/1.8.5-1.0.0+dfsg-7 |
FYI libmozjs185{-dev} is no longer available in the Ubuntu repos. It has been deleted and replaced by libmozjs-52. |
@lag-linaro Yes, we will be supplying our own packages for libmozjs185. |
@wohali do you have a time-line for this? |
@lag-linaro already done for 2.1.2 |
Problem
Try to build CouchDB 2.0.0 from the source on CentOS 6.9 stopped with this problem:
Setup
I've build ERLANG OTP 17.5 and SpiderMonkey 1.8.5 in the local user directory.
They are available in
$HOME/include
and$HOME/lib
.What i tried
Give configure the paths like in earlier CouchDB versions (
./configure --with-js-lib=$HOME/lib --with-js-include=$HOME/include/js
) doesn't work and was ignored.I tried to set the paths as compiler vars.
But it also doesn't work. The compile run breaks.
Another try:
Make always fails at the same point.
The text was updated successfully, but these errors were encountered: