[Trilinos-Users] Trying to install basic Trilinos

Raeth, Peter PRaeth at hpti.com
Fri Feb 25 07:16:31 MST 2011


 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-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!


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<mailto: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/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:.
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-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/



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>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20110225/210c38b9/attachment.html 


More information about the Trilinos-Users mailing list