1
0
Fork 0
mirror of https://github.com/tensorflow/haskell.git synced 2024-11-26 21:09:44 +01:00

Fix install script for High Sierra (#192)

* Copy libtensorflow files from a temporary directory
This commit is contained in:
Miki Fossati 2018-05-21 16:20:20 +01:00 committed by Greg Steuck
parent 88dafe8f3a
commit b063cccc40

View file

@ -24,12 +24,16 @@ else
brew install snappy
fi
TMP_DIR=$(mktemp -d)
echo "Downloading libtensorflow..."
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.8.0.tar.gz > libtensorflow.tar.gz
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.8.0.tar.gz > "$TMP_DIR/libtensorflow.tar.gz"
echo "Extracting and copying libtensorflow..."
sudo tar zxf libtensorflow.tar.gz -C /usr/local
rm libtensorflow.tar.gz
tar zxf "$TMP_DIR/libtensorflow.tar.gz" -C "$TMP_DIR"
sudo rsync -a "$TMP_DIR/lib/" /usr/local/lib
sudo rsync -a "$TMP_DIR/include/" /usr/local/include
rm -rf "$TMP_DIR"
sudo mv /usr/local/lib/libtensorflow.so /usr/local/lib/libtensorflow.dylib
sudo install_name_tool -id libtensorflow.dylib /usr/local/lib/libtensorflow.dylib