> so adding -I/usr/include/petsc and -lpetsc should do (if /usr/lib64 is in
> ld's cache)
Yes, it will work (this is the CentOS machine)
[root@caprara-lx milonga]# /sbin/ldconfig -p | grep petsc
libpetsc.so.3.8 (libc6,x86-64) => /lib64/libpetsc.so.3.8
libpetsc.so (libc6,x86-64) => /lib64/libpetsc.so
> No problem if /usr/lib64/openmpi is is ld's path. What does
>
> # ldconfig -v 2>/dev/null | grep -v ^$'\t'
>
> say? (as root)
root@caprara-lx milonga]# ldconfig -v 2>/dev/null | grep -v ^$'\t'
/opt/amdgpu-pro/lib64:
/opt/amdgpu/lib64:
/usr/lib64/atlas:
/usr/lib64/dyninst:
/usr/lib64/iscsi:
/usr/lib64/mysql:
/lib:
/lib64:
/lib/sse2: (hwcap: 0x0000000004000000)
/lib/i686: (hwcap: 0x0008000000000000)
/lib64/sse2: (hwcap: 0x0000000004000000)
/lib64/tls: (hwcap: 0x8000000000000000)
So, looks like the openmpi version distributed by CentOS does not
like add its directory to LD path. Anyway, I could not even get the
documentation
explaining the differences between petsc-devel and petsc-openmpi-devel*.
*It can be guessed by the names, but I would like to have a formal explanation
on how both packages are built. Documentation is always nice.
> And slepc is not even provided by fedora repos.
>
>
> so all this extra work for almost nothing
I am with you: if I have to bother manually installing SLEPc, I can
do it for PETSc too. Debian wins here.
> M4 is great! autoconf not so much...
I know you're a fan of the beast. Indeed, if you have patience to learn it,
it can be an amazing tool. :-)
Thanks everybody for the replies.
Vitor