[Pkg-julia-devel] building julia 0.3

Sébastien Villemot sebastien at debian.org
Tue Jul 22 19:30:23 UTC 2014


Dear Ross,

Le mardi 22 juillet 2014 à 12:13 -0700, Ross Boylan a écrit :
> I'm interested in getting julia 0.3 on Debian stable, having been
> advised that 0.2 is a bit rough around the edges.  Does anyone here have
> any advice about how best to do that?
> 
> My goal is just to get something running for myself, though if that
> contributes to making a proper deb I'd be delighted.
> 
> It looks as if going straight to upstream and following their build
> instructions will build a whole bunch of software that is already in
> Debian, though most will likely be at a different version from stable.
> It seems preferable to use the  packaged ones, which the debianized
> 0.2.1 does according to its dependencies.
> 
> Do you recommend going with the packaged versions of dependencies or
> building them fresh as part of the julia build?  Upstream does say that
> bringing your own version voids the warranty :)
> 
> It looks as if the debian version avoids downloading the dependencies by
> the COMMON_FLAGS in debian/rules; are there any other places that are
> relevant to that goal?
> 
> Finally, would you recommend starting from the upstream source, the
> debian tarball, or the debian git version?
> 
> One obvious strategy would be to start with debian git and then pull
> from julia upstream.

If your goal is to build a Debian package of Julia 0.3 for Wheezy, this
is not possible, because the LLVM in Wheezy is too old. This is the
reason why I did not create a backport of Julia for Wheezy. You would
need to create a backport of LLVM first, which is a big task.

What I do on Wheezy systems is to build Julia against as many system
dependencies as possible. Here is how I do.

 * retrieve the Julia source from git
 * install the following packages: libunwind7-dev, libreadline6-dev,
libpcre3-dev, liblapack-dev, libfftw3-dev, libgmp-dev, libarpack2-dev,
libsuitesparse-dev, libmpfr-dev
 * build Julia with the following command:

make USE_SYSTEM_LIBUNWIND=1 USE_SYSTEM_READLINE=1 USE_SYSTEM_PCRE=1
USE_SYSTEM_BLAS=1 USE_SYSTEM_LAPACK=1 USE_SYSTEM_FFTW=1 USE_SYSTEM_GMP=1
USE_SYSTEM_ARPACK=1 USE_SYSTEM_MPFR=1 USE_SYSTEM_SUITESPARSE=1
USE_BLAS64=0

It will only download and build the dependencies (including LLVM) that
are not in Wheezy.

Hope this helps,

-- 
 .''`.    Sébastien Villemot
: :' :    Debian Developer
`. `'     http://www.dynare.org/sebastien
  `-      GPG Key: 4096R/381A7594

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-julia-devel/attachments/20140722/022f39ca/attachment.sig>


More information about the Pkg-julia-devel mailing list