Subject:
[ruby-ffi] ffi_libraries: no library specified (LoadError)
From:
Usman Hussain
Date:
12/17/10 8:59 AM
To:
ruby-ffi

Hi Guys,

This may not be the correct place to post this but i thought it is
worth a try.

I am having a problem trying to run a rufus-lua example and am getting
this error:

gl01231m:rubyluabridge usman.hussain$ ruby rubylua.rb
/Library/Ruby/Gems/1.8/gems/ffi-1.0.0/lib/ffi/library.rb:93:in
`ffi_libraries': no library specified (LoadError)
	from /Library/Ruby/Gems/1.8/gems/ffi-1.0.0/lib/ffi/library.rb:129:in
`attach_function'
	from /Library/Ruby/Gems/1.8/gems/rufus-lua-1.1.0/lib/rufus/lua/lib.rb:
62
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`require'
	from /Library/Ruby/Gems/1.8/gems/rufus-lua-1.1.0/lib/rufus/lua.rb:25
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`gem_original_require'
	from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:36:in
`require'
	from rubylua.rb:4

I am using a MAC.
Ruby Version is: ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-
darwin10.0]
My Script looks something like this:
require 'rubygems'
require 'rufus/lua'

  s = Rufus::Lua::State.new

  puts s.eval("return table.concat({ 'hello', 'from', 'Lua' }, ' ')")
    #
    # => "Hello from Lua"

  s.close

When i run the script im getting the error above.

Does anyone know why im getting it?

Kind regards,
Usman Hussain