forked from thdeltei/deep_learning_tools_for_dsvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
33 lines (28 loc) · 784 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#
# This script installs a group of deep learning libraries and tools in a DSVM
#
# Prepare environment
for i in "$@"
do
case $i in
-f=*|--install-folder=*)
INSTALL_FOLDER="${i#*=}"
shift # past argument=value
;;
esac
done
SESSION_USER=$USER
SESSION_HOME=$HOME
if [ -z "$INSTALL_FOLDER" ]; then
INSTALL_FOLDER=$PWD
fi
echo "INSTALL FOLDER = $INSTALL_FOLDER"
echo "USER = $SESSION_USER"
echo "HOME PATH = $SESSION_HOME"
# Execute script that installs many deep learning libraries
sudo config/setup_tools_for_linux_dsvm.sh $INSTALL_FOLDER $SESSION_HOME
# Install mxnet
#Rscript -e "LIB_PATH <- paste0(Sys.getenv('LD_LIBRARY_PATH'),'/usr/local/lib'); Sys.setenv(LD_LIBRARY_PATH=LIB_PATH)"
cd $INSTALL_FOLDER/mxnet
R CMD INSTALL mxnet_0.7.tar.gz