installation problems in mac machine

Satish Balay balay at mcs.anl.gov
Mon Dec 21 15:10:00 CST 2009


Perhaps 'sudo' is not proegating PETSC_DIR,PETSC_ARCH variables
properly?

Try 'sudo /bin/bash' and do the whole install in that shell.

BTW: you have a typo with PETSC_ARCH further down..  And we recommend
using COPTFLAGS, FOPTFLAGS --with-debugging=0 for optimziation builds.

Satish

On Mon, 21 Dec 2009, hxie at umn.edu wrote:

> Hi,
> 
> My operation system is Mac OS X 10.6.2. I unzip the petsc under
> /usr/local/petsc-3.0.0-p10.
> I use the following to configure petsc.
> -------
> sudo ./config/configure.py --CFLAGS=-O3 --FFLAGS=-O3
> --with-mpi-dir=/usr/local/mpich2-1.2.1 --with-fortran --with-shared=0
> --with-fc=gfortran
> -------
> 
> And I run the following commands:
> ----
> export PETS_ARCH=darwin10.2.0-c-debug;
> PETSC_DIR=/usr/local/petsc-3.0.0-p10; export PETSC_DIR
> ----
> 
> When I run " sudo make all", it gives some errors:
> -----
> makefile:15: /conf/base: No such file or directory
> makefile:16: /conf/test: No such file or directory
> make: *** No rule to make target `/conf/test'.  Stop.
> -----
> 
> It seems it cannot find the PETSC_DIR. (I use x11. "echo $SHELL" gets
> "/bin/bash")
> Do I need to add "PETSC_DIR = /usr/local/petsc-3.0.0-p10" in the makefile
> file? Thanks.
> 
> Bests,
> Hui
> 
> 
> 
> 



More information about the petsc-users mailing list