I am trying to install QuantLib v. 0.3.7 under Cygwin using Boost 1.31.0
and gcc 3.3.1. After installing Boost using default settings, running configure with the default settings for QuantLib ends in the following error (from config.log): configure:24957: checking for Boost development files configure:24978: g++ -c -g -O2 conftest.cc >&5 conftest.cc:62:29: boost/version.hpp: No such file or directory conftest.cc:63:37: boost/shared_ptr.hpp: No such file or directory conftest.cc:64:33: boost/assert.hpp: No such file or directory conftest.cc:65:43: boost/current_function.hpp: No such file or directory configure:24984: $1 = 1 configure: failed program was: ... #include <boost/version.hpp> ... configure:25004: result: no configure:25006: error: Boost development files not found This version of boost installs the header files by default in /usr/local/include/boost-1_31/boost and the library files in /usr/local/lib Any suggestions on how I can get configure to find the Boost installation? ------------------------------------------- Mike Oczkowski, Ph.D. Francis Marion University ------------------------------------------- |
There are two possible solutions for this. Either make a symbolic link from
/usr/local/include/boost-1_31/boost to /usr/local/include/boost or modify the CPPFLAGS environment variable to include -I /usr/local/include/boost-1_31 (ie. type "export CPPFLAGS=-I /usr/local/include/boost-1_31". Mark. Quoting Michael Oczkowski <[hidden email]>: > I am trying to install QuantLib v. 0.3.7 under Cygwin using Boost 1.31.0 > and gcc 3.3.1. After installing Boost using default settings, running > configure with the default settings for QuantLib ends in the following > error (from config.log): > > configure:24957: checking for Boost development files > configure:24978: g++ -c -g -O2 conftest.cc >&5 > conftest.cc:62:29: boost/version.hpp: No such file or directory > conftest.cc:63:37: boost/shared_ptr.hpp: No such file or directory > conftest.cc:64:33: boost/assert.hpp: No such file or directory > conftest.cc:65:43: boost/current_function.hpp: No such file or directory > configure:24984: $1 = 1 > configure: failed program was: > ... > #include <boost/version.hpp> > ... > configure:25004: result: no > configure:25006: error: Boost development files not found > > > This version of boost installs the header files by default in > /usr/local/include/boost-1_31/boost > > and the library files in > /usr/local/lib > > Any suggestions on how I can get configure to find the Boost installation? > > > > ------------------------------------------- > Mike Oczkowski, Ph.D. > Francis Marion University > ------------------------------------------- > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > _______________________________________________ > Quantlib-users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/quantlib-users > ---------------------------------------- This mail sent through www.mywaterloo.ca |
I tried "export CPPFLAGS=-I /usr/local/include/boost-1_31" but then
another error came up relating to linking to one of the libraries. Doing "export CPPFLAGS=-I /usr/local/include/boost-1_31 -L /usr/local/lib" did the trick. Thanks! Mike > There are two possible solutions for this. Either make a symbolic link from > /usr/local/include/boost-1_31/boost to /usr/local/include/boost or modify the > CPPFLAGS environment variable to include -I /usr/local/include/boost-1_31 (ie. > type "export CPPFLAGS=-I /usr/local/include/boost-1_31". > > Mark. > > Quoting Michael Oczkowski <[hidden email]>: > > > I am trying to install QuantLib v. 0.3.7 under Cygwin using Boost 1.31.0 > > and gcc 3.3.1. After installing Boost using default settings, running > > configure with the default settings for QuantLib ends in the following > > error (from config.log): > > > > configure:24957: checking for Boost development files > > configure:24978: g++ -c -g -O2 conftest.cc >&5 > > conftest.cc:62:29: boost/version.hpp: No such file or directory > > conftest.cc:63:37: boost/shared_ptr.hpp: No such file or directory > > conftest.cc:64:33: boost/assert.hpp: No such file or directory > > conftest.cc:65:43: boost/current_function.hpp: No such file or directory > > configure:24984: $1 = 1 > > configure: failed program was: > > ... > > #include <boost/version.hpp> > > ... > > configure:25004: result: no > > configure:25006: error: Boost development files not found > > > > > > This version of boost installs the header files by default in > > /usr/local/include/boost-1_31/boost > > > > and the library files in > > /usr/local/lib > > > > Any suggestions on how I can get configure to find the Boost installation? > > > > > > > > ------------------------------------------- > > Mike Oczkowski, Ph.D. > > Francis Marion University > > ------------------------------------------- > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > _______________________________________________ > > Quantlib-users mailing list > > [hidden email] > > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > > > > > > ---------------------------------------- > This mail sent through www.mywaterloo.ca > ------------------------------------------- Mike Oczkowski, Ph.D. Assistant Professor of Computational Physics Francis Marion University Dept. of Physics and Astronomy P.O. Box 100547 Florence, SC 29501 (843) 661-1444 [hidden email] ------------------------------------------- |
OK, well that worked for the configure, but not for the make! So I
started over and defined export CPPFLAGS="-I /usr/local/include/boost-1_31" export LDFLAGS="-L /usr/local/lib" Then configure worked fine and make made it until test_suite before mysteriously failing. A line of the output showed g++ -g -O2 /usr/local/bin -o quantlib-test-suite.exe ... Of course it complained that /usr/local/bin is a directory. As it turns out, you have to remove the space in the definition of LDFLAGS?! So, removing the space from the LDFLAGS in the Makefile under test-suite/ made it work! Or you could just define in the beginning export LDFLAGS="-L/usr/local/lib" Then the failed line above became g++ -g -O2 -o quantlib-test-suite.exe *.o -L/usr/local/lib -lboost... Mike > I tried "export CPPFLAGS=-I /usr/local/include/boost-1_31" but then > another error came up relating to linking to one of the libraries. Doing > "export CPPFLAGS=-I /usr/local/include/boost-1_31 -L /usr/local/lib" did > the trick. > > Thanks! > > Mike > > > There are two possible solutions for this. Either make a symbolic link from > > /usr/local/include/boost-1_31/boost to /usr/local/include/boost or modify the > > CPPFLAGS environment variable to include -I /usr/local/include/boost-1_31 (ie. > > type "export CPPFLAGS=-I /usr/local/include/boost-1_31". > > > > Mark. > > > > Quoting Michael Oczkowski <[hidden email]>: > > > > > I am trying to install QuantLib v. 0.3.7 under Cygwin using Boost 1.31.0 > > > and gcc 3.3.1. After installing Boost using default settings, running > > > configure with the default settings for QuantLib ends in the following > > > error (from config.log): > > > > > > configure:24957: checking for Boost development files > > > configure:24978: g++ -c -g -O2 conftest.cc >&5 > > > conftest.cc:62:29: boost/version.hpp: No such file or directory > > > conftest.cc:63:37: boost/shared_ptr.hpp: No such file or directory > > > conftest.cc:64:33: boost/assert.hpp: No such file or directory > > > conftest.cc:65:43: boost/current_function.hpp: No such file or directory > > > configure:24984: $1 = 1 > > > configure: failed program was: > > > ... > > > #include <boost/version.hpp> > > > ... > > > configure:25004: result: no > > > configure:25006: error: Boost development files not found > > > > > > > > > This version of boost installs the header files by default in > > > /usr/local/include/boost-1_31/boost > > > > > > and the library files in > > > /usr/local/lib > > > > > > Any suggestions on how I can get configure to find the Boost installation? > > > > > > > > > > > > ------------------------------------------- > > > Mike Oczkowski, Ph.D. > > > Francis Marion University > > > ------------------------------------------- > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click > > > _______________________________________________ > > > Quantlib-users mailing list > > > [hidden email] > > > https://lists.sourceforge.net/lists/listinfo/quantlib-users > > > > > > > > > > > > > ---------------------------------------- > > This mail sent through www.mywaterloo.ca > > > > > > ------------------------------------------- > Mike Oczkowski, Ph.D. > Assistant Professor of Computational Physics > Francis Marion University > Dept. of Physics and Astronomy > P.O. Box 100547 > Florence, SC 29501 > (843) 661-1444 > [hidden email] > ------------------------------------------- > > > ------------------------------------------- Mike Oczkowski, Ph.D. Assistant Professor of Computational Physics Francis Marion University Dept. of Physics and Astronomy P.O. Box 100547 Florence, SC 29501 (843) 661-1444 [hidden email] ------------------------------------------- |
Hi Mike
>OK, well that worked for the configure, but not for the make! [...] >Then the failed line above became >g++ -g -O2 -o quantlib-test-suite.exe *.o -L/usr/local/lib -lboost... I'm not a *nix guy, so I cannot really help you. Anyway here's my 0.02$: did you compile Boost? The Boost header files are enough for QuantLib and its examples, NOT enough for the QuantLib test-suite. The test-suite is based on the Boost Unit Test framework, which needs to be compiled. On a related note I would appreciate if you could provide a newbie tutorial on how to compile QuantLib under Win32+cygwin. I think the cygwin "bridge" would be a great opportunity for those who would consider moving from Win32 to *nix, or simply want to check their code with gcc. ciao -- Nando |
In reply to this post by Michael Oczkowski
Could you elaborate on the specific error that its giving you. ie. missing
libboost_unit_test_suite.so? Also how did you install boost? From rpms, debs? Mark. Quoting Michael Oczkowski <[hidden email]>: > OK, well that worked for the configure, but not for the make! So I > started over and defined > > export CPPFLAGS="-I /usr/local/include/boost-1_31" > export LDFLAGS="-L /usr/local/lib" > > Then configure worked fine and make made it until test_suite before > mysteriously failing. A line of the output showed > g++ -g -O2 /usr/local/bin -o quantlib-test-suite.exe ... > > Of course it complained that /usr/local/bin is a directory. As it turns > out, you have to remove the space in the definition of LDFLAGS?! So, > removing the space from the LDFLAGS in the Makefile under test-suite/ made > it work! Or you could just define in the beginning > > export LDFLAGS="-L/usr/local/lib" > > Then the failed line above became > g++ -g -O2 -o quantlib-test-suite.exe *.o -L/usr/local/lib -lboost... > > Mike > ---------------------------------------- This mail sent through www.mywaterloo.ca |
Free forum by Nabble | Edit this page |