Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

rake test fails -- libgit2.so.0: cannot open shared object file: No such file or directory #30

Closed
tlan opened this Issue Aug 7, 2011 · 4 comments

Comments

Projects
None yet
4 participants

tlan commented Aug 7, 2011

I've built, and installed libgit2.so.0 from source into /usr/local (so the libgit2.so.0 is in /usr/local/lib). When doing rake test in the rugged directory I get this:

rake test

rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
/usr/local/rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': libgit2.so.0: cannot open shared object file: No such file or directory - /home/tlan/src/chiliproject/rugged/lib/rugged/rugged.so (LoadError)
....

Do I need to do anything special for it to find the library when it's installed into /usr/local/lib ?

tlan commented Aug 8, 2011

Added a link from /usr/local/lib/libgit2.so.0 and into /usr/local/rvm/rubies/ruby.../lib and it worked. Is it possible to get this working without adding this link manually?

Owner

vmg commented Aug 9, 2011

Hm. Yes, totally... I'm gonna try to tweak the extconf file to allow specifying a lib prefix.

Contributor

tenderlove commented Jun 13, 2012

Can you still reproduce this? If so, could you paste the output of your mkmf.log file. I suspect you're having a compiler error.

Member

arthurschreiber commented Jul 26, 2013

I'm closing this because this issue is now more than 2 years old, and there's been no activity on it for more than a year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment