Error installing GnuTLS

326 views
Skip to first unread message

Samuel Colvin

unread,
Jun 3, 2015, 4:42:34 PM6/3/15
to julia...@googlegroups.com
Just tried to install Quandl and found GnuTLS won't install, I'm on Ubuntu 15.04, 

version info:
Julia Version 0.3.8
Commit 79599ad (2015-04-30 23:40 UTC)
Platform Info:
  System: Linux (x86_64-linux-gnu)
  CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (NO_LAPACKE DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: liblapack.so.3
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

Error:

INFO: Cloning cache of GnuTLS from git://github.com/JuliaWeb/GnuTLS.jl.git
INFO: Installing GnuTLS v0.0.4
INFO: Building Nettle
INFO: Building GnuTLS
INFO: Attempting to Create directory /home/samuel/.julia/v0.3/GnuTLS/deps/downloads
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1521k  100 1521k    0     0   814k      0  0:00:01  0:00:01 --:--:--  814k
INFO: Attempting to Create directory /home/samuel/.julia/v0.3/GnuTLS/deps/src
INFO: Attempting to Create directory /home/samuel/.julia/v0.3/GnuTLS/deps
INFO: Directory /home/samuel/.julia/v0.3/GnuTLS/deps already created
INFO: Attempting to Create directory /home/samuel/.julia/v0.3/GnuTLS/deps/src/nettle-2.7
INFO: Attempting to Create directory /home/samuel/.julia/v0.3/GnuTLS/deps/builds/nettle
INFO: Changing Directory to /home/samuel/.julia/v0.3/GnuTLS/deps/builds/nettle
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for -R flag... using -Wl,-rpath,
Searching for libraries
checking /home/samuel/.julia/v0.3/GnuTLS/deps/usr/lib... not found
checking /usr/local/lib... added
checking /sw/local/lib... not found
checking /sw/lib... not found
checking /usr/gnu/lib... not found
checking /opt/gnu/lib... not found
checking /sw/gnu/lib... not found
checking /usr/freeware/lib... not found
checking /usr/pkg/lib... not found
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/samuel/.julia/v0.3/GnuTLS/deps/builds/nettle':
configure: error: C compiler cannot create executables


There then follows a long error from the line which failed (the exit code is 77), but it looks to me like the all the "not found" and the "checking whether the C compiler works... no" are the real error here. I have gcc, build-essential and all the versions of llvm from the aptitude installed. Nettle installed fine before this.

I assume I'm doing/not doing/missing something very dumb?

Is the problem that I need to somehow install llvm-3.3?

Glen H

unread,
Jun 3, 2015, 10:47:16 PM6/3/15
to julia...@googlegroups.com
I believe the issue is you are using too old of a gcc compiler.  I think you need at least gcc 4.4.

Kevin Squire

unread,
Jun 4, 2015, 8:16:01 AM6/4/15
to julia...@googlegroups.com
No help for the error, but Ubuntu 15.04 has gcc 4.9, so that's not the issue.

Samuel Colvin

unread,
Jun 4, 2015, 8:18:49 AM6/4/15
to julia...@googlegroups.com
yup:

> gcc --version
gcc (Ubuntu 4.9.2-10ubuntu13) 4.9.2



--

Samuel Colvin
S...@muelColvin.com,
07801160713

Milan Bouchet-Valat

unread,
Jun 4, 2015, 4:53:45 PM6/4/15
to julia...@googlegroups.com
Note that the check says "whether the C compiler works": I think it's actually trying to build a small C program. You should be able to get more details in config.log in the same directory. There may even be a command line to run to reproduce the problem.


Regards

Samuel Colvin

unread,
Jun 4, 2015, 4:59:58 PM6/4/15
to julia...@googlegroups.com
config.log: https://gist.github.com/samuelcolvin/91ca748699ce6dc81660

I looked though it myself before posting this issue but couldn't see anything obvious.

Milan Bouchet-Valat

unread,
Jun 4, 2015, 5:12:06 PM6/4/15
to julia...@googlegroups.com
Le jeudi 04 juin 2015 à 13:59 -0700, Samuel Colvin a écrit :
> config.log: https://gist.github.com/samuelcolvin/91ca748699ce6dc81660
>
>
> I looked though it myself before posting this issue but couldn't see
> anything obvious.
Ah, I think the explanation lies here:
/usr/bin/ld: cannot find -lgmp

You need to install libgmp-dev.

But I would have expected configure to check for this explicitly
somewhere else. Maybe worth reporting upstream.


Regards

Samuel Colvin

unread,
Jun 4, 2015, 5:19:51 PM6/4/15
to julia...@googlegroups.com
Thanks for you help.

Ok that works (actually it failed again, but this time it was due to missing m4 which is easy enough to notice and install).

I'm happy to create an issue, but I'm a little unclear on whether this is julia's fault or GnuTLS's fault? Where should I be submitting the issue?

Thanks again.


--

Samuel Colvin
S...@muelColvin.com,
07801160713

Milan Bouchet-Valat

unread,
Jun 4, 2015, 5:28:24 PM6/4/15
to julia...@googlegroups.com
Le jeudi 04 juin 2015 à 22:19 +0100, Samuel Colvin a écrit :
> Thanks for you help.
>
>
> Ok that works (actually it failed again, but this time it was due to
> missing m4 which is easy enough to notice and install).
Cool!

> I'm happy to create an issue, but I'm a little unclear on whether this
> is julia's fault or GnuTLS's fault? Where should I be submitting the
> issue?
This is certainly not Julia's fault, as it's merely calling the
configure script. It doesn't look like it's GNU TLS's fault either, but
rather that of Nettle. If you feel like it, it might be interesting to
get in touch with its maintainer:
http://www.lysator.liu.se/~nisse/nettle/


Regards

Milan Bouchet-Valat

unread,
Jun 5, 2015, 3:00:56 AM6/5/15
to julia...@googlegroups.com
Le jeudi 04 juin 2015 à 23:28 +0200, Milan Bouchet-Valat a écrit :
> Le jeudi 04 juin 2015 à 22:19 +0100, Samuel Colvin a écrit :
> > Thanks for you help.
> >
> >
> > Ok that works (actually it failed again, but this time it was due to
> > missing m4 which is easy enough to notice and install).
> Cool!
>
> > I'm happy to create an issue, but I'm a little unclear on whether this
> > is julia's fault or GnuTLS's fault? Where should I be submitting the
> > issue?
> This is certainly not Julia's fault, as it's merely calling the
> configure script. It doesn't look like it's GNU TLS's fault either, but
> rather that of Nettle. If you feel like it, it might be interesting to
> get in touch with its maintainer:
> http://www.lysator.liu.se/~nisse/nettle/
Looks like I spoke too soon. It may well be that this -lgmp flag comes
from GnuTLS.jl:
https://github.com/JuliaWeb/GnuTLS.jl/blob/8780b9acfc49ebf9b231b373d31c2c4046f93f13/deps/build.jl#L48


Another issue is that it should have been able to use the Ubuntu package
instead of building from source. It seems the package is (now?) called
libgnutls-deb0-28, which will need to be added to the build.jl file.

So I think you can start by filing an issue against GnuTLS.jl.


Regards
Reply all
Reply to author
Forward
0 new messages