This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo apt purge cmake -y | |
wget https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.tar.gz -O $HOME/cmake-3.11.3-Linux-x86_64.tar.gz | |
tar -xvf cmake-3.11.3-Linux-x86_64.tar.gz -C $HOME/ | |
cd $HOME/cmake-3.11.3-Linux-x86_64 | |
sudo cp -r bin /usr/ | |
sudo cp -r share /usr/ | |
sudo cp -r doc /usr/share/ | |
sudo cp -r man /usr/share/ | |
cd .. && rm -rf $HOME/cmake-3.11.3-Linux-x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
sudo python3 -m pip install --upgrade pip&& | |
sudo python3 -m pip install -U numpy && | |
sudo python3 -m pip install -U matplotlib&& | |
sudo python3 -m pip install -U pandas&& | |
sudo python3 -m pip install -U scipy&& | |
sudo python3 -m pip install -U scikit-learn&& | |
sudo python3 -m pip install -U jupyter&& | |
sudo python3 -m pip install -U jupyterthemes&& | |
sudo python3 -m pip install -U gym&& |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
wget https://github.com/google/protobuf/releases/download/v3.6.0/protobuf-all-3.6.0.tar.gz | |
tar -zxvf protobuf-all-3.6.0.tar.gz | |
cd protobuf-all-3.6.0 | |
sudo ./configure | |
sudo make -j12 | |
sudo make check -j12 | |
sudo make install | |
sudo ldconfig | |
protoc --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /bin/bash | |
mkdir opencv && cd opencv | |
wget -O opencv.zip https://github.com/Itseez/opencv/archive/3.4.1.zip && unzip opencv.zip | |
wget -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.4.1.zip&&unzip opencv_contrib.zip | |
rm -rf opencv.zip opencv_contrib.zip | |
cd opencv-3.4.1 | |
mkdir build && cd build | |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ | |
-D CMAKE_INSTALL_PREFIX=/usr/local \ | |
-D WITH_TBB=OFF \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
tar xzvf cudnn-9.2-linux-x64-v7.*.tgz | |
sudo cp cuda/lib64/* /usr/local/cuda-9.2/lib64/ | |
sudo cp cuda/include/* /usr/local/cuda-9.2/include/ | |
sudo chmod a+r /usr/local/cuda-9.2/lib64/libcudnn* | |
sudo chmod a+r /usr/local/cuda-9.2/include/cudnn.h |
NewerOlder