|
From: Derek G. <fri...@gm...> - 2011-05-31 19:49:21
|
To avoid this... if you are not needing to compile any fortran then you can just use the MPI that comes with OSX (OpenMP). Just set CC, CXX, etc to mpicc, mpicxx etc for both PetsC and libMesh... and don't tell PetsC to download mpich. Note that we don't typically work this way. We usually download a third party MPI (like MPICH2)... compile it and install it somewhere on our system... then set our path and compiler environment variables to point to this location and compile both PetsC and libMesh with it. This has the nice property that it is a bit more reusable across multiple packages you might be compiling on your system. So there are lots of options.... Derek On May 31, 2011, at 1:22 PM, John Peterson wrote: > On Tue, May 31, 2011 at 1:08 PM, Kyunghoon Lee <gt...@gm...> 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 > Lib...@li... > https://lists.sourceforge.net/lists/listinfo/libmesh-users |