Thank you very much Michele and Matthias! I turned on the ALPS_ENABLE_OPENMP option and I've managed to install without any problems. However, I now have the problem that whenever I try to run one of the tutorial Python scripts, by running: sudo /home/prentice/Documents/ALPSInstall/bin/alpspython ~/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py I get the error message: /bin/sh: 1: dmrg: not found Traceback (most recent call last): File "/home/prentice/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py", line 51, in <module> data = pyalps.loadEigenstateMeasurements(pyalps.getResultFiles(prefix='parm_spin_one_half')) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 397, in getResultFiles res=recursiveGlob(dirname, pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 372, in recursiveGlob for d in os.listdir(dirname): OSError: [Errno 20] Not a directory: './dev/cdrom'
The key problem, I thought, was that dmrg cannot be found, and I'm not sure how to fix this. I've gone back through the archives here and tried editing the .bashrc file, which fixed a similar problem, but didn't work for me. Any ideas how I can fix this? It's a problem with all the tutorials, TEBD, MC, etc.
Thank you again, Joseph On 22 Jul 2013, at 11:00, <comp-phys-alps-users-request@lists.phys.ethz.chmailto:comp-phys-alps-users-request@lists.phys.ethz.ch> wrote:
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.chmailto:comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
1. Re: Building ALPS on Ubuntu 12.04 - error when building TEBD (Matthias Troyer)
----------------------------------------------------------------------
Message: 1 Date: Sun, 21 Jul 2013 15:34:32 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Building ALPS on Ubuntu 12.04 - error when building TEBD Message-ID: EEF93DDC-244A-47D3-89D5-5AA60BCBC0AD@phys.ethz.ch Content-Type: text/plain; charset="us-ascii"
Hi Joesph,
You will need to add -fopenmp to your Fortran compilation flags
Best regards
Matthias
On Jul 18, 2013, at 9:51 AM, Joseph Prentice Joseph.Prentice@physics.ox.ac.uk wrote:
Hi all,
Apologies for changing tack, given my previous message about installing on Mac OS X 10.7.5, but I have instead tried installing ALPS on Ubuntu 12.04, following the instructions on the wiki, with admin privileges now. After getting the dependent libraries as described, to compile ALPS I initially used the command: $ sudo cmake -DALPS_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/prentice/Documents/ALPSInstall/ /home/prentice/Documents/ALPS/alps-2.1.1-r6176-src/alps and this seemed to work well. I then used sudo make and let ALPS build. However, at about 64% in, I got the following message: Scanning dependencies of target tebd [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/GlobalData.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LinearOps.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/HamiOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/StateOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LocalOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/ObOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/PropOps.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/tebd.f90.o Linking Fortran executable tebd CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__': tebd.f90:(.text+0x8b0): undefined reference to `omp_get_num_procs_' tebd.f90:(.text+0x9ab): undefined reference to `omp_set_num_threads_' collect2: ld returned 1 exit status make[2]: *** [applications/dmrg/tebd/tebd] Error 1 make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2 make: *** [all] Error 2
Are there any ideas about what can be done with this? There doesn't appear to be a problem with OpenMP, as we have tested it with another simple program, and I have Googled the error too, with no results. I am stumped, and any help would be greatly appreciated. I will attach the CMakeCache.txt file if that is of use.
Thank you very much, Joseph Prentice <TEBD Fail Ubuntu CMakeCache.txt.gz>
For reason your Python interpreter seems to use the root directory / as the working directory. Do you launch the tutorials from the root directory by any chance?
On Jul 22, 2013, at 7:02 AM, Joseph Prentice Joseph.Prentice@physics.ox.ac.uk wrote:
Thank you very much Michele and Matthias! I turned on the ALPS_ENABLE_OPENMP option and I've managed to install without any problems. However, I now have the problem that whenever I try to run one of the tutorial Python scripts, by running: sudo /home/prentice/Documents/ALPSInstall/bin/alpspython ~/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py I get the error message: /bin/sh: 1: dmrg: not found Traceback (most recent call last): File "/home/prentice/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py", line 51, in <module> data = pyalps.loadEigenstateMeasurements(pyalps.getResultFiles(prefix='parm_spin_one_half')) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 397, in getResultFiles res=recursiveGlob(dirname, pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 372, in recursiveGlob for d in os.listdir(dirname): OSError: [Errno 20] Not a directory: './dev/cdrom'
The key problem, I thought, was that dmrg cannot be found, and I'm not sure how to fix this. I've gone back through the archives here and tried editing the .bashrc file, which fixed a similar problem, but didn't work for me. Any ideas how I can fix this? It's a problem with all the tutorials, TEBD, MC, etc.
Thank you again, Joseph On 22 Jul 2013, at 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
- Re: Building ALPS on Ubuntu 12.04 - error when
building TEBD (Matthias Troyer)
Message: 1 Date: Sun, 21 Jul 2013 15:34:32 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Building ALPS on Ubuntu 12.04 - error when building TEBD Message-ID: EEF93DDC-244A-47D3-89D5-5AA60BCBC0AD@phys.ethz.ch Content-Type: text/plain; charset="us-ascii"
Hi Joesph,
You will need to add -fopenmp to your Fortran compilation flags
Best regards
Matthias
On Jul 18, 2013, at 9:51 AM, Joseph Prentice Joseph.Prentice@physics.ox.ac.uk wrote:
Hi all,
Apologies for changing tack, given my previous message about installing on Mac OS X 10.7.5, but I have instead tried installing ALPS on Ubuntu 12.04, following the instructions on the wiki, with admin privileges now. After getting the dependent libraries as described, to compile ALPS I initially used the command: $ sudo cmake -DALPS_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/prentice/Documents/ALPSInstall/ /home/prentice/Documents/ALPS/alps-2.1.1-r6176-src/alps and this seemed to work well. I then used sudo make and let ALPS build. However, at about 64% in, I got the following message: Scanning dependencies of target tebd [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/GlobalData.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LinearOps.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/HamiOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/StateOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LocalOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/ObOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/PropOps.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/tebd.f90.o Linking Fortran executable tebd CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__': tebd.f90:(.text+0x8b0): undefined reference to `omp_get_num_procs_' tebd.f90:(.text+0x9ab): undefined reference to `omp_set_num_threads_' collect2: ld returned 1 exit status make[2]: *** [applications/dmrg/tebd/tebd] Error 1 make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2 make: *** [all] Error 2
Are there any ideas about what can be done with this? There doesn't appear to be a problem with OpenMP, as we have tested it with another simple program, and I have Googled the error too, with no results. I am stumped, and any help would be greatly appreciated. I will attach the CMakeCache.txt file if that is of use.
Thank you very much, Joseph Prentice
<TEBD Fail Ubuntu CMakeCache.txt.gz>
Hi Joseph,
Can you please try the following: launch Python and then run:
import os os.getcwd()
and tell us the output?
Matthias
On Jul 22, 2013, at 8:38 AM, Matthias Troyer troyer@phys.ethz.ch wrote:
For reason your Python interpreter seems to use the root directory / as the working directory. Do you launch the tutorials from the root directory by any chance?
On Jul 22, 2013, at 7:02 AM, Joseph Prentice Joseph.Prentice@physics.ox.ac.uk wrote:
Thank you very much Michele and Matthias! I turned on the ALPS_ENABLE_OPENMP option and I've managed to install without any problems. However, I now have the problem that whenever I try to run one of the tutorial Python scripts, by running: sudo /home/prentice/Documents/ALPSInstall/bin/alpspython ~/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py I get the error message: /bin/sh: 1: dmrg: not found Traceback (most recent call last): File "/home/prentice/Documents/ALPSInstall/tutorials/dmrg-01-dmrg/spin_one_half.py", line 51, in <module> data = pyalps.loadEigenstateMeasurements(pyalps.getResultFiles(prefix='parm_spin_one_half')) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 397, in getResultFiles res=recursiveGlob(dirname, pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 374, in recursiveGlob ret += recursiveGlob(os.path.join(dirname, d), pattern) File "/home/prentice/Documents/ALPSInstall/lib/pyalps/tools.py", line 372, in recursiveGlob for d in os.listdir(dirname): OSError: [Errno 20] Not a directory: './dev/cdrom'
The key problem, I thought, was that dmrg cannot be found, and I'm not sure how to fix this. I've gone back through the archives here and tried editing the .bashrc file, which fixed a similar problem, but didn't work for me. Any ideas how I can fix this? It's a problem with all the tutorials, TEBD, MC, etc.
Thank you again, Joseph On 22 Jul 2013, at 11:00, comp-phys-alps-users-request@lists.phys.ethz.ch wrote:
Send Comp-phys-alps-users mailing list submissions to comp-phys-alps-users@lists.phys.ethz.ch
To subscribe or unsubscribe via the World Wide Web, visit https://lists.phys.ethz.ch/listinfo/comp-phys-alps-users or, via email, send a message with subject or body 'help' to comp-phys-alps-users-request@lists.phys.ethz.ch
You can reach the person managing the list at comp-phys-alps-users-owner@lists.phys.ethz.ch
When replying, please edit your Subject line so it is more specific than "Re: Contents of Comp-phys-alps-users digest..."
Today's Topics:
- Re: Building ALPS on Ubuntu 12.04 - error when
building TEBD (Matthias Troyer)
Message: 1 Date: Sun, 21 Jul 2013 15:34:32 -0600 From: Matthias Troyer troyer@phys.ethz.ch To: comp-phys-alps-users@lists.phys.ethz.ch Subject: Re: [ALPS-users] Building ALPS on Ubuntu 12.04 - error when building TEBD Message-ID: EEF93DDC-244A-47D3-89D5-5AA60BCBC0AD@phys.ethz.ch Content-Type: text/plain; charset="us-ascii"
Hi Joesph,
You will need to add -fopenmp to your Fortran compilation flags
Best regards
Matthias
On Jul 18, 2013, at 9:51 AM, Joseph Prentice Joseph.Prentice@physics.ox.ac.uk wrote:
Hi all,
Apologies for changing tack, given my previous message about installing on Mac OS X 10.7.5, but I have instead tried installing ALPS on Ubuntu 12.04, following the instructions on the wiki, with admin privileges now. After getting the dependent libraries as described, to compile ALPS I initially used the command: $ sudo cmake -DALPS_BUILD_FORTRAN=ON -DCMAKE_INSTALL_PREFIX=/home/prentice/Documents/ALPSInstall/ /home/prentice/Documents/ALPS/alps-2.1.1-r6176-src/alps and this seemed to work well. I then used sudo make and let ALPS build. However, at about 64% in, I got the following message: Scanning dependencies of target tebd [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/GlobalData.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LinearOps.f90.o [ 62%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/HamiOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/StateOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/LocalOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/ObOps.f90.o [ 63%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/Hdf5Interface.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/core/PropOps.f90.o [ 64%] Building Fortran object applications/dmrg/tebd/CMakeFiles/tebd.dir/tebd.f90.o Linking Fortran executable tebd CMakeFiles/tebd.dir/tebd.f90.o: In function `MAIN__': tebd.f90:(.text+0x8b0): undefined reference to `omp_get_num_procs_' tebd.f90:(.text+0x9ab): undefined reference to `omp_set_num_threads_' collect2: ld returned 1 exit status make[2]: *** [applications/dmrg/tebd/tebd] Error 1 make[1]: *** [applications/dmrg/tebd/CMakeFiles/tebd.dir/all] Error 2 make: *** [all] Error 2
Are there any ideas about what can be done with this? There doesn't appear to be a problem with OpenMP, as we have tested it with another simple program, and I have Googled the error too, with no results. I am stumped, and any help would be greatly appreciated. I will attach the CMakeCache.txt file if that is of use.
Thank you very much, Joseph Prentice
<TEBD Fail Ubuntu CMakeCache.txt.gz>
comp-phys-alps-users@lists.phys.ethz.ch