2017-05-24 2:00 GMT-06:00 Bensen-zjg Zhang <zhangjg2...@gmail.com>: > Dear VOTCA developers and users, > > > I am trying to install the VOTCA software with build.sh on Centos system but > encountered some errors. Before install votca, I have installed all the > dependencies: Boost, Git, GSL, FFTW3, EXPAT, PkgConfig, SQLITE3, Doxygen, > Gromacs. The gcc version is 6.1.0 and the current boost version is 1.53.0. > The installation command I used is: > > ./build.sh --prefix /usr/local/votca/ > -DFFTW3_INCLUDE_DIR=/usr/local/fftw_shared/include/ > -DFFTW3_LIBRARY=/usr/local/fftw_shared/lib/libfftw3.so --dev tools csg kmc > moo ctp ctp-tutorials ctp-manual > > With this building command, I got the following error information: > /usr/local/lib/libboost_program_options.so: undefined reference to > `std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >::~basic_string()@GLIBCXX_3.4.21' Errors like these usually mean your boost has been compiled with an older (ABI-incompatible) version of gcc. (I am guessing so, as you are using gcc-6.1 which relatively recent, while boost-1.53 is actually more than 4 years old.)
See the troubleshooting block of https://gcc.gnu.org/onlinedocs/gcc-5.2.0/libstdc++/manual/manual/using_dual_abi.html for details. Just install a newer version of boost using your gcc-6.1 and have VOTCA compile against that one. Christoph > /usr/local/lib/libboost_program_options.so: undefined reference to > `std::logic_error::logic_error(std::__cxx11::basic_string<char, > std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21' > /usr/local/lib/libboost_program_options.so: undefined reference to > `std::__cxx11::basic_string<wchar_t, std::char_traits<wchar_t>, > std::allocator<wchar_t> >::~basic_string()@GLIBCXX_3.4.21' > /usr/local/lib/libboost_program_options.so: undefined reference to `operator > delete(void*, unsigned long)@CXXABI_1.3.9' > /usr/local/lib/libboost_program_options.so: undefined reference to > `std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >::_M_replace(unsigned long, unsigned long, char > const*, unsigned long)@GLIBCXX_3.4.21' > /usr/local/lib/libboost_program_options.so: undefined reference to > `std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >::find(char const*, unsigned long, unsigned long) > const@GLIBCXX_3.4.21' > /usr/local/lib/libboost_filesystem.so: undefined reference to > `std::__cxx11::basic_string<char, std::char_traits<char>, > std::allocator<char> >::rfind(char, unsigned long) const@GLIBCXX_3.4.21' > collect2: ld returned 1 exit status > make[2]: *** [src/tools/votca_property] Error 1 > make[1]: *** [src/tools/CMakeFiles/votca_property.dir/all] Error 2 > make: *** [all] Error 2 > > When searching from the previous discussions, I found that I may need to > specify the Boost path. As a result, I tried: > > ./build.sh --prefix /usr/local/votca/ > -DFFTW3_INCLUDE_DIR=/usr/local/fftw_shared/include/ > -DFFTW3_LIBRARY=/usr/local/fftw_shared/lib/libfftw3.so > -DBoost_INCLUDE_DIR=/usr/local/include/boost/ > -DBoost_PROGRAM_OPTIONS_LIBRARY=/usr/local/lib/libboost_program_options.so > -DBoost_FILESYSTEM_LIBRARY=/usr/local/lib/libboost_filesystem.so --dev tools > csg kmc moo ctp ctp-tutorials ctp-manual > > > This time, votca can not find the boost package? I have no idea why it can > not find boost since I have specified the path to it! > For more information, I have attached the entire on screen printed > information and the cmake error file. The file names with "_noBoostPath" > correspond to the first building command (no boost path is specified) while > the file names with "_withBoostPath" correspond to the second building > command. > > By the way, when using the second building command, votca find both GSL and > MKL libraries, so I have also tried to disable the mkl library with > -DCMAKE_DISABLE_FIND_PACKAGE_MKL=ON, but not change happens. > > Thank you very much for your kind help! > With best regards, > Shiyun > > -- > You received this message because you are subscribed to the Google Groups > "votca" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to votca+unsubscr...@googlegroups.com. > To post to this group, send email to votca@googlegroups.com. > Visit this group at https://groups.google.com/group/votca. > For more options, visit https://groups.google.com/d/optout. -- Christoph Junghans Web: http://www.compphys.de -- You received this message because you are subscribed to the Google Groups "votca" group. To unsubscribe from this group and stop receiving emails from it, send an email to votca+unsubscr...@googlegroups.com. To post to this group, send email to votca@googlegroups.com. Visit this group at https://groups.google.com/group/votca. For more options, visit https://groups.google.com/d/optout.