← Back to team overview

dolfin team mailing list archive

Re: [Question #93975]: problem with dolfin installation

 

Question #93975 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/93975

    Status: Open => Answered

Andre Massing proposed the following answer:
Hi,

Murtazo Nazarov wrote:
> New question #93975 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/93975
> 
> Hi,
>  
>  I am facing to the following error when I compile dolfin
>  
>  /usr/bin/ld: cannot find -lboost_program_options
>  collect2: ld returned 1 exit status
>  scons: *** [dolfin/libdolfin.so.0.9.5] Error 1
>  scons: building terminated because of errors.
>  dolfin/libdolfin.so.0.9.5 failed: Error 1
>  Failure with exit status: 2
>  Exit message: There was a problem building dolfin.
>  
>  
>  However, I have lboost_program_options:
>  
>  murtazo@na50:~/local/FEniCS$ ls -l /usr/lib/libboost_program_options-*
>  lrwxrwxrwx 1 root root     35 Dec 12 01:35
>  /usr/lib/libboost_program_options-gcc-mt.a ->
>  libboost_program_options-gcc41-mt.a
>  -rw-r--r-- 1 root root 599610 Oct  8 12:44
>  /usr/lib/libboost_program_options-mt.a
>  lrwxrwxrwx 1 root root     37 Dec 12 01:16
>  /usr/lib/libboost_program_options-mt.so ->
>  libboost_program_options-mt.so.1.38.0
>  -rw-r--r-- 1 root root 268808 Oct  8 12:44
>  /usr/lib/libboost_program_options-mt.so.1.38.0
>  murtazo@na50:~/local/FEniCS$

I had a similar error a while ago. The name of the 
boost_programm_options shared library  has changed in ubuntu from the 
old name -lboost_program_options to -lboost_program_options-<SOMETHING>.
The solution was to search for old package-config files generated by 
DOLFINS's scons, which caches also the link flags, erase them and 
regenerate them via scons.
"locate  *boost*.pc" might be useful to find them (or the find command).
HTH,
Andre


>  
>  
>  murtazo@na50:~/local/FEniCS$ dpkg -l|grep boost
>  ii  libboost-date-time1.38-dev                
>  1.38.0-6ubuntu6                                      set of date-time
>  libraries based on generic
>  ii  libboost-date-time1.38.0                  
>  1.38.0-6ubuntu6                                      set of date-time
>  libraries based on generic
>  ii  libboost-dev                              
>  1.38.1                                               Boost C++ Libraries
>  development files (defau
>  rc  libboost-filesystem1.34.1                 
>  1.34.1-16ubuntu1                                     filesystem
>  operations (portable paths, itera
>  ii  libboost-filesystem1.38-dev               
>  1.38.0-6ubuntu6                                      filesystem
>  operations (portable paths, itera
>  ii  libboost-filesystem1.38.0                 
>  1.38.0-6ubuntu6                                      filesystem
>  operations (portable paths, itera
>  ii  libboost-graph1.38-dev                    
>  1.38.0-6ubuntu6                                      generic graph
>  components and algorithms in C
>  ii  libboost-graph1.38.0                      
>  1.38.0-6ubuntu6                                      generic graph
>  components and algorithms in C
>  ii  libboost-iostreams1.38-dev                
>  1.38.0-6ubuntu6                                      Boost.Iostreams
>  Library development files
>  ii  libboost-iostreams1.38.0                  
>  1.38.0-6ubuntu6                                      Boost.Iostreams
>  Library
>  ii  libboost-math1.38-dev                     
>  1.38.0-6ubuntu6                                      Boost.Math Library
>  development files
>  ii  libboost-math1.38.0                       
>  1.38.0-6ubuntu6                                      Boost.Math Library
>  ii  libboost-program-options-dev              
>  1.38.1                                               program options
>  library for C++ (default ver
>  rc  libboost-program-options1.34.1            
>  1.34.1-16ubuntu1                                     program options
>  library for C++
>  rc  libboost-program-options1.35.0            
>  1.35.0-8ubuntu5                                      program options
>  library for C++
>  ii  libboost-program-options1.38-dev          
>  1.38.0-6ubuntu6                                      program options
>  library for C++
>  ii  libboost-program-options1.38.0            
>  1.38.0-6ubuntu6                                      program options
>  library for C++
>  ii  libboost-program-options1.40.0            
>  1.40.0-2ubuntu2                                      program options
>  library for C++
>  rc  libboost-python1.35.0                     
>  1.35.0-8ubuntu5                                      Boost.Python Library
>  ii  libboost-python1.38-dev                   
>  1.38.0-6ubuntu6                                      Boost.Python
>  Library development files
>  ii  libboost-python1.38.0                     
>  1.38.0-6ubuntu6                                      Boost.Python Library
>  rc  libboost-python1.40.0                     
>  1.40.0-2ubuntu2                                      Boost.Python Library
>  rc  libboost-regex1.34.1                      
>  1.34.1-16ubuntu1                                     regular expression
>  library for C++
>  ii  libboost-regex1.38-dev                    
>  1.38.0-6ubuntu6                                      regular expression
>  library for C++
>  ii  libboost-regex1.38.0                      
>  1.38.0-6ubuntu6                                      regular expression
>  library for C++
>  rc  libboost-serialization1.34.1              
>  1.34.1-16ubuntu1                                     serialization
>  library for C++
>  ii  libboost-serialization1.38-dev            
>  1.38.0-6ubuntu6                                      serialization
>  library for C++
>  ii  libboost-serialization1.38.0              
>  1.38.0-6ubuntu6                                      serialization
>  library for C++
>  rc  libboost-signals1.34.1                    
>  1.34.1-16ubuntu1                                     managed signals and
>  slots library for C++
>  ii  libboost-signals1.38-dev                  
>  1.38.0-6ubuntu6                                      managed signals and
>  slots library for C++
>  ii  libboost-signals1.38.0                    
>  1.38.0-6ubuntu6                                      managed signals and
>  slots library for C++
>  ii  libboost-system1.38-dev                   
>  1.38.0-6ubuntu6                                      Operating system
>  (e.g. diagnostics support)
>  ii  libboost-system1.38.0                     
>  1.38.0-6ubuntu6                                      Operating system
>  (e.g. diagnostics support)
>  ii  libboost-test1.38-dev                     
>  1.38.0-6ubuntu6                                      components for
>  writing and executing test su
>  ii  libboost-test1.38.0                       
>  1.38.0-6ubuntu6                                      components for
>  writing and executing test su
>  rc  libboost-thread1.34.1                     
>  1.34.1-16ubuntu1                                     portable C++
>  multi-threading
>  ii  libboost-thread1.38-dev                   
>  1.38.0-6ubuntu6                                      portable C++
>  multi-threading
>  ii  libboost-thread1.38.0                     
>  1.38.0-6ubuntu6                                      portable C++
>  multi-threading
>  ii  libboost-wave1.38-dev                     
>  1.38.0-6ubuntu6                                      C99/C++
>  preprocessor library
>  ii  libboost-wave1.38.0                       
>  1.38.0-6ubuntu6                                      C99/C++
>  preprocessor library
>  ii  libboost1.38-dev                          
>  1.38.0-6ubuntu6                                      Boost C++ Libraries
>  development files
>  ii  libboost1.38-doc                          
>  1.38.0-6ubuntu6                                      Boost.org libraries
>  documentation
>  murtazo@na50:~/local/FEniCS$
>  
>  
>  Can you see what could be a problem?
>  
>  Thanks a lot,
>  murtazo
> 
> 
> You received this question notification because you are a member of
> DOLFIN Team, which is an answer contact for DOLFIN.
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~dolfin
> Post to     : dolfin@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~dolfin
> More help   : https://help.launchpad.net/ListHelp

You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.