Coder Social home page Coder Social logo

Comments (19)

arunp123 avatar arunp123 commented on May 13, 2024 2

installing libmozjs185-dev fixed my problem

from couchdb.

68040 avatar 68040 commented on May 13, 2024 1

That line only applies if you specify -c or --with-curl to configure. Did you?

Nope. I didn't know. But now...

$ ./configure --with-curl
==> configuring couchdb in rel/couchdb.config
You have configured Apache CouchDB, time to relax. Relax.

Nothing changed. Make still fails. Same error.

from couchdb.

wohali avatar wohali commented on May 13, 2024

HI @NoodleBB, at present we don't support searching for include headers or shared libraries anywhere other than the system default. Our configure script is not based on autotools - none of the environment variables you specified will work.

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.

from couchdb.

68040 avatar 68040 commented on May 13, 2024

Hi @wohali.

at present we don't support searching for include headers or shared libraries anywhere other than the system default.

Not very handy.

It is possible to update https://github.com/apache/couchdb/blob/master/src/couch/rebar.config.script to make this work (...)

I tried it to change it that way...

{unix, freebsd} ->
    {"-DHAVE_CURL -I$HOME/include", "-DHAVE_CURL -L$HOME/lib -lmozjs185 -lcurl"};

...but it fails at the same point again.

from couchdb.

wohali avatar wohali commented on May 13, 2024

Yeah, that won't work, because there is no $ENVVAR expansion with that syntax inside of a rebar.config file.

If you just want it compiling for now, hard-code the path to your home directory instead of using $HOME.

from couchdb.

68040 avatar 68040 commented on May 13, 2024

If you just want it compiling for now, (...)

Yes: now.
I wanted to demonstrate my bosses and the IT-Department the advantages of CouchDB over Access in an actual use case. - ...and i don't get the the latest version of CouchDB installed.

(...) hard-code the path to your home directory instead of using $HOME.

By the way...

{unix, freebsd} ->
   {"-DHAVE_CURL -I/home/syncer/include", "-DHAVE_CURL -L/home/syncer/lib -lmozjs185 -lcurl"};

...also fails. Same point, same error.

from couchdb.

wohali avatar wohali commented on May 13, 2024

That line only applies if you specify -c or --with-curl to configure. Did you?

from couchdb.

wohali avatar wohali commented on May 13, 2024

Try -I/home/syncer/include/js.

from couchdb.

68040 avatar 68040 commented on May 13, 2024

Try -I/home/syncer/include/js

I did. Build fails. Same error.

from couchdb.

jvabob avatar jvabob commented on May 13, 2024

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
/usr/local/include/js/

If that is not the default location where do I need to move it to?

from couchdb.

wohali avatar wohali commented on May 13, 2024

Default location should be under /usr/lib/libmozjs185.so and /usr/include/js.

So sorry for the inconvenience here. Pull requests welcome.

from couchdb.

jvabob avatar jvabob commented on May 13, 2024

That did the trick... THANKS!

from couchdb.

janl avatar janl commented on May 13, 2024

Added needhelp label, closing for inactivity until somebody sends a PR

from couchdb.

tarasvaskiv avatar tarasvaskiv commented on May 13, 2024

Yeah, I had to download https://launchpad.net/ubuntu/bionic/amd64/libmozjs185-dev/1.8.5-1.0.0+dfsg-7
deb version from here and install on ubuntu 18.

from couchdb.

lag-linaro avatar lag-linaro commented on May 13, 2024

FYI libmozjs185{-dev} is no longer available in the Ubuntu repos.

It has been deleted and replaced by libmozjs-52.

from couchdb.

wohali avatar wohali commented on May 13, 2024

@lag-linaro Yes, we will be supplying our own packages for libmozjs185.

from couchdb.

lag-linaro avatar lag-linaro commented on May 13, 2024

@wohali do you have a time-line for this?

from couchdb.

wohali avatar wohali commented on May 13, 2024

@lag-linaro already done for 2.1.2

from couchdb.

wohali avatar wohali commented on May 13, 2024

see http://docs.couchdb.org/en/2.1.2/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages

from couchdb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.