can't compile emonk with brew installed spidermonkey 1.8.5_1 on Mac 10.11.4
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
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 [email protected] 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.
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 ✔
my local Erlang info: Erlang/OTP 19 [erts-8.0] [source-6dc93c1] [64-bit] [smp:8:8] [async-threads:10] [hipe] [kernel-poll:false]
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.
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?