cannot open shared object file: No such file or directory yet file directory and everything exists (ruby project) - ruby

Error: The application encountered the following error: libicudata.so.48: cannot open shared object file: No such file or directory - /usr/local/rvm/gems/ruby-2.3.1/gems/charlock_holmes-0.7.6/lib/charlock_holmes/charlock_holmes.so (LoadError)
yet vi /usr/local/rvm/gems/ruby-2.3.1/gems/charlock_holmes-0.7.6/lib/charlock_holmes/charlock_holmes.so opens it right up...
I am on centos 7 using ruby 2.3.1
Any idea why this is doing this

Related

Set up jekyll on windows

I try to set up jekyll on window10 (x64)
Ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x64-mingw32]
gem -v
2.6.6
D:\myblog>jekyll serve
Configuration file: D:/myblog/_config.yml
Source: D:/myblog
Destination: D:/myblog/_site
Incremental build: disabled. Enable with --incremental
Generating...
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html: No such file or directory # rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/page.html: No such file or directory # rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/page.html
Error reading file C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/post.html: No such file or directory # rb_sysopen - /Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/post.html
Can someone help me to fix it?
I was having the same problem. Following the path shown in the command line (for me it was) :
C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/minima-1.0.1/_layouts/default.html
and copying the _layouts, _includes and _sass folders manually did the thing for me. Although this is not a permanent solution as there seems some bug which is preventing jekyll to copy file from the directory shown in the error.
Hope this helps you too for now.
The issue is due to your Project directory and Ruby installation, being on different drives (i.e. D: vs. C:).
To fix, you can simply create a (junction) link to C:/Ruby22-x64 from the location D:/Ruby22-x64.
Commands you need to enter:
D:
cd /
mklink /J "Ruby22-x64" "C:/Ruby22-x64"

Shoes Ruby GUI toolkit [error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory]

When I try to run shoes application like at console: shoes app.rb
Getting following error on console-
Verifying archive integrity... All good.
Uncompressing Shoes....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
/tmp/selfgz5416/shoes-bin: error while loading shared libraries: libcairo.so.2: cannot open shared object file: No such file or directory

Memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file

Situation: I installed memcached on a CenTOS 5 (64 bit). I also ended up installing some PHP plugins using PECL, though they're unnecessary now.
Problem:When I execute
/etc/init.d/memcached start
I get the following error:
Starting memcached: memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory
But the file libevent-2.0.so.5 is present in /opt/couchbase/lib/.
Should it be there in some other folder ? How to get memcached to start ?
/opt/couchbase/lib will not be set on your system library path by default. That's why your unable to find libevent when running /etc/init.d/memcached.
To quickly solve this you can just run the command as follows:
LD_LIBRARY_PATH=/opt/couchbase/lib /etc/init.d/memcached
or to solve this over the long term add the following file (assuming your using centos):
/etc/ld.so.conf.d/couchbase.conf
and in that file add the path "/opt/couchbase/lib". Then run ldconfig and re-run the command to start memcached.
sudo ln -s /usr/lib/libevent-2.1.so.6 /usr/lib64/libevent-2.1.so.6
for libevent-2.0.so.5 the same.

thrift/TDispatch processor.h No such file or directory error

I am trying to run a Makefile, and coming up with this error:
thrift/TDispatch processor.h No such file or directory
compilation terminated
Thrift is installed in /usr/local/bin/thrift, I have make sure by writing thrift in terminal.

RDF-raptor-parser

I am trying to parse the rdf file but
I am getting error while executing following code in ubuntu
RDF::Reader.open("http://datagraph.org/jhacker/foaf.rdf") do |reader|
reader.each_statement do |statement|
puts statement.inspect
end
end
as
LoadError: Could not open library 'libraptor': libraptor: cannot open shared object file: No such file or directory. Could not open library 'libraptor.so': libraptor.so: cannot open shared object file: No such file or directory
I installed all the required gems:
rdf
rdf-raptor
ffi
rdf-json
rdf-trix
Please help me how to rectify this problem
I suggest you visit http://rdf.rubyforge.org/raptor/ and use the contact info mentioned there such as the mailing list. The error is because the C shared library libraptor.so cannot be found by ruby, so it must have been installed in a non-standard place. I am the author of Raptor but I do not know how rdf-raptor installed Raptor.

Resources