Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Problem with python2.7 in Debian (testing): Could not open library 'lib.so': lib.so: cannot open shared object file: No such file or directory #5

Open
solooboroten opened this issue Aug 16, 2013 · 1 comment

Comments

@solooboroten
Copy link

When using using rubypython-0.5.3 with python2.7 in Debian (testing) observe the following:

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/blankslate-3.1.2/lib/blankslate.rb:51: warning: undefining `object_id' may cause serious problems
rake aborted!
Could not open library 'lib.so': lib.so: cannot open shared object file: No such file or directory
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/ffi-1.0.11/lib/ffi/library.rb:121:in `block in ffi_lib'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `map'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/ffi-1.0.11/lib/ffi/library.rb:88:in `ffi_lib'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubypython-0.5.3/lib/rubypython/python.rb:29:in `<module:Python>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubypython-0.5.3/lib/rubypython/python.rb:21:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubypython-0.5.3/lib/rubypython.rb:261:in `reload_library'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/rubypython-0.5.3/lib/rubypython.rb:104:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:8:in `start'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/pygments.rb-0.2.13/lib/pygments/ffi.rb:42:in `lexers'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/pygments.rb-0.2.13/lib/pygments/lexer.rb:147:in `<module:Pygments>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/pygments.rb-0.2.13/lib/pygments/lexer.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:221:in `initialize'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:30:in `new'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:30:in `create'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:458:in `block in <module:Linguist>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:434:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:434:in `<module:Linguist>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/language.rb:8:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist/blob_helper.rb:2:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392/gems/github-linguist-2.3.4/lib/linguist.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/srv/rosa_build/current/config/application.rb:11:in `<top (required)>'
/srv/rosa_build/current/Rakefile:4:in `require'
/srv/rosa_build/current/Rakefile:4:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin/rake:19:in `load'
/usr/local/rvm/gems/ruby-1.9.3-p392@global/bin/rake:19:in `<main>'
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
/usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `<main>'

Excavations have shown that rubypython can not find libpython2.7.so, because the public library located in /usr/lib/x86_64-linux-gnu/:

$ ls -l /usr/lib/x86_64-linux-gnu/libpython*
lrwxrwxrwx 1 root root      51 Jun  2 18:19 /usr/lib/x86_64-linux-gnu/libpython2.7.a -> ../python2.7/config-x86_64-linux-gnu/libpython2.7.a
lrwxrwxrwx 1 root root      17 Jun  2 18:19 /usr/lib/x86_64-linux-gnu/libpython2.7.so -> libpython2.7.so.1
lrwxrwxrwx 1 root root      19 Jun  2 18:19 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1 -> libpython2.7.so.1.0
-rw-r--r-- 1 root root 3262616 Jun  2 18:19 /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0

Options to fix: add the path matching condition /usr/lib/*-linux-gnu/ to the search libraries path.

@solooboroten
Copy link
Author

Offered as a fix: solooboroten/rubypython@88cf287

I have this version works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant