JuliaInterop / ZMQ.jl

Julia interface to ZMQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Errors on fresh install of Julia 0.6 (Linux Mint)

NateKnob opened this issue · comments

commented

Just installed julia 0.6. Running Pkg.add("ZMQ") and getting build errors. Any clue what's going on? Do I need to apt install something first such as libzmq3-dev?

   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: https://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.6.0 (2017-06-19 13:05 UTC)
 _/ |\__'_|_|_|\__'_|  |  Official http://julialang.org/ release
|__/                   |  i686-pc-linux-gnu

julia> Pkg.add("ZMQ")
INFO: Initializing package repository /home/nknauf/.julia/v0.6
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Installing BinDeps v0.6.0
INFO: Installing Compat v0.26.0
INFO: Installing SHA v0.3.3
INFO: Installing URIParser v0.1.8
INFO: Installing ZMQ v0.4.3
INFO: Building ZMQ
INFO: Attempting to Create directory /home/nknauf/.julia/v0.6/ZMQ/deps/downloads
INFO: Downloading file https://github.com/zeromq/zeromq3-x/releases/download/v3.2.5/zeromq-3.2.5.tar.gz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   608    0   608    0     0   4290      0 --:--:-- --:--:-- --:--:--  4312
100 2034k  100 2034k    0     0  1310k      0  0:00:01  0:00:01 --:--:-- 11.0M
INFO: Done downloading file https://github.com/zeromq/zeromq3-x/releases/download/v3.2.5/zeromq-3.2.5.tar.gz
INFO: Attempting to Create directory /home/nknauf/.julia/v0.6/ZMQ/deps/src
INFO: Attempting to Create directory /home/nknauf/.julia/v0.6/ZMQ/deps
INFO: Directory /home/nknauf/.julia/v0.6/ZMQ/deps already created
INFO: Attempting to Create directory /home/nknauf/.julia/v0.6/ZMQ/deps/builds/zmq
INFO: Changing Directory to /home/nknauf/.julia/v0.6/ZMQ/deps/builds/zmq
configure: WARNING: You are building an unreleased version of 0MQ and asciidoc or xmlto are not installed.
configure: WARNING: Documentation will not be built and manual pages will not be installed.
INFO: Changing Directory to /home/nknauf/.julia/v0.6/ZMQ/deps/builds/zmq
.libs/libzmq_la-ipc_listener.o: In function `zmq::ipc_listener_t::set_address(char const*)':
/home/nknauf/.julia/v0.6/ZMQ/deps/src/zeromq-3.2.5/src/ipc_listener.cpp:124: warning: the use of `tempnam' is dangerous, better use `mkstemp'
ar: `u' modifier ignored since `D' is the default (see `U')
INFO: Changing Directory to /home/nknauf/.julia/v0.6/ZMQ/deps/builds/zmq
================================================================================================================[ ERROR: ZMQ ]================================================================================================================

LoadError: Provider BinDeps.BuildProcess failed to satisfy dependency zmq
while loading /home/nknauf/.julia/v0.6/ZMQ/deps/build.jl, in expression starting on line 35

==============================================================================================================================================================================================================================================

===============================================================================================================[ BUILD ERRORS ]===============================================================================================================

WARNING: ZMQ had build errors.

 - packages with build errors remain installed in /home/nknauf/.julia/v0.6
 - build the package(s) and all dependencies with `Pkg.build("ZMQ")`
 - build a single package by running its `deps/build.jl` script

==============================================================================================================================================================================================================================================
INFO: Package database updated
commented

Also I get the same error inside the julia:latest docker image.

commented

After installing libzmq3-dev I am unable to get this package to use the prebuilt version that came with apt. It still tries to download and build from source. Once it does build from source, the build is successful, but using ZMQ says that it cannot load the package, is there some necessary manipulation of "LD_PATH" or something?

----------------------------------------------------------------------
Libraries have been installed in:
   /home/nknauf/.julia/v0.5/ZMQ/deps/usr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

BinDeps is either unable to find the built/apt-installed libzmq so, or unable to dlopen it for some reason

I have the exact same problem on Ubuntu with Julia 0.6.1

I have the exact same problem on Ubuntu with Julia 0.6.1