This fixes the issue I had. However when you ldconfig -v it will complain you already have that path. Is this the correct method?
SOURCE: https://bugs.edge.launchpad.net/ubuntu/+source/xorg/+bug/366728 It seems the proper way to "add to LD_LIBRARY_PATH" is not by using that env anymore, but by using ldconfig and /etc/ld.so.conf.d/*.conf files. 1. Add the ld.so configuration file : echo "/opt/qt-mobility-src-1.0.0-tp2/install/lib" | sudo tee /etc/ld.so.conf.d/qt-mobility.conf 2. Update the cache sudo ldconfig -v Now the libraries are in your ld library path. No messing with /etc/environment. And if you later decide to "uninstall" the libraries, just remove the conf file and run sudo ldconfig again. Cleaner solution for me. I just wonder if this is also portable to other distros beside Ubuntu? (since LD_LIBRARY_PATH supposedly works on all Linux distros) See http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2008-02/msg02742.htmlfor rationale. "AFAIK LD_LIBRARY_PATH is unset in ubuntu, since the libraries are all where they should be:)" On Mon, Apr 11, 2011 at 11:31 AM, Justin Stanczak <[email protected]>wrote: > I'm getting this error when loading zmq under irb. Now that I'm typing this > out, it looks like I need to have the 'make install' copy all files into the > "/home/justin/.rvm/gems/ruby-1.9.2-p136/gems/zmq-2.1.0.1/lib/" folder. Does > this sound right? I'm going to give it a try, but if someone know how to > setup zmq under rvm let me know. > > ruby-1.9.2-p136 :002 > require 'zmq' > LoadError: libzmq.so.1: cannot open shared object file: No such file or > directory - > /home/justin/.rvm/gems/ruby-1.9.2-p136/gems/zmq-2.1.0.1/lib/zmq.so > from > /home/justin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in > `require' > from > /home/justin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in > `rescue in require' > from > /home/justin/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in > `require' > from (irb):2 > from /home/justin/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>' > ruby-1.9.2-p136 :003 > > >
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
