forked from photoneo/phoxi_camera
-
Notifications
You must be signed in to change notification settings - Fork 1
/
install_prerequisities.sh
33 lines (29 loc) · 1.38 KB
/
install_prerequisities.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
32
33
#!/usr/bin/env bash
sudo apt-get -y update \
&& sudo apt-get -y upgrade \
&& sudo apt-get install -y vim screen tree ssh
sudo apt -y install software-properties-common \
&& sudo add-apt-repository -y ppa:freecad-maintainers/freecad-stable \
&& sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test \
&& sudo add-apt-repository -y ppa:git-core/ppa \
&& sudo apt update \
&& sudo apt -y upgrade \
&& sudo apt -y install g++ g++-5 gcc-5 \
&& sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5 \
&& sudo apt -y remove git \
&& sudo apt -y install git cmake cmake-curses-gui cmake-qt-gui libgtk2.0-dev pkg-config doxygen graphviz chrpath \
libavcodec-dev libavformat-dev libswscale-dev libxt-dev python-numpy \
libeigen3-dev libflann-dev libusb-1.0-0-dev libqhull-dev libtiff5-dev libavahi-client-dev \
libbz2-dev makeself mesa-common-dev python2.7-dev gawk dh-autoreconf \
liboce-foundation-dev liboce-modeling-dev liboce-ocaf-dev libxerces-c-dev
sudo add-apt-repository -y ppa:webupd8team/sublime-text-3 \
&& sudo apt update \
&& sudo apt -y upgrade \
&& sudo apt -y install meshlab sublime-text-installer freecad searchmonkey \
&& sudo apt -y install libxmlrpc-c++8 libxmlrpc-c++8-dev
wget https://github.com/NixOS/patchelf/archive/0.9.tar.gz
tar -xzvf 0.9.tar.gz
cd patchelf-0.9
./bootstrap.sh
./configure
sudo make install