Building on the BGSC
silviana amethyst
10/11/17
Building software on the BGSC ¶
October 11, 2017
building gcc 6 on the bgsc
- make folder for code. i called it
code - make folder for program to be installed into. i called it
software - download gcc code. i did this into
~/software/gcc/6/curl http://mirror.team-cymru.org/gnu/gcc/gcc-6.4.0/gcc-6.4.0.tar.gz --output gcc-6.4.0.tar.gz - untar.
tar zxvf gcc-6.4.0.tar.gz cd gcc...- follow instructions.
./contrib/download_prerequisitescd .. && mkdir objdir && cd objdir$PWD/../gcc-6.4.0/configure --prefix=$HOME/software/gcc6 --enable-languages=c,c++,fortran,gofails, so add--disable-multilibor whatever. configures ok.make -j #as selfishly as i feel justified in the shared environment- go teach math345
- come back, sit down, take a breath
make install. take a moment to calm down again after thinking i forgot to setprefixwhileconfigureing- add install directory to my path, and similarly for the built libraries.
- check version of gcc works. reports version 6.4.0. huzzah!
building Boost on bgsc with gcc 6, with boost.python using python3
get the build system ready
./bootstrap.sh --with-toolset=gcc --prefix=/data/users/brakeda/software/gcc6/ --with-python=/data/users/brakeda/software/gcc6/bin/python3 --with-python-version=3.6 --with-python-root=/data/users/brakeda/software/gcc6/lib/python3.6adjust project-config.jam file.
using python : 3.6 : /data/users/brakeda/software/gcc6/bin/python3.6 : /data/users/brakeda/software/gcc6/include/python3.6m : /data/users/brakeda/software/gcc6/lib/python3.6 ;build and install
./b2 -j12 toolset=gcc cxxflags=-std=c++14 threading=multi link=shared release install
see this SO post for more on using Python3 with Boost, particularly when the Python3 is custom-installed.