[Trilinos-Users] error with 'make install' for Teuchos with PyTrilinos

Bill Spotz wfspotz at sandia.gov
Wed Jul 25 10:26:26 MDT 2007


Your error is because the PyTrilinos installer is trying to write to / 
usr and you do not have permission.  The reason it is trying to write  
to /usr is because PyTrilinos has a hybrid build system: make turns  
over control to a python script that uses the distutils module.  You  
are specifying your install directory in a way I do not anticipate,  
so it doesn't get passed to the script.

If you configure with --prefix=..., the PyTrilinos build system  
should be able to figure out where to install its modules.  I'm a  
little surprised that it is trying to install in /usr and not /usr/ 
local.  Are you currently setting --prefix?

On Jul 25, 2007, at 6:07 AM, John Pye wrote:

> Hi all
>
> I think I have a problem with the 'make install' step with  
> PyTrilinos in
> the current 7.0.8 release. My 'make install' command (part of building
> an RPM package) is:
>
> |make prefix=/var/tmp/trilinos-7.0.8/usr
> exec_prefix=/var/tmp/trilinos-7.0.8/usr
> bindir=/var/tmp/trilinos-7.0.8/usr/bin
> sbindir=/var/tmp/trilinos-7.0.8/usr/sbin
> sysconfdir=/var/tmp/trilinos-7.0.8/etc
> datadir=/var/tmp/trilinos-7.0.8/usr/share
> includedir=/var/tmp/trilinos-7.0.8/usr/include
> libdir=/var/tmp/trilinos-7.0.8/usr/lib
> libexecdir=/var/tmp/trilinos-7.0.8/usr/libexec
> localstatedir=/var/tmp/trilinos-7.0.8/var
> sharedstatedir=/var/tmp/trilinos-7.0.8/usr/com
> mandir=/var/tmp/trilinos-7.0.8/usr/share/man
> infodir=/var/tmp/trilinos-7.0.8/usr/share/info install|
>
> This gets a little bit of the  way in, with for example
>
> | /usr/bin/install -c -m 644 ./Teuchos_XMLParameterListReader.hpp
> /var/tmp/trilinos-7.0.8/usr/include/Teuchos_XMLParameterListReader.hpp
> /usr/bin/install -c -m 644 ./Teuchos_XMLParameterListWriter.hpp
> /var/tmp/trilinos-7.0.8/usr/include/Teuchos_XMLParameterListWriter.hpp
> /usr/bin/install -c -m 644 ./Teuchos_XMLParser.hpp
> /var/tmp/trilinos-7.0.8/usr/include/Teuchos_XMLParser.hpp
> make[4]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/src'|
>
> but then it fails. It seems that the makefile in
> packages/teuchos/python/src is ignoring the above 'make install'  
> flags,
> and just going ahead and instlaling the stuff in /usr. See below  
> for the
> error.
>
> Chees
> JP
>
> |make[4]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/example'
> make[3]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/example'
> Making install in python
> make[3]: Entering directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/python'
> Making install in src
> make[4]: Entering directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/python/src'
> /usr/bin/python ./setup.py install --prefix=/usr
> running install
> running build
> running build_py
> running build_ext
> running install_lib
> creating /usr/lib/python2.5/site-packages/PyTrilinos
> error: could not create '/usr/lib/python2.5/site-packages/PyTrilinos':
> Permission denied
> make[4]: *** [install] Error 1
> make[4]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/python/src'
> make[3]: *** [install-recursive] Error 1
> make[3]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos/python'
> make[2]: *** [install-recursive] Error 1
> make[2]: Leaving directory
> `/usr/src/redhat/BUILD/trilinos-7.0.8/packages/teuchos'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/src/redhat/BUILD/trilinos-7.0.8/ 
> packages'
> make: *** [install-recursive] Error 1
> error: Bad exit status from /var/tmp/rpm-tmp.40021 (%install)|
>
>
> <john.pye.vcf>
> _______________________________________________
> 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-5451      **
** Albuquerque, NM 87185-0370    Email: wfspotz at sandia.gov **




More information about the Trilinos-Users mailing list