On Sat, Aug 18, 2018 at 11:47 PM Aditi Khot <[email protected]> wrote: > > Hi, > > I was using that but there was typo in the CMAKE_INSTALL_PREFIX. It installed > now. Thanks! :) > > But when I try to run the sample script, it terminates. And when I run > 'csg_property --help', it gives the error: 'csg_property: error while loading > shared libraries: libfftw3.so.3: cannot open shared object file: No such file > or directory'. > CMake found the folder 'fftw3' and library 'libfftw3.so' while compiling. But > when I run the command 'csg_property --help' (after installation), I get the > above error. I have installed fftw.3.3.8, so in the lib folder of fftw3, I > have the file 'libfftw3.so.3.3.8' and not 'libfftw3.so.3'. Is there a > variable I can change to fix this? There should be a symbolic link libfftw3.so.3, pointing to 'libfftw3.so.3.3.8.
Anyhow there two ways to fix the above issue of error while loading shared libraries: a.) Set the environment variable LD_LIBRARY_PATH. Like the normal PATH variable it can contain multiple paths separated by a ":", e.g. export LD_LIBRARY_PATH="/depot/bsavoie/apps/votca_dependencies/fftw3/lib:/depot/bsavoie/apps/votca_dependencies/sqlite3/lib" in your case. b.) Run cmake with -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON and re-build / re-install Details about RPATH can be found here: https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling > I do not have administrative access, so I have installed the libraries > locally. > > On a side note, even when compiling using CMake, I was getting an error if > the installation folder of fftw was named 'fftw3.3.8' instead of 'fftw3'. So > I installed fftw in a folder named 'fftw3', which fixed the issues with > compilation. Without the actual error message it is hard to say what the problem was, but in general the folder name shouldn't matter. CMake internally just calls "pkg-config --libs fftw3" and parses its output, so as long as you have set your PKG_CONFIG_PATH correctly and hence pkg-config give reasonable output, this should work for any folder name. Christoph > > Again, thank you for the help! > > Aditi. > > -- > 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. -- 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 [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.
