[Trilinos-Users] CMake installation

Amir Vahid av19 at zips.uakron.edu
Mon Nov 15 22:40:48 MST 2010


Thanks Tommy,
Again, I don't know how to make the do-configure script. I wonder if you
could walk me through this. I appreciate it!

Amir Vahid
Chem Eng Dept
The University of Akron
Akron OH 44325-3906

-----Original Message-----
From: Tommy Binford [mailto:tbinford at gmail.com] 
Sent: Monday, November 15, 2010 10:30 PM
To: Amir Vahid
Cc: Thornquist, Heidi K; Willenbring, James M;
trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] CMake installation

Trilinos does not permit in source builds (you aren't supposed to issue the
configure command within the source directory).  You need to create a
separate directory to run the do-configure script you posted in this email.

To get you started, from *outside* your source directory (best in my
opinion) create
a build directory

mkdir bldtrilinos
cd bldtrilinos

Issue the do-configure from within this directory by providing the full path
to your configure script.  For instance, cd to bldtrilinos and issue

/nfs/your/path/to/do-configure

Then it is the same as your usual Linux make and installation:

make
make install

That should get you pretty far.  I would hold off on installation until you
have finalized on your configuration.  You can safely delete the entire
build directory and start over without affecting your source tree.

However,  I strongly encourage you to visit the Trilinos homepage and
examine the documentation there.  In particular, I found this document

http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt

extremely helpful when I was getting started.

Tommy

