-
Notifications
You must be signed in to change notification settings - Fork 14
How To Build On RHEL 6 With GCC 4.8
ttldtor edited this page Dec 10, 2020
·
7 revisions
-
RHEL 6
-
Install tools:
su cd ~ yum -y update yum install -y wget tar which
See: https://stackoverflow.com/a/35094717/1889120
Install devtoolset via hack:
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-cern http://ftp.scientificlinux.org/linux/scientific/obsolete/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-binutils-devel devtoolset-2-gcc-c++
Install CMake, 7Zip and git:
wget https://github.com/Kitware/CMake/releases/download/v3.19.1/cmake-3.19.1-Linux-x86_64.sh bash cmake-3.19.1-Linux-x86_64.sh --skip-license update-alternatives --install /usr/bin/cmake cmake ~/bin/cmake 60 rm -f cmake-3.19.1-Linux-x86_64.sh yum -y install epel-release rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 && yum install -y p7zip p7zip-plugins yum install -y http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm yum install -y git
-
Clone the repo
cd ~ git clone https://github.com/dxFeed/dxfeed-c-api.git cd dxfeed-c-api
-
Enable devtoolset (gcc 4.8)
source scl_source enable devtoolset-2
-
Build
./make_package.sh 999.0.0 rebuild no-test no-tls
999.0.0 -- version number
You can build a static version of the library (without TLS support):
./make_package.sh 999.0.0 rebuild no-test static
The assembled bundle will be located in the build
directory
Run a sample:
cd build/x64/Release/
./CommandLineSample_64 demo.dxfeed.com:7300 TRADE,ORDER MSFT,IBM