Hi,
I've managed (with some help) to include a shared library for GD in my
PAR package, but when I run it more than once on AIX, I get:
IO error: Can't open file /tmp/par-root/
cache-880362d2eb1c66eb77f72ddaa4298178/libgd.a for write : Cannot open
or remove a file containing a running program.
Archive::Zip::Member::extractToFileNamed('Archive::Zip::ZipFileMember=HASH(0x3085e4d8)','/
tmp/par-root/cache-880362d2eb1c66eb77f72ddaa4298178/libgd.a') called
at -e line 635
eval {...} called at -e line 171
__par_pl::BEGIN() called at -e line 894
eval {...} called at -e line 894
This happens since the shared library is still loaded in memory by the
O/S when the PAR binary is run more than once, and thus cannot be
overwritten. On AIX, one can run "slibclean" to remove all unused/
unreferenced libraries and this indeed fixes the problem for me, but
is not acceptable as a permanent solution.
Is there a way in which I one can avoid the shared library from
getting extracted everytime when I run the PAR binary?
Or is there an "eval" I can somewhere use to suppress this "error"?
cheers
Niel