Fork me on GitHub
#uncomplicate
<
2017-06-26
>
jduhamel16:06:42

I'm still getting the can't find libiomp5.dylib I've copied it into /opt/intel/mkl/lib which is referenced by

export DYLD_LIBRARY_PATH=/opt/intel/mkl/lib

jduhamel16:06:49

any ideas on how to debug. the actual error message is

CompilerException java.lang.UnsatisfiedLinkError: /private/var/folders/76/ydx4vlz14k1d8lnkvctlm03r0000gp/T/libneanderthal-mkl-0.12.06365990791847296364.jnilib: dlopen(/private/var/folders/76/ydx4vlz14k1d8lnkvctlm03r0000gp/T/libneanderthal-mkl-0.12.06365990791847296364.jnilib, 1): Library not loaded: @rpath/libiomp5.dylib
  Referenced from: /private/var/folders/76/ydx4vlz14k1d8lnkvctlm03r0000gp/T/libneanderthal-mkl-0.12.06365990791847296364.jnilib
  Reason: image not found, compiling:(uncomplicate/neanderthal/internal/host/mkl.clj:98:5

blueberry16:06:19

@jduhamel OSX users reported that putting libiomp5 into the global lib directory helps in such cases.

jduhamel16:06:53

Thanks, I'll give that a shot although it's kinda an oddity. It should pick it up on the dyn load path.

blueberry16:06:55

I'm not sure how that works on OSX, but did you make sure that the export that you did is visible to your development environment. Maybe you did the classic mistake of setting that in one terminal window, and then trying to do the work in completely unrelated proccess?

jduhamel16:06:49

Nope, I tested that because I thought I was being an idiot. but moving it into the system /usr/local/lib worked.

jduhamel16:06:24

Which tends to infuriate me but that's why I use linux for most of my java development. 😉

jduhamel16:06:34

thanks for replying. it works so I can move forward. Appreciate the reply.

blueberry16:06:12

@jduhamel you're welcome. please do give feedback!

jduhamel16:06:45

Will do, I'm working through a bunch of the blog posts in the hope that I can use clojure as a quick prototyping lang for some machine learning.