Howdy all! As part of a test script, I have to make sure my test machine (i.e. the machine that is running the script) has libraries zlib and hdf5. I do that with this code. Is there a better way?
if ($opt{netcdf4} && ! -e $install_file) { copy("/upc/share/ed/downloads/zlib-$ {zlib_version}.tar.gz", $hdf5dir) || die; copy("/upc/share/ed/downloads/hdf5-$ {hdf5_version}.tar.gz", $hdf5dir) || die; chdir($hdf5dir) || die; system("gunzip -f zlib-${zlib_version}.tar.gz"); system("tar xf zlib-${zlib_version}.tar"); chdir("zlib-$zlib_version"); system("./configure --prefix=$hdf5dir"); system("make install"); chdir($hdf5dir); system("rm -rf zlib-${zlib_version}*"); system("gunzip -f hdf5-${hdf5_version}.tar.gz"); system("tar xf hdf5-${hdf5_version}.tar"); chdir("hdf5-$hdf5_version"); system("./configure --prefix=$hdf5dir --with-zlib=$hdf5dir --disable-shared"); system("make install"); chdir($hdf5dir); system("rm -rf hdf5-${hdf5_version}*"); system("touch $install_file"); } Any comments appreciated! Thanks, Ed -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/