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 | |
set -ex | |
THISPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
# apt installs | |
sudo bash -c " | |
apt update && \ | |
apt install -y \ | |
git nano build-essential g++ python3 python3-pip \ | |
autoconf automake \ |
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 | |
set -ex | |
# for Ubuntu 16.04 | |
sudo apt-get install -y autoconf automake build-essential git libtool python-dev libssl-dev curl | |
# watchman installation | |
if [ -d watchman ]; then echo "existing folder \"watchman\" found; skipping. to rebuild, delete it"; | |
else |
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 | |
set -ex | |
THISSCRIPTPATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | |
cd $THISSCRIPTPATH | |
echo "This script is for building Caffe2 locally (not in /usr/lib) on Ubuntu 16.04" | |
echo "Can be used for Python virtual environments" | |
echo "This assumes OpenCV is already installed: https://www.pyimagesearch.com/2016/10/24/ubuntu-16-04-how-to-install-opencv/" | |
my_python_version=$(python -c "import sys; print('.'.join(map(str, sys.version_info[:2])))") |