Hi Synge,
Thanks for your help. It works now.
Regards, Ruben
----- Original Message ---- From: Synge Todo wistaria@comp-phys.org To: comp-phys-alps-users@lists.phys.ethz.ch Sent: Sat, November 20, 2010 5:01:14 AM Subject: Re: [ALPS-users] ../../src/alps/parapack/filelock.C:93: error: 'S_IWRITE' was not declared in this scope
Dear Ruben,
This is a known problem on Ubuntu 10.10. Please add
#include <sys/stat.h>
at the beginning of src/alps/parapack/filelock.C, and try to make again.
Best, Synge
On 2010/11/19, at 1:12, Ruben Ghulghazaryan wrote:
Hi,
I am trying to install Alps 1.3.5 on Kubuntu 10.10 but I got the following problem with 'S_IWRITE'.
Would you please suggest a solution to this problem?
+++++++++++++++++++++++++++
Making all in lib make[1]: Entering directory `/home/levon/alps-1.3.5/lib' Making all in comm-sgl make[2]: Entering directory `/home/levon/alps-1.3.5/lib/comm-sgl' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/levon/alps-1.3.5/lib/comm-sgl' Making all in comm-mpi make[2]: Entering directory `/home/levon/alps-1.3.5/lib/comm-mpi' make[2]: Nothing to be done for `all'. make[2]: Leaving directory `/home/levon/alps-1.3.5/lib/comm-mpi' Making all in alps make[2]: Entering directory `/home/levon/alps-1.3.5/lib/alps' /bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -I/home/levon/boost_1_41_0 -I/usr/include/mpi -g -O2 -MT filelock.lo -MD -MP -MF .deps/filelock.Tpo -c -o
filelock.lo `test -f '../../src/alps/parapack/filelock.C' || echo './'`../../src/alps/parapack/filelock.C libtool: compile: g++ -DHAVE_CONFIG_H -I../../src -I../../src -DNDEBUG -I/home/levon/boost_1_41_0 -I/usr/include/mpi -g -O2 -MT filelock.lo -MD -MP -MF
.deps/filelock.Tpo -c ../../src/alps/parapack/filelock.C -fPIC -DPIC -o .libs/filelock.o ../../src/alps/parapack/filelock.C: In member function 'void alps::filelock::lock(int)': ../../src/alps/parapack/filelock.C:93: error: 'S_IWRITE' was not declared in this scope make[2]: *** [filelock.lo] Error 1 make[2]: Leaving directory `/home/levon/alps-1.3.5/lib/alps' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/levon/alps-1.3.5/lib' make: *** [all-recursive] Error 1 ++++++++++++++++++++++++++
Thanks, Ruben