Skip to content

How To Build On CentOS 6 With GCC 4.8

ttldtor edited this page Dec 10, 2020 · 3 revisions

CentOS 6 went completely end of life. This instruction is out of date

  1. CentOS 6
  2. Install all tools
    su
    yum -y update
    yum install -y wget tar which
    wget http://people.centos.org/tru/devtools-2/devtools-2.repo -O /etc/yum.repos.d/devtools-2.repo
    yum install -y devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-binutils-devel
    yum install -y devtoolset-2-gcc-c++
    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
    rm -f cmake-3.19.1-Linux-x86_64.sh
    yum -y install epel-release && 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
  3. Clone the repo
    cd ~
    git clone https://github.com/dxFeed/dxfeed-c-api.git
    cd dxfeed-c-api
  4. Enable devtoolset (gcc 4.8)
    source scl_source enable devtoolset-2
  5. Build
    ./make_package.sh 999.0.0 rebuild no-test no-tls
    999.0.0 -- version number

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