here is a copy of the cmake_install.cmake file.

B.

Le 22 janvier 2011 14:25, benoît grémaud <gremaud.benoit@gmail.com> a écrit :
yes. I always restart from scratch.

I tried to comment the corresponding lines in the lib/pyalps/make_install.cmake,
but then the same problem occurs for  lib/pyalps/pymcdata_c.so: can find the file and after that the file has disappeared. I am not in expert in cmake, but how comes the file can be removed and be found at the same time?


regards,

Benoît


2011/1/22 Matthias Troyer <troyer@phys.ethz.ch>
Did you completely erase the build directory before trying again?

On Jan 21, 2011, at 8:31 PM, benoît grémaud wrote:

Dear Matthias and Munehisa,

I just tried with replacing "~" by the full path, but it didn't work. The error is still the same. In addition, for all the preceding files, it correctly works, i.e. the  are installed
at the right place. Again, I checked that, before the error,  the file is where the
installer is looking for it, but for some reasons, it doesn't find it and, in addition, it seems that is has been deleted (can't find it anywhere). 

the build/lib/pyalps directory before the install

total 5.1M
4.0K drwxr-xr-x 3 gremaud fermicold 4.0K Jan 22 11:56 ./
4.0K drwxr-xr-x 4 gremaud fermicold 4.0K Jan 22 11:44 ../
4.0K drwxr-xr-x 6 gremaud fermicold 4.0K Jan 22 11:45 CMakeFiles/
8.0K -rw-r--r-- 1 gremaud fermicold 6.3K Jan 22 11:44 cmake_install.cmake
 16K -rw-r--r-- 1 gremaud fermicold  15K Jan 22 11:44 Makefile
680K -rwxr-xr-x 1 gremaud fermicold 673K Jan 22 11:54 pyalea_c.so*
2.9M -rwxr-xr-x 1 gremaud fermicold 2.9M Jan 22 11:56 pyhdf5_c.so*
1.4M -rwxr-xr-x 1 gremaud fermicold 1.4M Jan 22 11:56 pymcdata_c.so*
100K -rwxr-xr-x 1 gremaud fermicold  96K Jan 22 11:56 pytools_c.so*

in the CMakeFiles directory there is a directory named:

"pyalea_c.dir/__/__/src/alps/python"

are the double "__"  an expected name?

sorry for taking your time and thanks for your help.

regards,

Benoît


2011/1/22 Matthias Troyer <troyer@phys.ethz.ch>
Indeed, ~ is not supported by CMake - you need to specify full paths.

Matthias

On Jan 21, 2011, at 4:34 PM, Munehisa Matsumoto wrote:

Dear Kruno and Benoît,

I finally reproduced the problem by setting the following
in my initial cmake command

-DCMAKE_INSTALL_PREFIX=~/....

instead of

-DCMAKE_INSTALL_PREFIX=${HOME}/...

which I usually do. It might help to do "${HOME}/" instead of "~/" in your cmake.

best regards,
Munehisa Matsumoto

Munehisa MATSUMOTO
Department of  Physics
University of California, One Shields Avenue, Davis, CA 95616
E-mail: matsumoto@physics.ucdavis.edu
matumott@mac.com
matumott@gmail.com


On 2011/01/19, at 3:02, Krunoslav Prsa wrote:

Hi,
I get the same problem when installing on the brutus clustur...


Best wishes,
Kruno

-------------------------------------------------
Dr. Krunoslav Prsa, Postdoc
Dynamics of strongly correlated materials
Laboratory for Solid State Physics
Building/Office: HPF/E15.1
Schafmattstrasse 16,
ETH Zürich Hönggerberg,
CH-8093 Switzerland.
Office phone:  +41 44 633 22 96
Lab phone:     +41 44 633 23 01
Mobile phone: +41 76 386 17 99
-------------------------------------------------
 


-----Original Message-----
From: Prsa Krunoslav [mailto:Krunoslav.Prsa@psi.ch]
Sent: Wednesday, January 19, 2011 8:50 AM
To: kprsa@phys.ethz.ch
Subject: FW: [ALPS-users] error at installation for pyalea_c.so


-------------------------------------------
From: comp-phys-alps-users-bounces@lists.phys.ethz.ch on behalf of benoît
grémaud[SMTP:GREMAUD.BENOIT@GMAIL.COM]
Sent: Wednesday, January 19, 2011 8:50:21 AM
To: comp-phys-alps-users@phys.ethz.ch
Subject: [ALPS-users] error at installation for pyalea_c.so
Auto forwarded by a Rule

Hello,

I am compiling alps2.0.0-- -r5363 on a linux machine (fedora) with intel
compilers and mkl

I use boost provided by alps. python version is 2.6.4

the cmake command is as follows:

cmake -D Boost_ROOT_DIR:PATH=~/alps/alps-2.0.0-r5363-src-with-boost/boost
-DCMAKE_INSTALL_PREFIX=~/alps/alps-2.0.0-r5363 -D LAPACK_64_BIT=ON
-DLPSOLVE_ROOT=~/alps/lp_solve_4.0
~/alps/alps-2.0.0-r5363-src-with-boost/alps

cmake, make, make test,  all went fine. however, I got the following error
during the install:

CMake Error at lib/pyalps/cmake_install.cmake:41 (FILE):
  file INSTALL cannot find
  "/home/gremaud/alps/alps-2.0.0-r5363/lib/pyalps/pyalea_c.so".
Call Stack (most recent call first):
  cmake_install.cmake:94 (INCLUDE)

I checked that before the installation the file pyalea_c.so existed.
Strangely enough, after the preceding error, it has disappeared.

any clue of what happened?

regards,

Benoît Grémaud


--------------------


Researcher at CNRS, Laboratoire Kastler Brossel (Paris, France)


Visiting Associate Professor at the Centre for Quantum Technologies (NUS,
Singapore)








--
--------------------

Researcher at CNRS, Laboratoire Kastler Brossel (Paris, France)

Visiting Associate Professor at the Centre for Quantum Technologies (NUS, Singapore)






--
--------------------

Researcher at CNRS, Laboratoire Kastler Brossel (Paris, France)

Visiting Associate Professor at the Centre for Quantum Technologies (NUS, Singapore)





--
--------------------

Researcher at CNRS, Laboratoire Kastler Brossel (Paris, France)

Visiting Associate Professor at the Centre for Quantum Technologies (NUS, Singapore)