Dear Julien,
   Thank you for your reply. I first logged in as root in my pc and then changed directory to /opt/. Then ran the command 
cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps

It worked fine. After that I ran "make " and got the error as attached in my previous mail.

Again I found a website http://linuxtoolkit.blogspot.kr/2011/11/installing-alps-20-from-source-on.html where they suggested to use
                     "make -j 8 " instead of simply "make"

Unfortunately I again some errors : 

applications/dmrg/mps/CMakeFiles/mps_models.dir/build.make:86: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o' failed
make[2]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/framework/dmrg/models/factory/model_factory_nu1.cpp.o] Error 1
CMakeFiles/Makefile2:5599: recipe for target 'applications/dmrg/mps/CMakeFiles/mps_models.dir/all' failed
make[1]: *** [applications/dmrg/mps/CMakeFiles/mps_models.dir/all] Error 2
applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/build.make:206: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o' failed
make[2]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/interaction_expansion/splines.cpp.o] Error 1
CMakeFiles/Makefile2:5987: recipe for target 'applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all' failed
make[1]: *** [applications/dmft/qmc/CMakeFiles/interaction_expansion_impl.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Please help me to install alps properly in my pc.

Thanking you,

Dr. Santu Baidya



On Thu, Dec 1, 2016 5:52 PM, Julien julien.despres@institutoptique.fr wrote:

Dear Santu,

If you install the package in the 'opt' directory you have to use 'sudo'. Did you try to write in the terminal : sudo make test, sudo make install etc ...

Julien

-- 
__________________________________

DESPRES Julien
Ph.D. student

Atom Optics group
Quantum Matter Theory team
Laboratoire Charles Fabry
Institut d'Optique Graduate School
2 Avenue Augustin Fresnel
91127 Palaiseau Cedex

Office : R2.29 (1st floor)
Phone: +33 1 64 53 33 49
__________________________________

On 01/12/2016 05:46, Santu Baidya wrote:
Dear alps users,

    I am currently installing alps-2.2.b3-r7462-src-with-boost in Linux, 4.4.0-47-generic #68-Ubuntu, x86_64, GNU/Linux. I first followed the instruction and ran the command:


cmake -D Boost_ROOT_DIR=/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost -DCMAKE_INSTALL_PREFIX=/opt/alps-2.2 /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/alps

It ran without any problem.
After that when I ran make i got some error for installation:

/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:16: error: ‘uintptr_t’ was not declared in this scope
 typedef atomic<uintptr_t> atomic_uintptr_t;
                ^
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/atomic/atomic.hpp:202:25: error: template argument 1 is invalid
 typedef atomic<uintptr_t> atomic_uintptr_t;
                         ^
In file included from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/once.hpp:20:0,
                 from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/./once_atomic.cpp:9,
                 from /opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/libs/thread/src/pthread/once.cpp:8:
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:120:37: warning: variadic templates only available with -std=c++11 or -std=gnu++11
   template<typename Function, class ...ArgTypes>
                                     ^
/opt/alps-2.2/alps-2.2.b3-r7462-src-with-boost/boost/boost/thread/pthread/once_atomic.hpp:121:108: warning: variadic templates only available with -std=c++11 or -std=gnu++11
   inline void call_once(once_flag& flag, BOOST_THREAD_RV_REF(Function) f, BOOST_THREAD_RV_REF(ArgTypes)... args)
                                                                                                            ^
src/boost/CMakeFiles/boost.dir/build.make:3302: recipe for target 'src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o' failed
make[2]: *** [src/boost/CMakeFiles/boost.dir/__/__/boost/libs/thread/src/pthread/once.cpp.o] Error 1
CMakeFiles/Makefile2:1081: recipe for target 'src/boost/CMakeFiles/boost.dir/all' failed
make[1]: *** [src/boost/CMakeFiles/boost.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2

Please help me to install this code in Ubuntu in my pc. 

Thanking you, 

Dr. Santu Baidya
Seoul National University
South korea









----
Comp-phys-alps-users Mailing List for the ALPS Project
http://alps.comp-phys.org/

List info: https://lists.phys.ethz.ch//listinfo/comp-phys-alps-users
Archive: https://lists.phys.ethz.ch//pipermail/comp-phys-alps-users

Unsubscribe by writing a mail to comp-phys-alps-users-leave@lists.phys.ethz.ch.