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

can't compile emonk with brew installed spidermonkey 1.8.5_1 on Mac 10.11.4 #10

Open
dongyuwei opened this issue Jul 10, 2016 · 5 comments

Comments

@dongyuwei
Copy link

brew install spidermonkey

cd emonk
make
./rebar compile
==> emonk (compile)
ld: library not found for -lmozjs
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: $CC c_src/main.o c_src/queue.o c_src/to_erl.o c_src/to_js.o c_src/util.o c_src/vm.o $LDFLAGS $DRV_LDFLAGS -o priv/emonk.so failed with error: 1
make: *** [all] Error 1

@davisp
Copy link
Owner

davisp commented Jul 10, 2016

What did brew name its shared library? You also might have to run 'brew link spidermonkey'.

On Jul 9, 2016, at 8:45 PM, dongyuwei notifications@github.com wrote:

brew install spidermonkey

cd emonk
make
./rebar compile
==> emonk (compile)
ld: library not found for -lmozjs
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ERROR: $CC c_src/main.o c_src/queue.o c_src/to_erl.o c_src/to_js.o c_src/util.o c_src/vm.o $LDFLAGS $DRV_LDFLAGS -o priv/emonk.so failed with error: 1
make: *** [all] Error 1


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@dongyuwei
Copy link
Author

brew link spidermonkey
Warning: Already linked: /usr/local/Cellar/spidermonkey/1.8.5_1
To relink: brew unlink spidermonkey && brew link spidermonkey

brew info spidermonkey
spidermonkey: stable 1.8.5 (bottled), HEAD
JavaScript-C Engine
https://developer.mozilla.org/en/SpiderMonkey
Conflicts with: narwhal
/usr/local/Cellar/spidermonkey/1.8.5_1 (101 files, 11M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/spidermonkey.rb
==> Dependencies
Required: readline ✔, nspr ✔

@dongyuwei
Copy link
Author

my local Erlang info:
Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]

@davisp
Copy link
Owner

davisp commented Jul 13, 2016

Can you look in /usr/local/lib/ for libmoz* and libjs* to see what is in there? Given that brew says its already linked its likely just a name change.

@dongyuwei
Copy link
Author

Thanks for your reply, davisp.

ls /usr/local/lib/|grep moz
libmozjs185-1.0.a
libmozjs185.1.0.0.dylib
libmozjs185.1.0.dylib
libmozjs185.dylib

Looks like there they are, so what should I do?

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