[petsc-dev] A couple of other notes from the Cygwin64 install
Satish Balay
balay at mcs.anl.gov
Wed Sep 25 16:57:22 CDT 2013
On Wed, 25 Sep 2013, Aron Ahmadia wrote:
> The Fortran test failed, I'm not going to bother looking into it.
>
> CMake is happily dumping the output library, cygpetsc.dll, in
> $PETSC_DIR/$PETSC_ARCH
>
> According to the wizards at Microsoft/Cygwin, DLLs belong in bin/, so they
> end up on the PATH when somebody tries to do an import.
I guess one can do 'export PATH=$PATH:$PETSC_DIR/PETSC_ARCH/lib' to get the dll
But somehow It doesnt' work for me.
Also - I'm not sure this [dll] change should go into petsc-3.4. Since
--with-shared-libraries=1 is the configure default - now petsc-3.4
users will get a dll - that requies a PATH to be set [for it work]
Also - how is this supporsed to work? I set PATH - but still get errors..
balay at msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials
$ echo $PATH
/home/balay/petsc.test/arch-gnu-ini/lib:/bin:/usr/bin
balay at msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials
$ ls -l /home/balay/petsc.test/arch-gnu-ini/lib
total 145820
-rwxr-xr-x 1 balay None 149317546 Sep 25 16:38 libpetsc.dll
drwxr-xr-x+ 1 balay None 0 Sep 25 16:34 modules
drwxr-xr-x+ 1 balay None 0 Sep 25 16:34 pkgconfig
balay at msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials
$ ./ex2
/home/balay/petsc.test/src/ksp/ksp/examples/tutorials/ex2.exe: error while loading shared libraries: libpetsc.dll: cannot open shared object file: No such file or directory
balay at msnehalem2 ~/petsc.test/src/ksp/ksp/examples/tutorials
$
Satish
More information about the petsc-dev
mailing list