aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2016-09-12 17:15:49 +0800
committerLefteris Karapetsas <lefteris@refu.co>2016-09-12 17:15:49 +0800
commitb720e7b03d3975d507cda309709e010c896d5fe3 (patch)
treec8c2255cae21d86cf129c672ee83637423ddd541 /scripts
parent51a98ab84a59fd5fb34378763fd9ed635cf06d8d (diff)
downloaddexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar.gz
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar.bz2
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar.lz
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar.xz
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.tar.zst
dexon-solidity-b720e7b03d3975d507cda309709e010c896d5fe3.zip
Add Centos to install_deps.sh
Added steps to otain solidity dependencies in CentOS. Tested those steps on a CentOS 6.8 machine, but the instructions are from memory. May need some tweaking.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/install_deps.sh41
1 files changed, 41 insertions, 0 deletions
diff --git a/scripts/install_deps.sh b/scripts/install_deps.sh
index 7c8523a8..49c478b7 100755
--- a/scripts/install_deps.sh
+++ b/scripts/install_deps.sh
@@ -56,6 +56,8 @@ detect_linux_distro() {
elif [ -f /etc/os-release ]; then
# extract 'foo' from NAME=foo, only on the line with NAME=foo
DISTRO=$(sed -n -e 's/^NAME="\(.*\)\"/\1/p' /etc/os-release)
+ elif [ -f /etc/centos-release ]; then
+ DISTRO=CentOS
else
DISTRO=''
fi
@@ -329,6 +331,45 @@ case $(uname -s) in
sudo apt-get -y install eth
;;
+
+#------------------------------------------------------------------------------
+# CentOS
+# CentOS needs some more testing. This is the general idea of packages
+# needed, but some tweaking/improvements can definitely happen
+#------------------------------------------------------------------------------
+ CentOS)
+ # Make Sure we have the EPEL repos
+ sudo yum -y install epel-release
+ # Get g++ 4.8
+ sudo rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern
+ wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
+ sudo yum -y install devtoolset-2-gcc devtoolset-2-gcc-c++ devtoolset-2-binutils
+
+ # Enable the devtoolset2 usage so global gcc/g++ become the 4.8 one.
+ # As per https://gist.github.com/stephenturner/e3bc5cfacc2dc67eca8b, what you should do afterwards is
+ # to add this line:
+ # source /opt/rh/devtoolset-2/enable
+ # to your bashrc so that this happens automatically at login
+ scl enable devtoolset-2 bash
+
+ # Get cmake
+ sudo yum -y remove cmake
+ sudo yum -y install cmake3
+ sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
+
+ # Get latest boost thanks to this guy: http://vicendominguez.blogspot.de/2014/04/boost-c-library-rpm-packages-for-centos.html
+ sudo yum -y remove boost-devel
+ sudo wget http://repo.enetres.net/enetres.repo -O /etc/yum.repos.d/enetres.repo
+ sudo yum install boost-devel
+
+ # And finally jsoncpp
+ sudo yum -y install jsoncpp-devel
+
+ ;;
+
+
+
+
*)
#------------------------------------------------------------------------------