On Mon, Dec 21, 2009 at 3:13 PM, Dominik Szczerba <span dir="ltr"><<a href="mailto:dominik@itis.ethz.ch">dominik@itis.ethz.ch</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Why use sudo in the first place?<br>
I am not a mac user, but normally on unix sudo is the last thing you<br>
want to use during everyday work (provided that you are at all allowed<br>
to use it).<br></blockquote><div><br>Not sure why you would think that. In fact, sudo is the safe way to do things<br>and recommended for everyday usage.<br><br> Matt<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Dominik<br>
<div><div></div><div class="h5"><br>
Satish Balay wrote:<br>
> Perhaps 'sudo' is not proegating PETSC_DIR,PETSC_ARCH variables<br>
> properly?<br>
><br>
> Try 'sudo /bin/bash' and do the whole install in that shell.<br>
><br>
> BTW: you have a typo with PETSC_ARCH further down.. And we recommend<br>
> using COPTFLAGS, FOPTFLAGS --with-debugging=0 for optimziation builds.<br>
><br>
> Satish<br>
><br>
> On Mon, 21 Dec 2009, <a href="mailto:hxie@umn.edu">hxie@umn.edu</a> wrote:<br>
><br>
>> Hi,<br>
>><br>
>> My operation system is Mac OS X 10.6.2. I unzip the petsc under<br>
>> /usr/local/petsc-3.0.0-p10.<br>
>> I use the following to configure petsc.<br>
>> -------<br>
>> sudo ./config/configure.py --CFLAGS=-O3 --FFLAGS=-O3<br>
>> --with-mpi-dir=/usr/local/mpich2-1.2.1 --with-fortran --with-shared=0<br>
>> --with-fc=gfortran<br>
>> -------<br>
>><br>
>> And I run the following commands:<br>
>> ----<br>
>> export PETS_ARCH=darwin10.2.0-c-debug;<br>
>> PETSC_DIR=/usr/local/petsc-3.0.0-p10; export PETSC_DIR<br>
>> ----<br>
>><br>
>> When I run " sudo make all", it gives some errors:<br>
>> -----<br>
>> makefile:15: /conf/base: No such file or directory<br>
>> makefile:16: /conf/test: No such file or directory<br>
>> make: *** No rule to make target `/conf/test'. Stop.<br>
>> -----<br>
>><br>
>> It seems it cannot find the PETSC_DIR. (I use x11. "echo $SHELL" gets<br>
>> "/bin/bash")<br>
>> Do I need to add "PETSC_DIR = /usr/local/petsc-3.0.0-p10" in the makefile<br>
>> file? Thanks.<br>
>><br>
>> Bests,<br>
>> Hui<br>
>><br>
>><br>
>><br>
>><br>
><br>
<br>
</div></div>-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.9 (GNU/Linux)<br>
<br>
iEYEARECAAYFAksv5Q0ACgkQ/EBMh9bUuzJGugCgiCLXN7u5flIjSk2PRDEFMKRy<br>
KfUAn1kP90FbNBvFZNsvkIjNnEv4ovJX<br>
=KArD<br>
-----END PGP SIGNATURE-----<br>
</blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>