CMake Error at cmake_install.cmake:54 (FILE):
  file cannot create directory: /usr/bin/vistrails/packages.  Maybe need
  administrative privileges.

Oh, by the way, do I have to install Vistrails if I just wanna use python?

On Wed, Feb 1, 2012 at 6:34 PM, Matthias Troyer <troyer@phys.ethz.ch> wrote:

On Feb 1, 2012, at 3:45 AM, Jin Xu wrote:

Hello Matthias,

Thanks for your reply.

1. After "./test/fixed_capacity/test_
vector"
terminate called after throwing an instance of 'std::logic_error'
  what():  non_pod
Aborted

Synge, is that a known problem?


2. I did try "sudo make install" but the errors were still there.

which errors?


3. Since I am not so experienced in Linux, I don't quite understand " add the ALPS installation to your path". Could you tell me more detailed technical things?

Just type

export PATH=/opt/alps/bin:$PATH

or call the ALPS programs with the /opt/alps/bin prefix, e.g. /opt/alps/bin/dmrg

Matthias



On Wed, Feb 1, 2012 at 6:13 AM, Matthias Troyer <troyer@phys.ethz.ch> wrote:
Hi Jin Xu,


On 31 Jan 2012, at 16:35, Jin Xu wrote:

Dear Madam/Sir,

I am a senior undergraduate student from Department of Physics, Zhejiang University, China.

I've been trying many times to install ALPS 2.0.3 on my Ubuntu 11.10 Desktop but I failed. I will appreciate if you could help me fix the problems so that I can use python to run ALPS.

7. After make test, there come some errors:
98% tests passed, 2 tests failed out of 99

Total Test time (real) =  16.81 sec

The following tests FAILED:
     23 - test_vector (Failed)
     40 - lattice_constant_test (Failed)

The lattice_constant_test can be ignored, but please run the test_vector executable (./test/fixed_capacity/test_vector from the build directory) and send us the output.


Errors while running CTest
make: *** [test] Error 8


8. After make install, there are also some errors:
CMake Error at cmake_install.cmake:54 (FILE):
  file cannot create directory: /usr/bin/vistrails/packages.  Maybe need
  administrative privileges.

Yes, you need to use

sudo make install


9. Now I still cannot run ALPS on my laptop (dmft-02-hybridization):
alpspython tutorial2a.py
alpspython: command not found

You need to add the ALPS installation to your path.


python tutorial2a.py
Traceback (most recent call last):
  File "tutorial2a.py", line 27, in <module>
    import pyalps
ImportError: No module named pyalps

You need to use either alpspython, or install pyalps into your system python directory.


dmft hybrid.param
No command 'dmft' found, did you mean:
 Command 'mft' from package 'texlive-binaries' (main)
dmft: command not found

You need to add the ALPS installation to your path.



Best regards

Matthias Troyer




--
Jin Xu
 
Undergraduate Student
 
Department of Physics, Zhejiang University, Hangzhou, 310027, China
 
 
Skype Handle: trivial19891016





--
Jin Xu
 
Undergraduate Student
 
Department of Physics, Zhejiang University, Hangzhou, 310027, China
 
Email: jin.xu@ualberta.ca
 
Skype Handle: trivial19891016