Closed tarjeir closed 6 years ago
After fooling around on different stackoverflow threads etc. I found that SIP (Security Integrity Protection) is preventing @rpath to work on Mac OSX. To overcome that problem I ran :
install_name_tool -addrpath /private/var/folders/0/7cysl_6s31v9904lxcgshlww0000gn/T/tensorflow_scala_nativelibraries7260031192430581912/ /private/var/folders/0/7cysl_6s31v9904lxcgshlww0000gn/T/tensorflow_scala_native_libraries7260031192430581912/libtensorflow_jni.so
This solved it, but is rather impractical since this needs to be done runtime.:(
@tarjeir Thanks a lot for giving this API a try. I really hope you find it useful. I'm sorry about the issue you've been having. It seems that loading the dynamic libraries correctly for multiple systems has been eventful. I have created a new issue, #41, to aggregate all these concerns and resolve this for everyone. I'll close this issue and we can continue the conversation and resolution there.
Hi
Very eager to test this API! But gave up the first time and noticed quite active development. Gave it another try now. Since I am not an expert in native library linking I still fail at the basics:
This is what is in my sbt:
resolvers += Resolver.sonatypeRepo("snapshots")
libraryDependencies += "org.platanios" %% "tensorflow" % "0.1.0-SNAPSHOT" classifier "darwin-cpu-x86_64"
My exception:
ls -al /private/var/folders/0_/7cysl_6s31v9904lxcgshlww0000gn/T/tensorflow_scala_native_libraries7260031192430581912/ libtensorflow.so libtensorflow_framework.so libtensorflow_jni.so
Many thanks and sorry for the amateurish question
T