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

call sudo consistently within OSX build script (#91)

previously I was getting the following error:

./: Can't update time for .
tar: Error exit delayed from previous errors.
This commit is contained in:
Chris Mckinlay 2017-04-03 20:27:22 -07:00 committed by Greg Steuck
parent 1f6115da5a
commit d71f48090a

View file

@ -28,9 +28,9 @@ echo "Downloading libtensorflow..."
curl https://storage.googleapis.com/tensorflow/libtensorflow/libtensorflow-cpu-darwin-x86_64-1.0.0.tar.gz > libtensorflow.tar.gz
echo "Extracting and copying libtensorflow..."
tar zxf libtensorflow.tar.gz -C /usr/local
sudo tar zxf libtensorflow.tar.gz -C /usr/local
rm libtensorflow.tar.gz
mv /usr/local/lib/libtensorflow.so /usr/local/lib/libtensorflow.dylib
sudo mv /usr/local/lib/libtensorflow.so /usr/local/lib/libtensorflow.dylib
sudo install_name_tool -id libtensorflow.dylib /usr/local/lib/libtensorflow.dylib