[Trilinos-Users] [EXTERNAL] Installing pytrilinos to a user-defined directory
Bill Spotz
wfspotz at sandia.gov
Sun Dec 18 14:13:06 MST 2011
ST,
The PyTrilinos installation path is supposed to be set by the user via variable PyTrilinos_INSTALL_PREFIX as seen at line 182 of Trilinos/packages/PyTrilinos/CMakeLists.txt. I personally have not tried using the configure options file.
-Bill
On Dec 18, 2011, at 12:31 AM, <lukshuntim at gmail.com> <lukshuntim at gmail.com> wrote:
> Hi,
>
> I'm using stow to manage user installed software and would like to
> install pytrilinos under /usr/local/stow/trilinos. I'm using approach b)
> as documented in
>
> http://trilinos.sandia.gov/Trilinos10CMakeQuickstart.txt
>
> Configure went through fine but it always told me this message
> "-- PyTrilinos installation path:
> /usr/lib/python2.7/site-packages/PyTrilinos". I tried using
> CMAKE_INSTALL_PREFIX or setting
>
> SET(PyTrilinos_INSTALL_PREFIX '/usr/local/stow/trilinos' CACHE PATH ""
> FORCE)
>
> directly but got the same result.
>
> Here's my MyConfigureOptions.cmake:
>
> <MyConfigureOptions.cmake>
> # MyConfigureOptions.cmake
> # Enable pytrilinos
> SET(Trilinos_ENABLE_PyTrilinos ON CACHE BOOL "" FORCE)
>
> # pytrilinos required shared library
> SET(BUILD_SHARED_LIBS ON CACHE BOOL "" FORCE)
>
> # Enable all packages with python wrapper to be built
> SET(Trilinos_ENABLE_ALL_OPTIONAL_PACKAGES ON CACHE BOOL "" FORCE)
>
> # Force pytrilinos to install to CMAKE_INSTALL_PREFIX
> SET(CMAKE_INSTALL_PREFIX '/usr/local/stow/trilinos' CACHE PATH "" FORCE)
> SET(PyTrilinos_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "" FORCE)
> # Use /usr/local/stow/trilinos
> #SET(PyTrilinos_INSTALL_PREFIX '/usr/local/stow/trilinos' CACHE PATH ""
> FORCE)
>
>
> # Enable MPI
> SET(TPL_ENABLE_MPI ON CACHE BOOL "" FORCE)
> SET(MPI_BASE_DIR "/usr" CACHE PATH "" FORCE)
> </MyConfigureOptions.cmake>
>
> Grateful for any advice.
>
> Regards,
> ST
> --
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
** Bill Spotz **
** Sandia National Laboratories Voice: (505)845-0170 **
** P.O. Box 5800 Fax: (505)284-0154 **
** Albuquerque, NM 87185-0370 Email: wfspotz at sandia.gov **
More information about the Trilinos-Users
mailing list