← Back to team overview

dolfin team mailing list archive

Re: Problems with compiling DOLFIN on Redhat, Problem SOLVED

 

Hello all,

Thank you for your helps and hints
my problem is solved

Alireza

Alireza Forghani wrote:
Thank you Anders,
Exactly, as I mentioned previously, another member of our group has installed DOLFIN.
DOLFIN is very popular here. :-)
Alireza

Anders Logg wrote:
This means that someone else has installed dolfin-config system-wide
on your machine (in /usr/local).

Since your local directory is first in your path, I would imagine your
system should choose the dolfin-config in that directory but it seems
to choose the one in /usr/local/bin instead.

You need to do one of the following:

1. Ask the person who installed in /usr/local/ to make sure that the
system-wide DOLFIN is correctly installed. Then you don't need to
install it locally yourself. Just do make demo (and forget about the
make, make install).

2. Ask the person who installed in /usr/local/ to uninstall.

3. Remove /usr/local/bin from your PATH.

4. Edit the Makefile for the demo you compile so it contains the full
path to dolfin-config.

etc etc...

This all comes down to one thing... You need to get along with the
other people that have DOLFIN installed in various places on your
system and I can't help you with that... :-)

/Anders


On Sat, Apr 08, 2006 at 02:58:00AM -0700, Alireza Forghani wrote:
   [alireza@master dolfin-0.6.1]$ which dolfin-config
   /usr/local/bin/dolfin-config

   Since I installed Dolfin on Local directory, It seems to be wrong and it
   should be ran from:

 data/alireza/dolfin0.6.1/local/bin

 Alireza

   Garth N. Wells wrote:

 Try
  ->which dolfin-config

 Garth

 On Sat, 2006-04-08 at 01:54 -0700, Alireza Forghani wrote:


 Hi Anders,

 Thats right when I run dolfin-config --cflags from /src/config it returns:

 -I/data/alireza/dolfin-0.6.1/local/include -I../../src/kernel/common
 -I../../src/kernel/fem -I../../src/kernel/form
 -I../../src/kernel/function -I../../src/kernel/io -I../../src/kernel/la
 -I../../src/kernel/main -I../../src/kernel/math -I../../src/kernel/mesh
 -I../../src/kernel/nls -I../../src/kernel/ode -I../../src/kernel/pde
 -I../../src/kernel/quadrature -I../../src/kernel/parameter
 -I../../src/kernel/log -I/data/alireza/petsc-2.3.1-p11
 -I/data/alireza/petsc-2.3.1-p11/bmake/linux-gnu-c-real-debug
 -I/data/alireza/petsc-2.3.1-p11/include
 -I/data/alireza/petsc-2.3.1-p11/externalpackages/mpich2-1.0.3/linux-gnu-c-real-debug/include
 -I/usr/local/mpich/default/include -I/usr/include/libxml2
 -I../../src/modules/elasticity -I../../src/modules/elasticity-updated
 -I../../src/modules/convdiff -I../../src/modules/navierstokes
 -I../../src/modules/poisson -I../../src/modules/stokes
 -I../../src/modules/heat -I../../src/kernel/common
 -I../../src/kernel/fem -I../../src/kernel/form
 -I../../src/kernel/function -I../../src/kernel/io -I../../src/kernel/la
 -I../../src/kernel/main -I../../src/kernel/math -I../../src/kernel/mesh
 -I../../src/kernel/nls -I../../src/kernel/ode -I../../src/kernel/pde
 -I../../src/kernel/quadrature -I../../src/kernel/parameter
 -I../../src/kernel/log -I/data/alireza/petsc-2.3.1-p11
 -I/data/alireza/petsc-2.3.1-p11/bmake/linux-gnu-c-real-debug
 -I/data/alireza/petsc-2.3.1-p11/include
 -I/data/alireza/petsc-2.3.1-p11/externalpackages/mpich2-1.0.3/linux-gnu-c-real-debug/include
 -I/usr/local/mpich/default/include -I/usr/include/libxml2
 -I../../src/modules/

 which is right and when I do from another folder:

 -I/usr/local/include -I../../src/kernel/common -I../../src/kernel/fem
 -I../../src/kernel/form -I../../src/kernel/function
 -I../../src/kernel/io -I../../src/kernel/la -I../../src/kernel/main
 -I../../src/kernel/math -I../../src/kernel/mesh -I../../src/kernel/nls
 -I../../src/kernel/ode -I../../src/kernel/pde
 -I../../src/kernel/quadrature -I../../src/kernel/parameter
 -I../../src/kernel/log -I/data/daan/FeNics/petsc-2.3.1-p2
 -I/data/daan/FeNics/petsc-2.3.1-p2/bmake/linux-gnu-intel
 -I/data/daan/FeNics/petsc-2.3.1-p2/include
 -I/data/daan/FeNics/petsc-2.3.1-p2/include/mpiuni
 -I/usr/local/mpich/default/include -I/usr/include/libxml2
 -I../../src/modules/elasticity -I../../src/modules/elasticity-updated
 -I../../src/modules/convdiff -I../../src/modules/navierstokes
 -I../../src/modules/poisson -I../../src/modules/stokes
 -I../../src/modules/heat -I../../src/kernel/common
 -I../../src/kernel/fem -I../../src/kernel/form
 -I../../src/kernel/function -I../../src/kernel/io -I../../src/kernel/la
 -I../../src/kernel/main -I../../src/kernel/math -I../../src/kernel/mesh
 -I../../src/kernel/nls -I../../src/kernel/ode -I../../src/kernel/pde
 -I../../src/kernel/quadrature -I../../src/kernel/parameter
 -I../../src/kernel/log -I/data/daan/FeNics/petsc-2.3.1-p2
 -I/data/daan/FeNics/petsc-2.3.1-p2/bmake/linux-gnu-intel
 -I/data/daan/FeNics/petsc-2.3.1-p2/include
 -I/data/daan/FeNics/petsc-2.3.1-p2/include/mpiuni
 -I/usr/local/mpich/default/include -I/usr/include/libxml2
 -I../../src/modules/

 Which is daan!!

 echo $PATH returns:

 [alireza@master src]$ echo $PATH
 data/alireza/dolfin0.6.1/local/bin:/opt/intel/intel_idb_80/bin:/opt/intel/intel_fc_80/bin:/opt/intel/intel_cc_80/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/aspen/bin:/usr/local/mpich/default/bin:/usr/local/openpbs/bin:/opt/compro/bin:/data/alireza/bin

 dolfin-config is in the first directory:
 data/alireza/dolfin0.6.1/local/bin


 and when I did dolfin-config --cflags from /src/config from data/alireza/dolfin0.6.1/local/bin
  it returns:
 [alireza@master bin]$ ./dolfin-config --cflags
 -I/data/alireza/dolfin-0.6.1/local/include -I../../src/kernel/common -I../../src/kernel/fem -I../../src/kernel/form -I../../src/kernel/function -I../../src/kernel/io -I../../src/kernel/la -I../../src/kernel/main -I../../src/kernel/math -I../../src/kernel/mesh -I../../src/kernel/nls -I../../src/kernel/ode -I../../src/kernel/pde -I../../src/kernel/quadrature -I../../src/kernel/parameter -I../../src/kernel/log -I/data/alireza/petsc-2.3.1-p11 -I/data/alireza/petsc-2.3.1-p11/bmake/linux-gnu-c-real-debug -I/data/alireza/petsc-2.3.1-p11/include -I/data/alireza/petsc-2.3.1-p11/externalpackages/mpich2-1.0.3/linux-gnu-c-real-debug/include -I/usr/local/mpich/default/include -I/usr/include/libxml2 -I../../src/modules/elasticity -I../../src/modules/elasticity-updated -I../../src/modules/convdiff -I../../src/modules/navierstokes -I../../src/modules/poisson -I../../src/modules/stokes -I../../src/modules/heat -I../../src/kernel/common -I../../src/kernel/fem -I../../src/kernel/form -I../../



  s


 rc/kernel/function -I../../src/kernel/io -I../../src/kernel/la -I../../src/kernel/main -I../../src/kernel/math -I../../src/kernel/mesh -I../../src/kernel/nls -I../../src/kernel/ode -I../../src/kernel/pde -I../../src/kernel/quadrature -I../../src/kernel/parameter -I../../src/kernel/log -I/data/alireza/petsc-2.3.1-p11 -I/data/alireza/petsc-2.3.1-p11/bmake/linux-gnu-c-real-debug -I/data/alireza/petsc-2.3.1-p11/include -I/data/alireza/petsc-2.3.1-p11/externalpackages/mpich2-1.0.3/linux-gnu-c-real-debug/include -I/usr/local/mpich/default/include -I/usr/include/libxml2 -I../../src/modules/

 which seems right
 May be it is runs Daan's DOLFIN instead of mine!!!


 Alireza







 Anders Logg wrote:

 That looks right. It says alireza and not daan.

 Then I would be *very* surprised if dolfin-config is not correct also.

 Check the dolfin-config (in the same directory). It should contain the
 correct paths.

 Then runnin dolfin-config --cflags must also return the correct path.
 Go to src/config and do

     ./dolfin-config --cflags

 I'd be very surprised if it doesn't return the correct path.

 Then go to another directory and do

     ./dolfin-config --cflags

 If that does not also return the correct path, then the dolfin-config
 in your PATH must be the wrong dolfin-config.

 Maybe dolfin-config has been installed somewhere else in your PATH?

 Type

     echo $PATH

 then check if dolfin-config is in any of the directories.

 /Anders



 _______________________________________________
 DOLFIN-dev mailing list
 [1]DOLFIN-dev@xxxxxxxxxx
 [2]http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev



 _______________________________________________
 DOLFIN-dev mailing list
 [3]DOLFIN-dev@xxxxxxxxxx
 [4]http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev



References

   Visible links
   1. mailto:DOLFIN-dev@xxxxxxxxxx
   2. http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev
   3. mailto:DOLFIN-dev@xxxxxxxxxx
   4. http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev



------------------------------------------------------------------------

_______________________________________________
DOLFIN-dev mailing list
DOLFIN-dev@xxxxxxxxxx
http://www.fenics.org/cgi-bin/mailman/listinfo/dolfin-dev





Follow ups

References