On Tue, May 31, 2011 at 1:08 PM, Kyunghoon Lee <[email protected]> wrote:
> Hello,
>
> I'm trying to install libmesh on a MacOS X 10.6.7, which has a gcc-4.2 
> compiler from Xcode 3.2.6.  I had no trouble with compiling libmesh, but I 
> got a seg fault error for the examples.
>
> First, I source-compiled petsc with the following configuration option:
>
> export PETSC_DIR=$PWD
> ./config/configure.py --prefix=/usr/local/share/petsc/petsc-3.1-p8 
> --with-cc=gcc  --with-cxx=g++ --with-fc=0 —download-c-blas-lapack=1 
> --download-mpich=1
> make
> sudo make install PETSC_DIR=$PWD
> make PETSC_DIR=/usr/local/share/petsc/petsc-3.1-p8 test
>
> and test results were good.  After petsc, I source-compiled an svn version of 
> libmesh with the following configuration option:
>
> export METHOD=dbg
> ./configure PETSC_DIR=/usr/local/share/petsc/petsc-3.1-p8 --enable-petsc

It's possible libmesh is using the wrong mpicc/mpicxx compilers when
you use this configuration line.  It will use the first one it finds
in your path, *not* the one you downloaded with PETSc.

So could you try:

CXX=/path/to/petsc/mpich/bin/mpicxx CC=/path/to/petsc/mpich/bin/mpicc
./configure

and see if you have any better luck with the executables?

-- 
John

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to