cannot load such file -- ffi_c (LoadError)

2,204 views
Skip to first unread message

Bryce Fischer

unread,
Dec 21, 2011, 10:20:33 AM12/21/11
to Jasmine
Getting error from the subject when trying to run rake jasmine:ci
(from the gem).

I'm running Windows 7 (64bit)

Entire output here:

C:/Ruby193/bin/ruby.exe -S rspec --colour --format progress spec/
javascripts/support/jasmine_runner.rb
You must use ANSICON 1.31 or later (http://adoxa.110mb.com/ansicon/)
to use colour on Windows
[2011-12-21 10:19:34] INFO WEBrick 1.3.1
[2011-12-21 10:19:34] INFO ruby 1.9.3 (2011-10-30) [i386-mingw32]
[2011-12-21 10:19:34] INFO WEBrick::HTTPServer#start: pid=13964
port=49801
jasmine server started.
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': iconv will be deprecated in the future, use String#encode
instead.
C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- ffi_c (LoadError)
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/
custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11-x86-
mingw32/lib/ffi.rb:11:in `rescue in <top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/ffi-1.0.11-x86-
mingw32/lib/ffi.rb:2:in `<top (required)>'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/
custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/site_ruby/1.9.1/rubygems/
custom_require.rb:36:in `require'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.2.2/
lib/childprocess/windows.rb:1:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/childprocess-0.2.2/
lib/childprocess.rb:95:in `close_on_exec'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/firefox/socket_lock.rb:46:in
`can_lock?'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/firefox/socket_lock.rb:31:in
`lock'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/firefox/socket_lock.rb:17:in
`locked'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/firefox/launcher.rb:32:in
`launch'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/firefox/bridge.rb:19:in
`initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/common/driver.rb:29:in `new'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver/common/driver.rb:29:in `for'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/selenium-
webdriver-2.12.2/lib/selenium/webdriver.rb:81:in `for'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jasmine-1.1.2/lib/
jasmine/selenium_driver.rb:19:in `initialize'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jasmine-1.1.2/lib/
jasmine/config.rb:26:in `new'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jasmine-1.1.2/lib/
jasmine/config.rb:26:in `start'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/jasmine-1.1.2/lib/
jasmine/spec_builder.rb:17:in `start'
from C:/Users/bfischer.WESTBROOK/dev/YAGrid/spec/javascripts/
support/jasmine_runner.rb:30:in `<top (required)>'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/configuration.rb:459:in `load'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/configuration.rb:459:in `block in load_spec_files'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/configuration.rb:459:in `map'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/configuration.rb:459:in `load_spec_files'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/command_line.rb:18:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/runner.rb:80:in `run_in_process'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/runner.rb:69:in `run'
from C:/Ruby193/lib/ruby/gems/1.9.1/gems/rspec-core-2.7.1/lib/
rspec/core/runner.rb:10:in `block in autorun'
rake aborted!
ruby C:/Ruby193/bin/ruby.exe -S rspec --colour --format progress spec/
javascripts/support/jasmine_runner.rb failed

Tasks: TOP => jasmine_continuous_integration_runner
(See full trace by running task with --trace)

Rajan Agaskar

unread,
Dec 21, 2011, 11:00:39 AM12/21/11
to jasmi...@googlegroups.com
This looks like a selenium webdriver issue -- I would try adding an issue there: http://code.google.com/p/selenium/issues/list


--
You received this message because you are subscribed to the Google Groups "Jasmine" group.
To post to this group, send email to jasmi...@googlegroups.com.
To unsubscribe from this group, send email to jasmine-js+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jasmine-js?hl=en.


Bryce Fischer

unread,
Dec 21, 2011, 11:00:43 AM12/21/11
to Jasmine
Figured it out. Uninstalled ffi and installed ffi v 1.0.0 as per
advice here:
http://stackoverflow.com/questions/7964778/no-such-file-to-load-ffi-c-loaderror
Reply all
Reply to author
Forward
0 new messages