Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Install scripts, Debian: download CMake binary not source
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Jan 11, 2017
1 parent db8945e commit 424ab39
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions scripts/install_deps.sh
Expand Up @@ -210,27 +210,15 @@ case $(uname -s) in
unzip

# All the Debian releases until Stretch have shipped with versions of CMake
# which are too old for cpp-ethereum to build successfully. CMake v3.0.x
# should be the minimum version, but the v3.0.2 which comes with Jessie
# doesn't work properly, so maybe our minimum version should actually be
# CMake v3.1.x? Anyway - we just build and install CMake from source
# here, so that it works on any distro.
# which are too old for cpp-ethereum to build successfully.
# We just download and install latest version.
#
# - https://packages.debian.org/wheezy/cmake (2.8.9)
# - https://packages.debian.org/jessie/cmake (3.0.2)
# - https://packages.debian.org/stretch/cmake (3.5.2)

wget https://cmake.org/files/v3.5/cmake-3.5.2.tar.gz
tar -xf cmake-3.5.2.tar.gz
cd cmake-3.5.2/
cmake .
./bootstrap --prefix=/usr --system-curl
make -j 2
sudo make install
source ~/.profile
cd ..
rm -rf cmake-3.5.2
rm cmake-3.5.2.tar.gz
wget -O- https://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz \
| sudo tar xz -C /usr/local --strip 1

;;

Expand Down

0 comments on commit 424ab39

Please sign in to comment.