On Mon, Nov 15, 2010 at 5:51 PM, Amir Vahid <av19 at zips.uakron.edu> wrote:
> Now, when I perform:
>
>         EXTRA_ARGS=$@
>
>
>
>        cmake \
>
>          -D CMAKE_BUILD_TYPE:STRING=DEBUG \
>
>          -D Trilinos_ENABLE_AztecOO:BOOL=ON \
>
>          -D Trilinos_ENABLE_TESTS:BOOL=ON \
>
>          $EXTRA_ARGS \
>
>          /nfs/05/uak0251/trilinos-10.6.1-Source
>
>
>
> I got the following message:
>
>
>
> Configuring Trilinos build directory
>
>
>
> CMake Error at CMakeLists.txt:15 (MESSAGE):
>
>   Error, 
> CMAKE_CURRENT_SOURCE_DIR=/nfs/05/uak0251/trilinos-10.6.1-Source ==
>
>   CMAKE_CURRENT_BINARY_DIR=/nfs/05/uak0251/trilinos-10.6.1-Source 
> Trilinos
>
>   does not support in source builds!
>
>
>
>
>
> I wonder if you could elaborate on this!
>
>
>
> ________________________________
>
> From: Thornquist, Heidi K [mailto:hkthorn at sandia.gov]
>
> Sent: Monday, November 15, 2010 6:17 PM
> To: Amir Vahid; Willenbring, James M; Bartlett, Roscoe A; Tommy 
> Binford
> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] CMake installation
>
>
>
> Ok, next step, we are going to put the path to your new cmake first in 
> your $PATH so that it is found before the old version:
>
> Type “export PATH=/nfs/05/uak0251/cmake/usr/local/bin:$PATH” at the
prompt.
> Type “which cmake”.  What do you get?  This should be the cmake in the 
> directory placed in your path from step 1.
> Now type “cmake --version”.  If this worked, it should be 2.8.3
>
> If this works, the next step will be making this a permanent change in 
> your environment scripts, but let’s see how we do so far.
>
> Thanks,
> Heidi
>
> On 11/15/10 3:52 PM, "Amir Vahid" <av19 at zips.uakron.edu> wrote:
>
> Thanks Heidi,
>
> I get: /usr/bin/cmake
> I get:
>
>
>
MANPATH=/usr/local/pbstools/mvapich1/man:/usr/local/mpi/mvapich-1.1-fixes-pg
i/man:/usr/local/torque-2.4.10/man:/usr/local/moab-5.4.3/man:/usr/local/inte
l-10.0.023/man:/usr/local/pgi-9.0-4/linux86-64/9.0-4/man:/usr/local/modules-
env-3.2.5/Modules/share/man:
> HOSTNAME=opt-login03.osc.edu
> MPI_FFLAGS=-I/usr/local/mpi/mvapich-1.1-fixes-pgi/include
> VIADEV_ADAPTIVE_RDMA_LIMIT=2
> MPI_F90FLAGS=-I/usr/local/mpi/mvapich-1.1-fixes-pgi/include
> MPICH_HOME=/usr/local/mpi/mvapich-1.1-fixes-pgi
> TERM=vt100
> SHELL=/bin/bash
> HISTSIZE=1000
> VIADEV_DEFAULT_RETRY_COUNT=7
> KDE_NO_IPV6=1
> SSH_CLIENT=130.101.47.82 3206 22
> VIADEV_MAX_INLINE_SIZE=80
> QTDIR=/usr/lib64/qt-3.3
> OLDPWD=/nfs/05/uak0251/cmake
> QTINC=/usr/lib64/qt-3.3/include
> PBS_HOME=/var/spool/batch/torque
> DISABLE_RDMA_ALLTOALL=1
> SSH_TTY=/dev/pts/1
> PFS=/fs/pvfs
> PBS_INSTALL=/usr/local/torque-2.4.10
> USER=uak0251
> LD_LIBRARY_PATH=/usr/local/mpi/mvapich-1.1-fixes-pgi/lib/shared:/usr/l
> ocal/torque-2.4.10/lib:/usr/local/pgi-9.0-4/linux86-64/9.0-4/libso:/us
> r/local/pgi-9.0-4/shared/lib64:/usr/local/intel-10.0.023/lib
>
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;
33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=0
1;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:
*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;
31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.
gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
> VIADEV_SRQ_SIZE=2048
> KDEDIR=/usr
> MPIEXEC_COMM=ib
> MPI_LIBS=-L/usr/local/mpi/mvapich-1.1-fixes-pgi/lib/shared
> -L/usr/local/mpi/mvapich-1.1-fixes-pgi/lib -lmpich -libverbs -lpthread 
> MPI_CXXFLAGS=-I/usr/local/mpi/mvapich-1.1-fixes-pgi/include
> MPI_CFLAGS=-I/usr/local/mpi/mvapich-1.1-fixes-pgi/include
> PGI=/usr/local/pgi-9.0-4
> MAIL=/var/spool/mail/uak0251
> PATH=/usr/lib64/qt-3.3/bin:/usr/local/mpirun-compat/bin:/usr/local/pbs
> tools/mvapich1/bin:/usr/local/mpi/mvapich-1.1-fixes-pgi/bin:/usr/local
> /torque-2.4.10/bin:/usr/local/moab-5.4.3/bin:/usr/local/intel-10.0.023
> /bin:/usr/local/pgi-9.0-4/linux86-64/9.0-4/bin:/usr/local/modules-env-
> 3.2.5/Modules/bin:/usr/local/bin:/bin:/usr/bin
> INPUTRC=/etc/inputrc
> PWD=/nfs/05/uak0251
> _LMFILES_=/usr/local/share/modulefiles/pgi:/usr/local/share/modulefile
> s/intel-compilers-10.0.023:/usr/local/share/modulefiles/moab:/usr/loca
> l/share/modulefiles/torque:/usr/local/share/modulefiles/mpi:/usr/local
> /share/modulefiles/mpirun-compat:/usr/local/share/modulefiles/biosoftw
> :/usr/local/modules-env-3.2.5/Modules/modulefiles/modules
> VIADEV_VBUF_POOL_SIZE=512
> BIOSOFT_HOME=/usr/local/biosoftw
> LANG=en_US.UTF-8
> KDE_IS_PRELINKED=1
> MOABHOMEDIR=/var/spool/batch/moab
> MODULEPATH=/usr/local/modules-env-3.2.5/Modules/modulefiles:/usr/local
> /share/modulefiles:/usr/local/biosoftw/modulefiles
> DISABLE_RDMA_ALLGATHER=1
> LOADEDMODULES=pgi:intel-compilers-10.0.023:moab:torque:mpi:mpirun-comp
> at:biosoftw:modules
> VIADEV_SQ_SIZE_MAX=64
> LM_LICENSE_FILE=28519 at license2.osc.edu:/usr/local/pgi-9.0-4/license.da
> t SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
> VIADEV_NUM_RDMA_BUFFER=4
> SHLVL=1
> HOME=/nfs/05/uak0251
> VIADEV_VBUF_TOTAL_SIZE=9216
> PBS_DEFAULT=opt-batch
> VIADEV_USE_AFFINITY=0
> VIADEV_DEFAULT_MAX_SG_LIST=1
> VIADEV_VBUF_SECONDARY_POOL_SIZE=128
> LOGNAME=uak0251
> QTLIB=/usr/lib64/qt-3.3/lib
> VIADEV_ENABLE_AFFINITY=0
> VIADEV_DEFAULT_TIME_OUT=22
> CVS_RSH=ssh
> SSH_CONNECTION=130.101.47.82 3206 192.148.248.251 22 
> MODULESHOME=/usr/local/modules-env-3.2.5/Modules
> DISABLE_RDMA_BARRIER=1
> LESSOPEN=|/usr/bin/lesspipe.sh %s
> MOABSERVER=opt-batch.osc.edu:42559
> G_BROKEN_FILENAMES=1
> _=/bin/env
>
>
>
> my directory is /nfs/05/uak0251/cmake/usr/local/bin. By typing ./cmake 
> –version I get: cmake version 2.8.3
>
> thanks for your elaborations.
>
>
> ________________________________
>
> From: Thornquist, Heidi K [mailto:hkthorn at sandia.gov]
> Sent: Monday, November 15, 2010 5:50 PM
> To: Amir Vahid; Willenbring, James M; Bartlett, Roscoe A; Tommy 
> Binford
> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] CMake installation
>
> No problem.  Let’s start with some information:
>
> In a fresh terminal window, where the environment has not been 
> changed,
> type:  “which cmake”  What do you get?
> Type “env” at the prompt.  What do you get?  This could be a long list 
> of information, but it tells us your environment variables.  We need 
> to see these.
> Go to the directory “/nfs/05/uak0251/cmake/bin”, which looks like 
> where the new 2.8.3 cmake binary should be, and type “./cmake 
> --version”.  What do you get?
>
> Thanks,
> Heidi
>
>
> On 11/15/10 3:27 PM, "Amir Vahid" <av19 at zips.uakron.edu> wrote:
> I think I am totally lost. Let's start over. I wonder if you could 
> tell me what I should do step-by-step and then I follow your map. I
appreciate it!
>
> -----Original Message-----
> From: Willenbring, James M [mailto:jmwille at sandia.gov] 
> <mailto:jmwille at sandia.gov%5d>
> Sent: Monday, November 15, 2010 5:12 PM
> To: Amir Vahid; Bartlett, Roscoe A; 'Tommy Binford'
> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
> Subject: RE: [Trilinos-Users] CMake installation
>
> Amir,
>
> Did you put the path to the new CMake in front of the path to the old 
> version in your path?  Alternatively, did you explicitly list the 
> entire path to the cmake executable when invoking cmake?
>
> Jim
>
> -----Original Message-----
> From: trilinos-users-bounces at software.sandia.gov
> [mailto:trilinos-users-bounces at software.sandia.gov]
> <mailto:trilinos-users-bounces at software.sandia.gov%5d> On Behalf Of 
> Amir Vahid
> Sent: Monday, November 15, 2010 3:00 PM
> To: Bartlett, Roscoe A; 'Tommy Binford'
> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] CMake installation
>
> I am sorry for my questions but let's do it step-by-step:
> I am in the following directory
>
> /nfs/05/uak0251/cmake-2.8.3
>
> Then I type:
>
> make install DESTDIR="/nfs/05/uak0251/cmake"
>
> it works ok and it install everything into cmake folder. However, I 
> still have the old problem with 2.6.1. Am I doing something wrong?
>
> -----Original Message-----
> From: Bartlett, Roscoe A [mailto:rabartl at sandia.gov] 
> <mailto:rabartl at sandia.gov%5d>
> Sent: Monday, November 15, 2010 4:55 PM
> To: Amir Vahid; 'Tommy Binford'
> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
> Subject: RE: [Trilinos-Users] CMake installation
>
> Amir,
>
> Just modify your path so that the directory with CMake 2.8.3 comes 
> *before* CMake 2.6.1.
>
> - Ross
>
>
>> -----Original Message-----
>> From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos- 
>> users-bounces at software.sandia.gov] On Behalf Of Amir Vahid
>> Sent: Monday, November 15, 2010 2:44 PM
>> To: Bartlett, Roscoe A; 'Tommy Binford'
>> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
>> Subject: Re: [Trilinos-Users] CMake installation
>>
>> This didn't work. Do you know a way of uninstalling 2.6.1?
>>
>>
>> ----Original Message-----
>> From: Bartlett, Roscoe A [mailto:rabartl at sandia.gov] 
>> <mailto:rabartl at sandia.gov%5d>
>> Sent: Monday, November 15, 2010 2:48 PM
>> To: Amir Vahid; 'Tommy Binford'
>> Cc: Salinger, Andrew; trilinos-users at software.sandia.gov
>> Subject: RE: [Trilinos-Users] CMake installation
>>
>> Amir,
>>
>> Just use the absolute path to CMake 2.8.3 when you configure and you 
>> should be good to go.
>>
>> - Ross
>>
>>
>> > -----Original Message-----
>> > From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos- 
>> > users-bounces at software.sandia.gov] On Behalf Of Amir Vahid
>> > Sent: Monday, November 15, 2010 12:22 PM
>> > To: 'Tommy Binford'
>> > Cc: Bartlett, Roscoe A; Salinger, Andrew; trilinos- 
>> > users at software.sandia.gov
>> > Subject: Re: [Trilinos-Users] CMake installation
>> >
>> > Dear All,
>> > The version check gives me the following:
>> > cmake version 2.6-patch 4
>> >
>> > How can I get rid of 2.6? How can I change the path that you
>> mentioned
>> > to
>> > find the newer one?
>> >
>> > -----Original Message-----
>> > From: Tommy Binford [mailto:tbinford at gmail.com] 
>> > <mailto:tbinford at gmail.com%5d>
>> > Sent: Monday, November 15, 2010 2:19 PM
>> > To: Amir Vahid
>> > Cc: Bartlett, Roscoe A; trilinos-users at software.sandia.gov; 
>> > Salinger, Andrew
>> > Subject: Re: [Trilinos-Users] CMake installation
>> >
>> > Amir,
>> >
>> > Be sure that the newly installed version of cmake is on your path 
>> > before 2.6.4.  I experienced a similar problem because my default 
>> > cmake version was
>> too
>> > old.
>> > After installing, the old version was still on my path (I used a 
>> > different installation
>> > path) before 2.8.2+.  Trilinos build system is telling you the
>> version
>> > it sees (2.6.4).
>> >
>> > Check the cmake version from the command line to be sure.
>> > cmake --version
>> >
>> > Tommy Binford
>> > -just a user-
>> >
>> > On Mon, Nov 15, 2010 at 12:57 PM, Amir Vahid <av19 at zips.uakron.edu>
>> > wrote:
>> > > I have already installed version 2.8.3! it gives me this error 
>> > > with
>> > 2.8.3.
>> > > do you think that 2.8.2 might work?
>> > >
>> > >
>> > >
>> > > ________________________________
>> > >
>> > > From: Bartlett, Roscoe A [mailto:rabartl at sandia.gov] 
>> > > <mailto:rabartl at sandia.gov%5d>
>> > > Sent: Monday, November 15, 2010 2:02 PM
>> > >
>> > > To: Amir Vahid; trilinos-users at software.sandia.gov
>> > > Cc: Salinger, Andrew
>> > > Subject: RE: [Trilinos-Users] CMake installation
>> > >
>> > >
>> > >
>> > > Amir,
>> > >
>> > >
>> > >
>> > > Please upgrade to CMake of at least 2.8.2.  Go to:
>> > >
>> > >
>> > >
>> > >     http://www.cmake.org/cmake/resources/software.html
>> > >
>> > >
>> > >
>> > > to git the Binary files you need.
>> > >
>> > >
>> > >
>> > > Cheers,
>> > >
>> > >
>> > >
>> > > - Ross
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > From: Amir Vahid [mailto:av19 at zips.uakron.edu] 
>> > > <mailto:av19 at zips.uakron.edu%5d>
>> > > Sent: Monday, November 15, 2010 11:53 AM
>> > > To: Bartlett, Roscoe A; trilinos-users at software.sandia.gov
>> > > Cc: Salinger, Andrew
>> > > Subject: RE: [Trilinos-Users] CMake installation
>> > >
>> > >
>> > >
>> > > I tried in and out of source build. I also installed cmake-2.8.3 
>> > > on
>> > my
>> > > system. however, I get the following error massage:
>> > >
>> > >
>> > >
>> > > CMake Error at CMakeLists.txt:3 (CMAKE_MINIMUM_REQUIRED):
>> > >
>> > >   CMake 2.7 or higher is required.  You are running version 2.6.4
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > ________________________________
>> > >
>> > > From: Bartlett, Roscoe A [mailto:rabartl at sandia.gov] 
>> > > <mailto:rabartl at sandia.gov%5d>
>> > > Sent: Monday, November 15, 2010 1:55 PM
>> > > To: Amir Vahid; trilinos-users at software.sandia.gov
>> > > Subject: RE: [Trilinos-Users] CMake installation
>> > >
>> > >
>> > >
>> > > Amir,
>> > >
>> > >
>> > >
>> > > Don't try and in-source build.  Do an out-of-source build.
>> > >
>> > >
>> > >
>> > > - Ross
>> > >
>> > > Amir,
>> > >
>> > >
>> > >
>> > > It looks like some small syntax problems. Try:
>> > >
>> > >
>> > >
>> > >         EXTRA_ARGS=$@
>> > >
>> > >
>> > >
>> > >        cmake \
>> > >
>> > >          -D CMAKE_BUILD_TYPE:STRING=DEBUG \
>> > >
>> > >          -D Trilinos_ENABLE_AztecOO:BOOL=ON \
>> > >
>> > >          -D Trilinos_ENABLE_TESTS:BOOL=ON \
>> > >
>> > >          $EXTRA_ARGS \
>> > >
>> > >         /nfs/05/uak0251/trilinos-10.6.1-Source
>> > >
>> > >
>> > >
>> > > Andy Salinger
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > From: trilinos-users-bounces at software.sandia.gov
>> > > [mailto:trilinos-users-bounces at software.sandia.gov]
>> > > <mailto:trilinos-users-bounces at software.sandia.gov%5d> On Behalf 
>> > > Of
>> Amir
>> > Vahid
>> > > Sent: Monday, November 15, 2010 11:36 AM
>> > > To: trilinos-users at software.sandia.gov
>> > > Subject: [Trilinos-Users] CMake installation
>> > >
>> > >
>> > >
>> > > Dear All,
>> > >
>> > >
>> > >
>> > > I am new to trillions and I really need step-by-step installation
>> > guide. I
>> > > followed the steps mentioned in:
>> > >
>> > > http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt
>> > >
>> > >
>> > >
>> > > At the first stage, I have installed CMake binary file. The 
>> > > second
>> > step
>> > was
>> > > basic configurations for trillions. Therefore, I went into the
>> > trillions
>> > > directory (/nfs/05/uak0251/trilinos-10.6.1-Source) and then typed
>> in:
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >         EXTRA_ARGS=$@
>> > >
>> > >
>> > >
>> > >         cmake \
>> > >
>> > >           -D CMAKE_BUILD_TYPE:STRING=DEBUG \
>> > >
>> > >           -D Trilinos_ENABLE_<AztecOO>:BOOL=ON \
>> > >
>> > >           -D Trilinos_ENABLE_TESTS:BOOL=ON \
>> > >
>> > >           -D DART_TESTING_TIMEOUT:STRING=600 \
>> > >
>> > >          $EXTRA_ARGS \
>> > >
>> > >          ${/nfs/05/uak0251/trilinos-10.6.1-Source/}
>> > >
>> > >
>> > >
>> > > I get the following error massage:
>> > >
>> > > ${/nfs/05/uak0251/trilions-10.6.1-Source}: bad substitution
>> > >
>> > >
>> > >
>> > > Also, when I remove the $ signs I get the following error:
>> > >
>> > >
>> > >
>> > > AztecOO: No such file or directory
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > I wonder if you could help me on this issue. Also, installation 
>> > > of
>> > the
>> > > trillions sounds cumbersome. Is there an easier way to perform 
>> > > this installation?
>> > >
>> > >
>> > >
>> > > Thanks for your helps.
>> > >
>> > >
>> > >
>> > > Amir Vahid
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > _______________________________________________
>> > > Trilinos-Users mailing list
>> > > Trilinos-Users at software.sandia.gov
>> > > http://software.sandia.gov/mailman/listinfo/trilinos-users
>> > >
>> > >
>> >
>> >
>> >
>> > _______________________________________________
>> > Trilinos-Users mailing list
>> > Trilinos-Users at software.sandia.gov
>> > http://software.sandia.gov/mailman/listinfo/trilinos-users
>>
>>
>>
>>
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>





More information about the Trilinos-Users mailing list