Hi, Vipin,
On Fri, Mar 7, 2014 at 7:49 PM, <vvarma@ictp.it> wrote:
After cmake and ccmake, I am trying to 'make' the ALPS 2.2b1 files on my
computer (running on Linux Mint 13 Maya, which is in turn based on Ubuntu
12.04); however I get the following error message:
...snipped...
make[2]: *** No rule to make target `/usr/lib/libhdf5.so', needed by
`applications/mc/spins/spinmc'. Stop.
make[1]: *** [applications/mc/spins/CMakeFiles/spinmc.dir/all] Error 2
make: *** [all] Error 2
This is strange. HDF5 detection code of the ALPS seems broken.
I have tried reinstalling hdf5 (libhdf5-serial-dev) and the ALPS multiple
times on this computer but there is always some error related to the hdf5
files, either during the make process or the cmake configuration. If you
could please help me debug this particular error, that would be greatly
appreciated. A few technical notes are appended at the end.
The problem I believe comes from the CMake. What is the CMake version
of Linux Mint?
If your CMake comes from the Linux Mint, what is the difference between the file
/usr/share/cmake-2.8/Modules/FindHDF5.cmake of Linux Mint and Ubuntu?
3) Snippet of CMakeCache.txt
...snipped...
//The HDF5_hdf5 library
HDF5_hdf5_LIBRARY:FILEPATH=/usr/include
...snipped...
//The HDF5_hdf5_hl library
HDF5_hdf5_hl_LIBRARY:FILEPATH=/usr/include
Something wrong with the above 2 lines.
When everything goes well, the snippet of CMakeCache.txt will be like following:
//The HDF5_hdf5 library
HDF5_hdf5_LIBRARY:FILEPATH=optimized;/opt/nano/alps/lib/libhdf5.so;debug;/opt/nano/alps/lib/libhdf5.so
...snipped...
//The HDF5_hdf5_hl library
HDF5_hdf5_hl_LIBRARY:FILEPATH=optimized;/opt/nano/alps/lib/libhdf5_hl.so;debug;/opt/nano/alps/lib/libhdf5_hl.so
If you change the 2 lines of CMakeCache.txt, then things might change.
Best regards,