<div dir="ltr"><div><div><div>Hello <span style class="">Satish</span>,<br></div>the problem with the PATH and <span style class="">LD</span>_LIBRARY_PATH has been fixed. The administrator of our systems was working on the OS to install new libraries and my .<span style class="">bashrc</span> was not loaded properly. So, now everything is fine.<br>
<br></div>Although I set --prefix to install <span style class="">petsc</span> in my code dependencies, I noticed that I still was using <span style class="">PETSC</span>_ARC in both <span style class="">petsc</span> 3.3-p7 and <span style class="">petsc</span> 3.4 (something like:  make <span style class="">PETSC</span>_DIR=/scratch/home0/<span style class="">pmatteo</span>/research/lib_<span style class="">src</span>/<span style class="">petsc</span>-3.3-p7 <span style="color:rgb(204,0,0)"><span style class="">PETSC</span>_ARCH=arch-linux2-c-debug</span> install). That was my fault, sorry. <br>
<br>However, with 3.3-p7 even if I use <span style class="">PETSC</span>_ARCH=arch-linux2-c-debug I did not get <br><br> <span style class="">egrep</span>: /scratch/home0/<span style class="">pmatteo</span>/<div class="im">
research/workspace/codes/<span style class="">ssdc</span>/<span style class="">deps</span>/<span style class="">petsc</span>/arch-linux2-c-debug/include/<span style class="">petscconf</span>.h: No such file or directory<br>

</div><br></div><div>Whereas with <span style class="">petsc</span> 3.4 I got it because of course under <span style class="">petsc</span> installation directory I have no <span style class="">petsc</span>/arch-linux2-c-debug. All the header files are in <span style class="">petsc</span>/lib as it should be.<br>
</div><div><br></div><div>Thus a couple of questions:<br></div><div><br></div><div>1- Installation of <span style class="">petsc</span> 3.4 seems to be more careful and it is able to detect that I am setting  --prefix and <span style class="">PETSC</span>_ARCH. It does not say that explicitly but it print the "<span style class="">egrep</span> message". Would not be better to check if the user is setting --prefix and change the installation instructions printed at screen? <br>
Also in the <span style class="">petsc</span> installation documentation it is stressed that <span style class="">PETSC</span>_ARCH must not be used with --prefix but <span style class="">ss</span> it is now, even if the user sets --prefix, the instructions say: <br>
<br>make <span style class="">PETSC</span>_DIR=/scratch/home0/<span style class="">pmatteo</span>/research/lib_<span style class="">src</span>/<span style class="">petsc</span>-3.3-p7 <span style="color:rgb(204,0,0)"><span style class="">PETSC</span>_ARCH=arch-linux2-c-debug</span> install<br>
<br><br></div><div><br></div><div>2- this is just a curiosity: why <span style class="">petsc</span> 3.3-p7 was not giving me back the "<span style class="">egrep</span> message" though I was setting <span style class="">PETSC</span>_ARCH=arch-linux2-c-debug?<br>
<br><br></div><div>Thank you.<br></div><div><br> </div><div><br> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 4:25 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 14 May 2013, Matteo Parsani wrote:<br>
<br>
> Dear PETSc developers and users,<br>
> I have just updated petsc from 3.3-p7 to petsc 3.4. and during the<br>
> installation testing I get the following message:<br>
><br>
> pmatteo@parsani-lan:~/research/lib_src/petsc$ make PETSC_DIR=/scratch/home0/<br>
> pmatteo/research/workspace/codes/ssdc/deps/petscnew test<br>
> Running test examples to verify correct installation<br>
> Using PETSC_DIR=/scratch/home0/pmatteo/research/workspace/codes/ssdc/deps/<br>
> petscnew and PETSC_ARCH=arch-linux2-c-debug<br>
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1<br>
> MPIprocess<br>
> C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2<br>
> MPIprocesses<br>
> egrep: /scratch/home0/pmatteo/research/workspace/codes/ssdc/deps/petscnew<br>
> /arch-linux2-c-debug/include/petscconf.h: No such file or directory<br>
<br>
</div>Perhaps you are having file system problems?<br>
<div class="im"><br>
> Fortran example src/snes/examples/tutorials/ex5f run successfully with<br>
> 1 MPIprocess<br>
> Completed test examples<br>
><br>
> The test pass successfully but ....<br>
<br>
</div>Ok - then the library is ok and useable.<br>
<div class="im">><br>
> Attached the log file.<br>
><br>
> Moreover, when I run my Fortran 90 as usual it seems the libpetsc.so can<br>
> not be opened (./NSE: error while loading shared libraries: libpetsc.so:<br>
> cannot open shared object file: No such file or directory)<br>
><br>
> PATH and LD_LIBRARY_PATH are set exactly as for petsc 3.3-p7 through my .<br>
> bashrc file and libpetsc.so is in the right location.<br>
><br>
> If I switch to 3.3-p7 (just by point to the other directory where<br>
</div>> petsc3.3-p7 is installed) it works fine.<br>
<br>
Perhaps you can use PETSc makefiles - so you don't have to rely on LD_LIBRARY_PATH?<br>
[or use -Wl,-rpath,/scratch/home0/pmatteo/research/lib_src/petsc/arch-linux2-c-debug/lib]<br>
<br>
You can always do 'ldd NSE' to see if the required sharedlibraries are found or not<br>
<br>
Satish<br>
<br>
><br>
> Any idea?<br>
><br>
><br>
> Thanks,<br>
><br>
><br>
><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Matteo<br></div>
</div>