JuliaWeb / GnuTLS.jl

Transport Level Security for Julia Streams provided by GnuTLS
Other
8 stars 13 forks source link

GnuTLS.jl not building on Debian #52

Closed JockLawrie closed 9 years ago

JockLawrie commented 9 years ago

Hi there, I am having trouble building GnuTLS.jl on Debian Jessie. When I enter Pkg.build("GnuTLS") I get the following error:

File String["/root/.julia/v0.3/GnuTLS/deps/src/nettle-2.7"] was not created successfully (Tried to run SynchronousStepCollection({tar xzf /root/.julia/v0.3/GnuTLS/deps/downloads/nettle-2.7.tar.gz --directory=/root/.julia/v0.3/GnuTLS/deps/src},"","") ) while loading /root/.julia/v0.3/GnuTLS/deps/build.jl, in expression starting on line 55

But /root/.julia/v0.3/GnuTLS/deps/src/nettle-2.7 does exist and is full of source files as expected. Also, Nettle.jl is installed and works fine.

Any ideas?

Thanks, Jock

JockLawrie commented 9 years ago

After a little digging around I found a workaround, namely reinstall libnettle and libgnutls. That GnuTLS.jl doesn't sort this out automatically remains an issue, but at least one can get it working. Here are the steps I used:

Shell: apt-get --reinstall install libnettle4 apt-get --reinstall install reinstall libgnutls-deb0-28

Julia:

Pkg.rm("GnuTLS")

Shell: cd ~/.julia/v0.3 ls -ail

If directory GnuTLS exists, delete it: rm -rf GnuTLS

Julia:

Pkg.update()

If GnuTLS is not installed (probably because none of your other packages require it), then install it:

Pkg.add("GnuTLS")
JockLawrie commented 9 years ago

p.s., you may also need to install libgmp-dev as a first step, before (re)installing libnettle: apt-get install libgmp-dev

quinnj commented 9 years ago

Thanks for tracking this down @JockLawrie; we'll point people here in for future reference.