[petsc-dev] Fwd: [petsc-users] cannot find 'libz.a' when configuring

Barry Smith bsmith at mcs.anl.gov
Thu Apr 11 07:35:40 CDT 2013


  Entire package time :-(

On Apr 11, 2013, at 7:02 AM, Matthew Knepley <knepley at gmail.com> wrote:

> On Wed, Apr 10, 2013 at 7:53 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> How do we handle these packages with complicated dependencies [they
> are complicated as petsc dependencies?]
> 
> In this report hdf5 was built with szip-2.1 and zlib-1.2.7. So how
> does petsc configure automatically detect this?
> 
> And I've recently used the following for hdf5/necddf5 on fusion [with
> the extra implicit depenceny of hdf5 on zlib, and netcdf5 on hdf5 from
> within configure]
> 
>     '--with-hdf5-lib=-L/soft/hdf5/1.8.6-parallel/lib -lhdf5_hl -lhdf5 -lgpfs',
> 
>     '--with-netcdf-lib=-L/soft/netcdf/4.1.1-parallel/lib -lnetcdff -lnetcdf -L/usr/kerberos/lib64 -lcurl -ldl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lidn -lssl -lcrypto -lz',
> 
> Yeah - things work if the user knows the dependencies and the link
> command for those dependencies - and specify it to petsc configure as
> above. But I'm not sure how to autodetect this.
> 
> Also currently -lz is handled in package.py with
> 'self.needsCompression' similar to 'self.needsMath' with the detection
> of -lz in libraires.py:checkCompression() - but one can't specify a
> --with-zlib-lib option this way. I guess this part can be fixed by
> migrating it a standalone package z.py. [And somehow handle the
> optional part of this dependency for hdf5]
> 
> We already have a mechanism for this. Lots of packages depend on other packages. This is
> just screwed up in the case of libz because someone (maybe me) did not want to write an
> entire package file for it, and instead copped out with the needsCompression.
> 
>     Matt
>  
> 
> Satish
> 
> On Wed, 10 Apr 2013, Barry Smith wrote:
> 
> >
> >   Shouldn't this be fixed by now in PETSc-dev?
> >
> >
> >
> > Begin forwarded message:
> >
> > > From: Satish Balay <balay at mcs.anl.gov>
> > > Subject: Re: [petsc-users] cannot find 'libz.a' when configuring
> > > Date: April 10, 2013 5:21:38 PM CDT
> > > To: PETSc users list <petsc-users at mcs.anl.gov>
> > > Reply-To: PETSc users list <petsc-users at mcs.anl.gov>
> > >
> > > try using configure option LIBS="-L/opt/zlib-1.2.7/lib -lz'
> > >
> > > Satish
> > >
> > > On Wed, 10 Apr 2013, Seungbum Koo wrote:
> > >
> > >> Hi. I tried to add hdf5 when configuring. HDF5-1.8.9 is currently installed
> > >> with szip-2.1 and zlib-1.2.7.
> > >>
> > >> It stops with message
> > >>
> > >> *******************************************************************************
> > >>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for
> > >> details):
> > >> -------------------------------------------------------------------------------
> > >> Compression library [libz.a or equivalent] not found
> > >> *******************************************************************************
> > >>
> > >> What I don't understand is that 'libz.a' file exists in
> > >> '/opt/zlib-1.2.7/lib'. What should I do?
> > >>
> > >> Seungbum
> > >>
> > >
> >
> >
> 
> 
> 
> 
> -- 
> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> -- Norbert Wiener




More information about the petsc-dev mailing list