1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-23 03:19:44 +01:00

Add instructions to symlink ".so" to ".dylib" on OS X (#42). (#43)

I'm not sure why, but in some cases it seems linking only works if *both* the
.so and the .dylib are present in /usr/local/lib.  This may be due to a quirk
of how Bazel builds the library, and/or how ghc/stack load the library.
This commit is contained in:
Judah Jacobson 2016-11-22 08:34:59 -08:00 committed by Greg Steuck
parent 5b4017e31b
commit eb7e78d60d

View file

@ -40,6 +40,7 @@ The following instructions were verified with Mac OS X El Capitan.
./configure # Choose the defaults when prompted
bazel build -c opt tensorflow:libtensorflow_c.so
install bazel-bin/tensorflow/libtensorflow_c.so /usr/local/lib
ln -s /usr/local/lib/libtensorflow_c.{so,dylib}
cd ../..
- Run stack: