edgecase / dieter

Asset pipeline ring middleware
134 stars 22 forks source link

v8wrapper error, running in Emacs via nRepl #47

Open hlship opened 11 years ago

hlship commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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 commented 11 years ago

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

kbaribeau commented 10 years ago

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