[Trilinos-Users] Trying to install basic Trilinos
David Cole
david.cole at kitware.com
Fri Feb 25 09:30:47 MST 2011
Delete the CMakeCache.txt that is probably in your source directory and try
again.
Once an in-source build has been attempted, you have to remove the stuff
CMake writes into the source tree to get rid of the cache.
Try starting over with a clean source tree. That should do it. Everything
else looks correct.
On Fri, Feb 25, 2011 at 11:03 AM, Raeth, Peter <PRaeth at hpti.com> wrote:
> Hi Brent.
>
> Copied do_configure to the build directory and modified it to try what you
> said. The new script is:
>
> hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build/
> cat ./do_configure.sh
>
> #!/bin/csh -x
>
> setenv TRILINOS_HOME ../
> setenv PATH /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:$PATH
> pwd
>
> cmake \
> -D CMAKE_BUILD_TYPE:STRING=DEBUG \
> -D
> CMAKE_INSTALL_PREFIX:PATH=/app2/comenv/ALTIX4700/.unsupported/trilinos-build
> \
> -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
> -D Trilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=ON \
> -D Trilinos_ENABLE_TESTS:BOOL=ON \
> -D Trilinos_ENABLE_Epetra:BOOL=ON \
> -D Trilinos_ENABLE_Triutils:BOOL=ON \
> -D Trilinos_ENABLE_Anasazi:BOOL=ON \
> -D Trilinos_ENABLE_Didasko:BOOL=ON \
> $TRILINOS_HOME
>
> exit
>
> hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build/
>
>
>
> Received the same error message:
>
> hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build/
> ./do_configure.sh
>
> setenv TRILINOS_HOME ../
> setenv PATH
> /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:/app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:/usr/local/krb5/bin:/usr/local/ossh/bin:/opt/pbs/default/bin:/opt/intel/idb/9.1.042/bin:/opt/intel/cc/9.1.042/bin:/opt/intel/fc/9.1.036/bin:/hafs2/praeth/bin:/hafs2/praeth/bin/linux.altix:/usr/ucb:/bin:/usr/bin:/hafs_linux.altix:/app/csiapps/base/linux.altix/bin:/app/bciapps/base/linux.altix/bin:/usr/local:/usr/bin/X11:/usr/local/bin:/opt/gnome/bin:.
> pwd
> /aloe/app/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build
> cmake -D CMAKE_BUILD_TYPE:STRING=DEBUG -D
> CMAKE_INSTALL_PREFIX:PATH=/app2/comenv/ALTIX4700/.unsupported/trilinos-build
> -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON -D
> Trilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=ON -D
> Trilinos_ENABLE_TESTS:BOOL=ON -D Trilinos_ENABLE_Epetra:BOOL=ON -D
> Trilinos_ENABLE_Triutils:BOOL=ON -D Trilinos_ENABLE_Anasazi:BOOL=ON -D
> Trilinos_ENABLE_Didasko:BOOL=ON ../
>
> Configuring Trilinos build directory
>
> CMake Error at CMakeLists.txt:15 (MESSAGE):
> Error,
>
> CMAKE_CURRENT_SOURCE_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> ==
>
> CMAKE_CURRENT_BINARY_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> Trilinos does not support in source builds!
>
>
> -- Configuring incomplete, errors occurred!
> exit
>
> hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build/
>
>
>
> Thanks for the input though.
>
>
> Best,
>
> Peter.
>
> Peter G. Raeth, Ph.D.
> Senior Staff Scientist
> Signal and Image Processing
> High Performance Technologies, Inc
> 937-904-5147
> praeth at hpti.com
>
> ________________________________________
> From: trilinos-users-bounces at software.sandia.gov [
> trilinos-users-bounces at software.sandia.gov] on behalf of Perschbacher,
> Brent M [bmpersc at sandia.gov]
> Sent: Friday, February 25, 2011 10:52 AM
> To: Raeth, Peter; trilinos-users at software.sandia.gov
> Subject: Re: [Trilinos-Users] Trying to install basic Trilinos
>
> Peter,
> I believe what you are trying to do should work. Both configure scripts
> seem fine to me. I use a build tree that is a sub-directory of my source
> tree for pretty much everything I do with Trilinos and it works fine. I do
> however, have the configure script in my build directory and then use "../"
> as my path to the Trilinos source, but what you have should work too. The
> only thing that I can think of to check is if the cd to your build
> directory
> is failing silently, which might happen if the directory doesn't exist. It
> has been a long time since I've used c shell that I don't recall its
> behavior for that. Can you put "pwd" right before your cmake call to see
> which directory you are in right before you call cmake.
>
> Brent
>
>
> On 2/25/11 7:32 AM, "Raeth, Peter" <PRaeth at hpti.com> wrote:
>
> > If I do "which cmake" at the command line then I get "cmake: Command not
> > found." If I then extend the path, "setenv PATH
> > /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:$PATH", I get
> > "/app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin/cmake". Did this from
> > trilinos-build. I also ran do_configure from trilinos-build.
> >
> > Lets see what others say as the world wakes up.
> >
> >
> > Best,
> >
> > Peter.
> >
> > Peter G. Raeth, Ph.D.
> > Senior Staff Scientist
> > Signal and Image Processing
> > High Performance Technologies, Inc
> > 937-904-5147
> > praeth at hpti.com
> >
> > ________________________________________
> > From: trilinos-users-bounces at software.sandia.gov
> > [trilinos-users-bounces at software.sandia.gov] on behalf of Heroux, Mike
> > [MHeroux at csbsju.edu]
> > Sent: Friday, February 25, 2011 9:26 AM
> > To: Raeth, Peter; trilinos-users at software.sandia.gov
> > Subject: Re: [Trilinos-Users] Trying to install basic Trilinos
> >
> > Actually, what I said was not on point. Sorry. The installation path
> has
> > nothing to do with this issue (although is a generally good idea). Need
> more
> > coffee ...
> >
> > It appears that somehow cmake is being executed from the source
> directory,
> > even though you appear to be in a different directory. Can you manually
> step
> > through the script to make sure cmake is being executed in the
> trilinos-build
> > directory?
> >
> > If this doesn¹t help, there are others who are more capable than I am who
> will
> > be online soon.
> >
> > Sorry to confuse things.
> >
> > Mike
> >
> >
> > On 2/25/11 8:16 AM, "Raeth, Peter" <PRaeth at hpti.com> wrote:
> >
> > Thank you for writing Mike.
> >
> > What led me to use the original script was this comment in the install
> > instructions:
> >
> > C) Configuring (Makefile Generator)
> > -----------------------------------
> >
> >
> > (*) Setting up a build directory:
> >
> > $ mkdir SOME_BUILD_DIR
> > $ cd SOME_BUILD_DIR
> >
> > NOTE: You can create a build directory from any location you would
> like. It
> > can be a sub-directory of the Trilinos base source directory or
> anywhere
> > else.
> >
> >
> >
> >
> > Based on what you said, I created a build directory outside the source
> > directory. The new script is:
> >
> > #!/bin/csh -x
> >
> > setenv TRILINOS_HOME
> > /app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> > setenv PATH /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:$PATH
> > cd /app2/comenv/ALTIX4700/.unsupported/trilinos-build
> >
> > cmake \
> > -D CMAKE_BUILD_TYPE:STRING=DEBUG \
> > -D
> >
> CMAKE_INSTALL_PREFIX:PATH=/app2/comenv/ALTIX4700/.unsupported/trilinos-build
> \
> > -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
> > -D Trilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=ON \
> > -D Trilinos_ENABLE_TESTS:BOOL=ON \
> > -D Trilinos_ENABLE_Epetra:BOOL=ON \
> > -D Trilinos_ENABLE_Triutils:BOOL=ON \
> > -D Trilinos_ENABLE_Anasazi:BOOL=ON \
> > -D Trilinos_ENABLE_Didasko:BOOL=ON \
> > $TRILINOS_HOME
> >
> > exit
> >
> > Am getting the same error:
> >
> > Configuring Trilinos build directory
> >
> > CMake Error at CMakeLists.txt:15 (MESSAGE):
> > Error,
> >
> >
> CMAKE_CURRENT_SOURCE_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-S
> > ource
> > ==
> >
> >
> CMAKE_CURRENT_BINARY_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-S
> > ource
> > Trilinos does not support in source builds!
> >
> >
> > -- Configuring incomplete, errors occurred!
> >
> >
> > It looks like the process is still trying to put the binary in the source
> > directory and it does not like that. Not being a cmake user, how do I
> manually
> > specify the location of the binary directory?
> >
> >
> >
> > Thanks,
> >
> > Peter.
> >
> > Peter G. Raeth, Ph.D.
> > Senior Staff Scientist
> > Signal and Image Processing
> > High Performance Technologies, Inc
> > 937-904-5147
> > praeth at hpti.com
> > ________________________________
> > From: trilinos-users-bounces at software.sandia.gov
> > [trilinos-users-bounces at software.sandia.gov] on behalf of Heroux,
> Michael A
> > [maherou at sandia.gov]
> > Sent: Friday, February 25, 2011 8:45 AM
> > To: Raeth, Peter; trilinos-users at software.sandia.gov
> > Subject: Re: [Trilinos-Users] Trying to install basic Trilinos
> >
> > Peter,
> >
> > It appears that you are trying to build in the source directories, which
> is
> > not permitted. If you add the following line to your script:
> >
> > -D CMAKE_INSTALL_PREFIX:PATH=$TRILINOS_HOME/ALTIX4700_BUILD \
> >
> > or something similar, you should get past this issue.
> >
> > I hope this helps.
> >
> > Mike
> >
> > On 2/25/11 7:37 AM, "Raeth, Peter" <PRaeth at hpti.com<UrlBlockedError.aspx> >
> > wrote:
> >
> > In an effort to help users transition from shared to distributed-memory
> > machines, I am trying to install Trilinos on
> > http://www.afrl.hpc.mil/hardware/hawk.php. This is my first experience
> with
> > Trilinos.
> >
> > Reading the installation guide at
> > http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt, I wrote the
> > following script:
> >
> > hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/ cat
> > ./do_configure.sh
> >
> > #!/bin/csh -x
> >
> > setenv TRILINOS_HOME
> > /app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> > setenv PATH /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:$PATH
> > cd $TRILINOS_HOME/build
> >
> > cmake \
> > -D CMAKE_BUILD_TYPE:STRING=DEBUG \
> > -D Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON \
> > -D Trilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=ON \
> > -D CMAKE_BUILD_TYPE:STRING=DEBUG \
> > -D Trilinos_ENABLE_TESTS:BOOL=ON \
> > -D Trilinos_ENABLE_Epetra:BOOL=ON \
> > -D Trilinos_ENABLE_Triutils:BOOL=ON \
> > -D Trilinos_ENABLE_Anasazi:BOOL=ON \
> > -D Trilinos_ENABLE_Didasko:BOOL=ON \
> > $TRILINOS_HOME
> >
> > exit
> >
> > hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/
> >
> >
> >
> >
> > When I run this script I get the following error:
> >
> > hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/
> > ./do_configure.sh
> >
> > setenv TRILINOS_HOME
> > /app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> > setenv PATH
> >
> /app2/comenv/ALTIX4700/pkgs/cmake-2.8.1/bin:/usr/local/krb5/bin:/usr/local/oss
> >
> h/bin:/opt/pbs/default/bin:/opt/intel/idb/9.1.042/bin:/opt/intel/cc/9.1.042/bi
> >
> n:/opt/intel/fc/9.1.036/bin:/hafs2/praeth/bin:/hafs2/praeth/bin/linux.altix:/u
> >
> sr/ucb:/bin:/usr/bin:/hafs_linux.altix:/app/csiapps/base/linux.altix/bin:/app/
> >
> bciapps/base/linux.altix/bin:/usr/local:/usr/bin/X11:/usr/local/bin:/opt/gnome
> > /bin:.
> > cd /app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/build
> > cmake -D CMAKE_BUILD_TYPE:STRING=DEBUG -D
> > Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES:BOOL=ON -D
> > Trilinos_ENABLE_ALL_FORWARD_DEP_PACKAGES:BOOL=ON -D
> > CMAKE_BUILD_TYPE:STRING=DEBUG -D Trilinos_ENABLE_TESTS:BOOL=ON -D
> > Trilinos_ENABLE_Epetra:BOOL=ON -D Trilinos_ENABLE_Triutils:BOOL=ON -D
> > Trilinos_ENABLE_Anasazi:BOOL=ON -D Trilinos_ENABLE_Didasko:BOOL=ON
> > /app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source
> >
> > Configuring Trilinos build directory
> >
> > CMake Error at CMakeLists.txt:15 (MESSAGE):
> > Error,
> >
> >
> CMAKE_CURRENT_SOURCE_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-S
> > ource
> > ==
> >
> >
> CMAKE_CURRENT_BINARY_DIR=/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-S
> > ource
> > Trilinos does not support in source builds!
> >
> >
> > -- Configuring incomplete, errors occurred!
> > exit
> >
> > hawk-0:/app2/comenv/ALTIX4700/.unsupported/trilinos-10.6.2-Source/
> >
> >
> >
> > Does anyone have advice? I appreciate any insights the community can
> offer.
> >
> >
> > Thanks,
> >
> > Peter.
> >
> > Peter G. Raeth, Ph.D.
> > Senior Staff Scientist
> > Signal and Image Processing
> > High Performance Technologies, Inc
> > 937-904-5147
> > praeth at hpti.com <UrlBlockedError.aspx>
> >
> >
> >
> > ________________________________
> > _______________________________________________
> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110225/03081ad0/attachment-0001.html
More information about the Trilinos-Users
mailing list