Note that there are some explanatory texts on larger screens.

plurals
  1. POCould not open library 'libkernel32.so' running bundle exec rspec on solaris in vbox
    primarykey
    data
    text
    <p>Setup:</p> <p>Host is laptop running windows 7, 64bit</p> <p>Guest is Solaris 11 running on VirtualBox 4.2 with packages:</p> <ul> <li>ruby(1.9.3p286)</li> <li>rails(3.2.8) </li> <li>gem(1.8.24)</li> <li>bundler(1.2.1) </li> <li>git(1.7.3.2) </li> </ul> <p>All seemed to run fine after a little tweeking. I am going through Ruby on Rails tutorial by Michael Hartl and I created a basic web page. I brought up rails server and could display web page. Basic git commands seemed to work fine.</p> <p>Went to run rspec to start the basic testing stage and got the following:</p> <blockquote> <p>/usr/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/lib/ffi/library.rb:121: in 'block in ffi_lib': </p> <p>Could not open library 'kernel32': ld.so.1: ruby: fatal: kernel32: open failed: No such file or directory. (LoadError)</p> <p>Could not open library 'libkernel32.so': ld.so.1: ruby: fatal: libkernel32.so: open failed: No such file or directory.</p> </blockquote> <p>Sorry, don't have traceback here but line causing the problem seems to be from:</p> <pre><code>..../1.9.1/gems/ffi-1.1.5/lib/ffi/library.rb:88:in 'map' </code></pre> <p>Searched both the guest and host machine and could not find libkernel32. Could find next to nothing on the Internet referring to kernel32. All ruby on rails functionality works fine on the Windows host. Trying this on solaris, I knew I would have problems and could hopefully work out. This problem with rspec, I seem to be totally stuck and not sure which way to proceed. </p> <pre><code> $ bundle exec rspec /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/lib/ffi/library.rb:121:in `block in ffi_lib': Could not open library 'kernel32': ld.so.1: ruby: fatal: kernel32: open failed: No such file or directory. (LoadError) Could not open library 'libkernel32.so': ld.so.1: ruby: fatal: libkernel32.so: open failed: No such file or directory from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/lib/ffi/library.rb:88:in `map' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/ffi-1.1.5/lib/ffi/library.rb:88:in `ffi_lib' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rb-fchange-0.0.5/lib/rb-fchange/native.rb:10:in `&lt;module:Native&gt;' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rb-fchange-0.0.5/lib/rb-fchange/native.rb:8:in `&lt;module:FChange&gt;' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rb-fchange-0.0.5/lib/rb-fchange/native.rb:3:in `&lt;top (required)&gt;' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rb-fchange-0.0.5/lib/rb-fchange.rb:1:in `require' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rb-fchange-0.0.5/lib/rb-fchange.rb:1:in `&lt;top (required)&gt;' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:73:in `require' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:73:in `block (2 levels) in require' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:71:in `each' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:71:in `block in require' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `each' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler/runtime.rb:55:in `require' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/bundler-1.2.1/lib/bundler.rb:128:in `require' from /home/t103339/rails-projects/sample_app-solaris/config/application.rb:13:in `&lt;top (required)&gt;' from /home/t103339/rails-projects/sample_app-solaris/config/environment.rb:2:in `require' from /home/t103339/rails-projects/sample_app-solaris/config/environment.rb:2:in `&lt;top (required)&gt;' from /home/t103339/rails-projects/sample_app-solaris/spec/spec_helper.rb:3:in `require' from /home/t103339/rails-projects/sample_app-solaris/spec/spec_helper.rb:3:in `&lt;top (required)&gt;' from /home/t103339/rails-projects/sample_app-solaris/spec/requests/static_pages_tests_spec.rb:1:in `require' from /home/t103339/rails-projects/sample_app-solaris/spec/requests/static_pages_tests_spec.rb:1:in `&lt;top (required)&gt;' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `block in load_spec_files' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `map' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/configuration.rb:780:in `load_spec_files' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/command_line.rb:22:in `run' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:69:in `run' from /home/t103339/Sandbox/usr/lib/ruby/gems/1.9.1/gems/rspec-core-2.11.1/lib/rspec/core/runner.rb:8:in `block in autorun' </code></pre> <p>Been looking at Wine software to build a libkernal32.so but no luck so far.</p> <p>This is not life or death. It would be easier just to do on windows, but I am retired and doing this on Solaris is now a challenge for me. Any help is apreciated but don't take time away from the people who really need it. Thanks.</p> <p>OK: Thanks to Martin Carpenter, I looked at rb-fchange.rb and commented out <code># require "rb-fchange/native"</code> <code># require "rb-fchange/native/flags"</code> to see what would happen. It Worked!! Preliminary rspec works, even showing red for failure and green for success. Might run into problems down the line for commenting out the two requires but this is all experimental and a learning exercise so I'll try to handle the problems as they come. Thanks Martin!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload