← Back to team overview

dolfin team mailing list archive

Re: ubuntu 7.10 amd64 install problem

 

On Mon, Apr 7, 2008 at 2:19 PM, Anders Logg <logg@xxxxxxxxx> wrote:
> On Mon, Apr 07, 2008 at 02:14:02PM -0500, Matthew Knepley wrote:
>  > I think you should be asking Python for the libdir, not using /usr/lib.
>  > You would most likely come up with the directory under Sage where
>  > he installed.
>  >
>  >   Mat
>
>  I actually don't know how we check this, but I'm pretty sure we don't
>  assume it's /usr/lib.
>
>  I'm just saying, we can't be expected to find it under
>  /mnt/drive_hda1/sagefiles.

On the contrary, I think you might be able to. Here is an excerpt from
$PETSC_DIR/config/BuildSystem/config/python.py:

  def configureDisutils(self):
    '''Check that disutils.sysconfig is functional, and can return the
required config vars'''
    try:
      try:
        import distutils.sysconfig
      except ImportError, e:
        self.framework.logPrint('Error importing distutils.sysconfig: '+str(e))
        raise RuntimeError('Python is not fully installed. Perhaps
python-devel package missing? Please consult your packing system.')

      try:
        distutils.sysconfig.get_python_inc()
        distutils.sysconfig.get_python_inc(1)
      except DistutilsPlatformError, e:
        self.framework.logPrint('Error finding Python include
directories: '+str(e))
        raise RuntimeError('Python is not fully installed. Please
consult your packing system.')

      try:
        distutils.sysconfig.get_config_var('LDFLAGS')
        distutils.sysconfig.get_config_var('LIBS')
        distutils.sysconfig.get_config_var('SYSLIBS')
      except DistutilsPlatformError, e:
        self.framework.logPrint('Error finding Python libraries: '+str(e))
        raise RuntimeError('Python is not fully installed. Please
consult your packing system.')

      try:
        distutils.sysconfig.get_config_var('LIBDIR')
        distutils.sysconfig.get_config_var('LIBPL')
        distutils.sysconfig.get_config_var('LDLIBRARY')
        distutils.sysconfig.get_config_var('SO')
      except DistutilsPlatformError, e:
        self.framework.logPrint('Error finding Python shared library: '+str(e))
        raise RuntimeError('Python is not fully installed. Please
consult your packing system.')

      try:
        distutils.sysconfig.get_config_var('BINDIR')
        distutils.sysconfig.get_config_var('PYTHON')
      except DistutilsPlatformError, e:
        self.framework.logPrint('Error finding Python executable: '+str(e))
        raise RuntimeError('Python is not fully installed. Please
consult your packing system.')
    except Exception, e:
      self.framework.logPrint('I do not know what went wrong: '+str(e))
      raise RuntimeError('Python is not fully installed. Please
consult your packing system.')
    return

Code for checking the library is also in that package.

   Matt

>  --
>  Anders
>
>
>
>
>  > On Mon, Apr 7, 2008 at 2:10 PM, Anders Logg <logg@xxxxxxxxx> wrote:
>  > > On Mon, Apr 07, 2008 at 02:49:21PM -0400, David Joyner wrote:
>  > >  > On Mon, Apr 7, 2008 at 1:55 PM, Anders Logg <logg@xxxxxxxxx> wrote:
>  > >  > > On Mon, Apr 07, 2008 at 07:26:46AM -0400, David Joyner wrote:
>  > >  > >  > Hi:
>  > >  > >  >
>  > >  > >  > I followed http://www.fenics.org/wiki/Installing_DOLFIN until I found
>  > >  > >  > errors, then
>  > >  > >  > created a wiki account and corrected them, but still found errors. Is
>  > >  > >  > this the correct
>  > >  > >  > email list to report install problems?
>  > >  > >
>  > >  > >  Yes.
>  > >  > >
>  > >  > >
>  > >  > >  > If so, the problem seems to occur at the step
>  > >  > >  > ./scons.local
>  > >  > >  > where it seems to have trouble locating numpy. At least, one of the
>  > >  > >  > error messages is
>  > >  > >  > dolfin/swig/dolfin_wrap.cc:3287:31: error: numpy/arrayobject.h: No
>  > >  > >  > such file or directory
>  > >  > >  > Does this look familiar?
>  > >  > >  >
>  > >  > >  > This is on a ubuntu 7.10 amd64 box.
>  > >  > >  >
>  > >  > >  > - David Joyner
>  > >  > >
>  > >  > >  Do you have arrayobject.h on your system?
>  > >  >
>  > >  >
>  > >  > Quite a few:-)
>  > >  >
>  > >  >
>  > >  > wdj@wooster:~/wdj/computer_algebra/dolfin$ locate arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.2.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.2.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.9.alpha4/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.9.alpha4/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.9.alpha5/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.9.alpha5/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-0.10.3/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-0.10.3/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.8.6/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.8.6/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.4.alpha0/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.4.alpha0/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.8.13.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.8.13.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.4/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.4/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc5/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc5/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.11.rc0/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.11.rc0/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc2/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc2/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.3.rc1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.2.rc0/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.10.2.rc0/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.11.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sage-2.11.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/sagefiles/sagestuff/numpy/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/.Trash-1000/files/sage-2.8.10.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /mnt/drive_hda1/.Trash-1000/files/sage-2.8.10.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage-sourceforge/sage/packages/archive/pygsl-0.3/Include/pygsl/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage-sourceforge/sage-0.10.1/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage-sourceforge/sage-0.10.1/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.3.0/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.3.0/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.4/local/include/python2.5/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.4/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.0.5/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.0.5/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.10.12/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.10.12/local/lib/python2.4/site-packages/numpy-0.9.5/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.10.12/local/lib/python2.4/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.10.12/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.9.4/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.9.4/spkg/build/numpy-0.9.5/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.9.4/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.9.4/spkg/build/old/numpy-0.9.5/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-0.9.4/spkg/build/numpy/numpy/core/include/numpy/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.4.alpha2-20061002/local/include/python2.5/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.4.alpha2-20061002/spkg/build/numeric-24.2/Include/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.0.6/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.4.1.2/local/include/python2.5/Numeric/arrayobject.h
>  > >  > /mnt/drive_hda1/computer_algebra/sage/sage-1.3.6/local/include/python2.4/Numeric/arrayobject.h
>  > >  > /home/wdj/sagestuff/sage-2.10.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/ndarrayobject.h
>  > >  > /home/wdj/sagestuff/sage-2.10.alpha1/local/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >  > /usr/include/python2.5/Numeric/arrayobject.h
>  > >  > /usr/include/python2.4/Numeric/arrayobject.h
>  > >
>  > >  This one seems to be missing:
>  > >
>  > >   /usr/lib/python2.5/site-packages/numpy/core/include/numpy/arrayobject.h
>  > >
>  > >  For me, this is in the python-numpy package.
>  > >
>  > >
>  >
>  >
>  >
>
>
> _______________________________________________
>  DOLFIN-dev mailing list
>  DOLFIN-dev@xxxxxxxxxx
>  http://www.fenics.org/mailman/listinfo/dolfin-dev
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener


Follow ups

References