Skip to content

Instantly share code, notes, and snippets.

@CootCraig
Created August 11, 2015 19:01
Show Gist options
  • Save CootCraig/7c7e6aacbd4c48979560 to your computer and use it in GitHub Desktop.
Save CootCraig/7c7e6aacbd4c48979560 to your computer and use it in GitHub Desktop.
2015-08-11 celluloid-zmq load error
Ubuntu 14.04
JRuby 1.7.21
LoadError: The libzmq library (or DLL) could not be loaded
Note that zeromq 4.1.2 was built from source
and installed to
/usr/local/lib/libzmq.so
GEM
remote: http://rubygems.org/
specs:
addressable (2.3.8)
celluloid (0.17.1.1)
bundler
celluloid-essentials
celluloid-extras
celluloid-fsm
celluloid-pool
celluloid-supervision
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-essentials (0.20.2)
bundler
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-extras (0.20.0)
bundler
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-fsm (0.20.0)
bundler
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-io (0.17.0)
bundler
celluloid (~> 0.17)
dotenv
nenv
nio4r (>= 1.1)
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-pool (0.20.0)
bundler
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-supervision (0.20.1)
bundler
dotenv
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
celluloid-zmq (0.17.0)
bundler
celluloid (~> 0.17)
dotenv
ffi
ffi-rzmq
nenv
rspec-logsplit (>= 0.1.2)
timers (~> 4.0.0)
domain_name (0.5.24)
unf (>= 0.0.5, < 1.0.0)
dotenv (2.0.2)
ffi (1.9.10-java)
ffi-rzmq (2.0.4)
ffi-rzmq-core (>= 1.0.1)
ffi-rzmq-core (1.0.3)
ffi (~> 1.9)
haml (4.0.7)
tilt
hitimes (1.2.2-java)
htmlentities (4.3.4)
http (0.9.0)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 1.0.1)
http_parser.rb (~> 0.6.0)
http-cookie (1.0.2)
domain_name (~> 0.5)
http-form_data (1.0.1)
http_parser.rb (0.6.0-java)
http_router (0.11.2)
rack (>= 1.0.0)
url_mount (~> 0.2.1)
jruby-openssl (0.9.8-java)
json (1.8.3-java)
log4r (1.1.10)
nenv (0.2.0)
nio4r (1.1.1-java)
octarine (0.0.3)
http_router
querystring (0.1.0)
rack (1.6.4)
reel (0.5.0)
celluloid (>= 0.15.1)
celluloid-io (>= 0.15.0)
http (>= 0.6.0.pre)
http_parser.rb (>= 0.6.0)
websocket_parser (>= 0.1.6)
rspec-logsplit (0.1.3)
tilt (2.0.1)
timers (4.0.1)
hitimes
unf (0.1.4-java)
url_mount (0.2.1)
rack
uuidtools (2.1.5)
websocket_parser (1.0.0)
PLATFORMS
java
DEPENDENCIES
celluloid-zmq
haml
htmlentities
jruby-openssl
json
log4r
octarine
querystring
reel
uuidtools
BUNDLED WITH
1.10.6
d4pd4% cat run.sh
#!/bin/bash
cd /opt/gcs/apps/cpe_ajax
jruby --1.9 --server -J-Xmn32m -J-Xms96m -J-Xmx96m -J-Xss300k -S cpe_ajax_start.rb
d4pd4% ls -l /usr/local/lib/libzmq*
-rw-r--r-- 1 root root 15444520 Aug 7 16:05 /usr/local/lib/libzmq.a
-rwxr-xr-x 1 root root 992 Aug 7 16:05 /usr/local/lib/libzmq.la
lrwxrwxrwx 1 root root 15 Aug 7 16:05 /usr/local/lib/libzmq.so -> libzmq.so.5.0.0
lrwxrwxrwx 1 root root 15 Aug 7 16:05 /usr/local/lib/libzmq.so.5 -> libzmq.so.5.0.0
-rwxr-xr-x 1 root root 421128 Aug 7 16:05 /usr/local/lib/libzmq.so.5.0.0
d4pd4% ./run.sh
I, [2015-08-11T12:45:25.135000 #5468] INFO -- : Celluloid 0.17.1.1 is running in BACKPORTED mode. [ http://git.io/vJf3J ]
Unable to load this gem. The libzmq library (or DLL) could not be found.
If this is a Windows platform, make sure libzmq.dll is on the PATH.
If the DLL was built with mingw, make sure the other two dependent DLLs,
libgcc_s_sjlj-1.dll and libstdc++6.dll, are also on the PATH.
For non-Windows platforms, make sure libzmq is located in this search path:
["/home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-core-1.0.3/lib/ffi-rzmq-core/../../ext/libzmq.so", "/home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/bin/libzmq.so", "/home/administrator/.rbenv/versions/jruby-1.7.21/bin/libzmq.so", "/home/administrator/.rbenv/libexec/libzmq.so", "/home/administrator/.rbenv/plugins/ruby-build/bin/libzmq.so", "/home/administrator/.rbenv/shims/libzmq.so", "/home/administrator/.rbenv/bin/libzmq.so", "/home/administrator/bin/libzmq.so", "/opt/java/java/bin/libzmq.so", "/usr/local/bin/libzmq.so", "/usr/local/sbin/libzmq.so", "/usr/sbin/libzmq.so", "/usr/bin/libzmq.so", "/sbin/libzmq.so", "/bin/libzmq.so", "/usr/games/libzmq.so", "/usr/local/games/libzmq.so", "/usr/local/lib/libzmq.so", "/opt/local/lib/libzmq.so", "/usr/lib64/libzmq.so"]
LoadError: The libzmq library (or DLL) could not be loaded
LibZMQ at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-core-1.0.3/lib/ffi-rzmq-core/libzmq.rb:54
(root) at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-core-1.0.3/lib/ffi-rzmq-core/libzmq.rb:6
require at org/jruby/RubyKernel.java:1040
(root) at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-core-1.0.3/lib/ffi-rzmq-core.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-core-1.0.3/lib/ffi-rzmq-core.rb:3
require at org/jruby/RubyKernel.java:1040
(root) at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-2.0.4/lib/ffi-rzmq.rb:1
require at org/jruby/RubyKernel.java:1040
(root) at /home/administrator/.rbenv/versions/jruby-1.7.21/lib/ruby/gems/shared/gems/ffi-rzmq-2.0.4/lib/ffi-rzmq.rb:66
require at org/jruby/RubyKernel.java:1040
(root) at cpe_ajax_start.rb:4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment