-
Notifications
You must be signed in to change notification settings - Fork 14
How To Build On RHEL\CentOS 7
ttldtor edited this page Dec 10, 2020
·
13 revisions
-
Install RHEL\CentOS 7
-
Install all tools
su yum -y update && yum install -y wget tar which yum install -y gcc binutils binutils-devel gcc-c++ make 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 https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-16.02-10.el7.x86_64.rpm yum -y install https://www.mirrorservice.org/sites/dl.fedoraproject.org/pub/epel/7/x86_64/Packages/p/p7zip-plugins-16.02-10.el7.x86_64.rpm yum -y install https://packages.endpoint.com/rhel/7/os/x86_64/endpoint-repo-1.7-1.x86_64.rpm yum install -y git
-
Clone the repo
cd ~ git clone https://github.com/dxFeed/dxfeed-c-api.git cd dxfeed-c-api
-
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
Known Issues:
-
Docker CentOS 7:
bash: ./make_package.sh: /bin/sh: bad interpreter: No such file or directory
Solution:
ln -sf /usr/bin/bash /bin/sh