Loading...
Home / Reply To: Installation issues – RedHat

Home Forums Help Installation issues – RedHat Reply To: Installation issues – RedHat

#6261
wojciech.slusarski
Participant

Hi Niall,

Thank you very much for your comprehensive analysis of the problem. I will not be validating ORE on windows and mac, but I guess some info regarding boost version should be introduced into documentation in userquide.pdf.
I can confirm, that with boost 1.63.0 today I managed to compile it on my laptop with Ubuntu 16.04.3 LTS (apart from RedHat 7.3 on Amazon AWS last week).

The script to compile it was as below. Maybe some parts of it could also enter the code base to make it easier to install and run examples?

`
#!/bin/sh

export BOOST=/home/wojtek/boost_1_63_0
# in $BOOST directory compilation was:
# ./bootstrap.sh –prefix=$BOOST
# ./b2 –without-python -j8 link=shared runtime-link=shared install
export LD_LIBRARY_PATH=$BOOST/lib:$LD_LIBRARY_PATH
# now assumed that ore is a folder below, where there is all the ORE code
# cloned from github
cd ore
git submodule update
cd QuantLib
make clean
./autogen.sh
./configure –with-boost-include=$BOOST/include –with-boost-lib=$BOOST/lib CXXFLAGS=’-O2 -std=c++11′
make -j 8

cd ../QuantExt
make clean
./autogen.sh
./configure –with-boost-include=$BOOST/include –with-boost-lib=$BOOST/lib CXXFLAGS=’-O2 -std=c++11′

make -j 8
./test/quantext-test-suite

cd ../OREData
make clean
./autogen.sh
./configure –disable-static CXXFLAGS=”-O2 -std=c++11″ –with-boost-include=$BOOST/include –with-boost-lib=$BOOST/lib
make -j 8
./test/ored-test-suite

cd ../OREAnalytics
make clean
./autogen.sh
./configure –with-boost-include=$BOOST/include –with-boost-lib=$BOOST/lib
make -j 8
./test/orea-test-suite

cd ../App
make clean
./autogen.sh
./configure –with-boost-include=$BOOST/include –with-boost-lib=$BOOST/lib
make -j 8

export LC_NUMERIC=C

cd ../Examples/Example_1
python run.py
`