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

v8wrapper error, running in Emacs via nRepl #47

Open
hlship opened this issue Apr 29, 2013 · 5 comments
Open

v8wrapper error, running in Emacs via nRepl #47

hlship opened this issue Apr 29, 2013 · 5 comments

Comments

@hlship
Copy link

hlship commented Apr 29, 2013

Any idea what this is about:

CompilerException java.lang.UnsatisfiedLinkError: Unable to load library 'v8wrapper': dlopen(libv8wrapper.dylib, 9): image not found, compiling:(core.clj:25:14)

An earlier version of my app executed using Leiningen, and worked fine. Switching over to Gradle (to launch nRepl) fails.

@pbiggar
Copy link
Contributor

pbiggar commented Apr 29, 2013

Maybe in your project.clj, add

:jvm-opts "-Djna.library.path=target/native/macosx/x86_64:target/native/linux/x86_64:target/native/linux/x86"

@hlship
Copy link
Author

hlship commented Apr 29, 2013

Who is responsible for setting up target/native? Is that something from clj-v8?

I'm on a Mac but the rest of my team is on Windows and can't run the app, even setting the engine to :rhino.

@pbiggar
Copy link
Contributor

pbiggar commented Apr 29, 2013

I'm actually unclear on that (it's from clj-v8, and it should just work, but we've added it to our app).

You could extend clj-v8 for windows (should be straightforward I think). I don't know why it won't work with the engine as rhino - sounds like a bug :(

@jstaffans
Copy link

I get the same error, using IntelliJ IDEA with the La Clojure plugin.

@kbaribeau
Copy link
Contributor

FWIW I'm seeing this when deploying to immutant. I think dieter is trying to load v8 even when it's not in use.

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

4 participants