Le lundi 28 mars 2016 à 10:16 -0400, Erik Schnetter a écrit :
> Thanks! The GSL code should really be an example for BinDeps.
Yes, I figured I would add it to the docs, as Cairo is quite complex
for a first contact with BinDeps:
https://github.com/JuliaLang/BinDeps.jl/pull/208

Regards


> For the record, these two lines install GSL from source:
> ```Julia
> # build from source
> provides(Sources, URI("http://ftp.gnu.org/gnu/gsl/gsl-1.16.tar.gz";), libgsl)
> provides(BuildProcess, Autotools(libtarget = "libgsl.la"), libgsl)
> ```
> 
> -erik
> 
> On Mon, Mar 28, 2016 at 9:15 AM, Milan Bouchet-Valat <nalimilan@club.
> fr> wrote:
> > 
> > Le lundi 28 mars 2016 à 08:41 -0400, Erik Schnetter a écrit :
> > > 
> > > The HDF5 package does not know how to install HDF5 on Linux; it
> > > requires HDF5 to be installed on the system. (This is different
> > > e.g.
> > > on Darwin, where it can install its own HDF5 library.) The
> > > solution is
> > > to update the HDF5 package to use BinDeps to install HDF5 from
> > > source.
> > > 
> > > Installing HDF5 is just the usual "configure --prefix=somewhere;
> > > make;
> > > make install", so that should be straightforward. Unfortunately
> > > I'm
> > > not too familiar with BinDeps, and the documentation doesn't have
> > > an
> > > example for installing a package from a tarball. I'd be happy to
> > > create a PR if someone points me to an example, maybe in another
> > > package.
> > Building from source is good for a cluster when you don't have root
> > access. However, for many Linux users a package provider will be
> > even
> > better (and it's easier to set up with BinDeps).
> > 
> > The BinDeps documentation is a bit hard to read, but it mentions
> > the
> > Cairo.jl example, which is reasonably complete:
> > https://github.com/JuliaLang/Cairo.jl/blob/master/deps/build.jl
> > 
> > A simpler example is GSL.jl:
> > https://github.com/jiahao/GSL.jl/blob/master/deps/build.jl
> > 
> > 
> > Regards
> > 
> > > 
> > > -erik
> > > 
> > > On Sun, Mar 27, 2016 at 10:42 PM, jda <[email protected]>
> > > wrote:
> > > > 
> > > > 
> > > > I am getting this error:
> > > > 
> > > > LoadError: None of the selected providers can install
> > > > dependency
> > > > libhdf5.
> > > > 
> > > > on a linux cluster node.  Can anyone suggest a fix?
> > > 
> 
> 

Reply via email to