<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 18.04.2012 um 19:17 schrieb Matthew Knepley:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div>The include directories can be obtained using:</div><div><br></div><div>&nbsp; make getincludedirs</div><div><br></div><div>and usually amount to</div><div><br></div><div>&nbsp; -I${PETSC_DIR}/include -I${PETSC_DIR}/${PETSC_ARCH}/include</div><div><br></div><div>but can be modified by configure for certain packages.</div><div><br></div><div>&nbsp; &nbsp;Matt</div></span></blockquote></div><div><br></div><div><br></div><span class="Apple-tab-span" style="white-space:pre">        </span>make getincludedirs&nbsp;<div><br></div><div>failed for me with:<br><div><br></div><div><div>cls /usr/local/petsc $ make getincludedirs</div><div>conf/petscvariables:3: /usr/local/petsc-3.2-p6/arch-darwin-c-debug/conf/petscvariables: No such file or directory</div><div>makefile:15: /usr/local/petsc-3.2-p6/conf/variables: No such file or directory</div><div>makefile:16: /usr/local/petsc-3.2-p6/conf/rules: No such file or directory</div><div>makefile:17: /usr/local/petsc-3.2-p6/conf/test: No such file or directory</div><div>make: *** No rule to make target `/usr/local/petsc-3.2-p6/conf/test'. &nbsp;Stop.</div></div></div><div><br></div><div>However, I simply added&nbsp;</div><div><br></div><div>&nbsp; ${PETSC_DIR}/${PETSC_ARCH}/include</div><div><br></div><div>to the includes for my Eclipse project, which fixes the error that petscconf.h was not found.</div><div><br></div><div>Now the following error appears:</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Building target: PETScTest2</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">Invoking: MacOS X C++ Linker</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">g++ -L/usr/local/petsc/arch-darwin-c-debug/lib/ -o "PETScTest2"&nbsp; ./src/PETScTest2.o &nbsp; -l/usr/local/petsc/arch-darwin-c-debug/lib/libpetsc.a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">ld: library not found for -l/usr/local/petsc/arch-darwin-c-debug/lib/libpetsc.a</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">collect2: ld returned 1 exit status</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 11px/normal Monaco; ">make: *** [PETScTest2] Error 1</div></div><div><br></div><div>libpetsc.a definitely exists at this location.&nbsp;&nbsp;Is my PETSc installation broken?</div><div><br></div><div>Chris</div><div><br></div><div><br></div></body></html>