Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonymorony/ac80f269f8eb8a4c61509b2d5509c95b to your computer and use it in GitHub Desktop.
Save tonymorony/ac80f269f8eb8a4c61509b2d5509c95b to your computer and use it in GitHub Desktop.
# insalling deps
yum update
yum groupinstall 'Development Tools'
yum install git pkgconfig automake autoconf ncurses-devel python wget gtest-devel gcc gcc-c++ libtool patch lbzip2
# by default centos7 have gcc without C11 support, so lets compile fresher gcc
curl https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2 -O
tar -xvf gcc-5.4.0.tar.bz2
yum install gmp-devel mpfr-devel libmpc-devel
mkdir gcc-5.4.0-build
cd gcc-5.4.0-build
../gcc-5.4.0/configure --enable-languages=c,c++ --disable-multilib
# it will take a while...
make -j$(nproc) && make install
# have to add fresher compiler to path (then ensure that gcc -v shows version 5.4). add lines below to /etc/profile to make changes permanent
export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
# now I'm able to compile very recent compiler (not 100% sure if it mandatory, but wonder it is)
wget https://ftp.gnu.org/gnu/gcc/gcc-8.3.0/gcc-8.3.0.tar.gz
tar -xvf gcc-8.3.0.tar.gz
mkdir gcc-8.3.0-build
cd gcc-8.3.0-build
../gcc-8.3.0/configure --enable-languages=c,c++ --disable-multilib
# it will take a while...
make -j$(nproc) && make install
# have to add fresher compiler to path (then ensure that gcc -v shows version 8.3) - to make changes permanent add lines below to /etc/profile
export PATH=/usr/local/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/lib64:$LD_LIBRARY_PATH
# and finally compiling komodo
cd ~
git clone https://github.com/komodoplatform/komodo
cd komodo
./zcutil/build.sh -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment