Hi Shiyun,

my first Idea when reading the error message was, have you used a c++ 
compiler that is supporting the c++11 standard. Because, when adding 
features for the 3body parametrization, I have explicitly used classes from 
c++ 11.

Best

Christoph


Am Mittwoch, 24. Mai 2017 10:00:50 UTC+2 schrieb Jinaguo Zhang:
>
> 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'
> /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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/votca.
For more options, visit https://groups.google.com/d/optout.

Reply via email to