Hello Usman,
I don't know, I've never used Watir.
> Any help would be much appreciated. If you need any more information
> regarding the tools I am using then please do not hesitate to ask me.
>
> Sorry I might also add that I am using a MAC and have follwed all the
> instructions on:
> http://lua-users.org/lists/lua-l/2006-09/msg00894.html
>
> In my env.rb file I am requiring the following:
>
> require 'rubygems'
> require 'watir-webdriver'
> require 'rspec'
> require 'rufus/lua'
>
> and am still not getting anywhere.
>
> I keep on getting the following error:
> no library specified (LoadError)
> /Library/Ruby/Gems/1.8/gems/ffi-0.6.3/lib/ffi/library.rb:79:in
> `ffi_libraries'
> /Library/Ruby/Gems/1.8/gems/ffi-0.6.3/lib/ffi/library.rb:106:in
> `attach_function'
> /Library/Ruby/Gems/1.8/gems/rufus-lua-1.1.0/lib/rufus/lua/lib.rb:62
What do
find /usr -name liblua*
and
find /opt -name liblua*
yield on your system ?
Where is your liblua.dylib ?
Did you follow the instructions at
https://github.com/jmettraux/rufus-lua/blob/master/README.rdoc
?
---8<---
make
make macosx # or make linux ...
make -C src liblua.dylib
sudo cp src/liblua.dylib /usr/local/lib/
sudo make macosx install
--->8---
Best regards,
--
John Mettraux - http://jmettraux.wordpress.com
Hello Usman,
does it throw an error or does it throw the same error your reported in your initial email ?
> Basically i need to run a Lua script from a Ruby script.. am just
> trying to find a way of doing this.
I am repeating myself, but :
what do
� find /usr -name liblua*
and
� find /opt -name liblua*
yield on your system ?
Where is your liblua.dylib ?
Did you follow the instructions at
�https://github.com/jmettraux/rufus-lua/blob/master/README.rdoc
?
---8<---
make
make macosx # or make linux ...
make -C src liblua.dylib
sudo cp src/liblua.dylib /usr/local/lib/
sudo make macosx install
--->8---
Thanks in advance,
--
John Mettraux - http://jmettraux.wordpress.com
P.S.
reading these documents will enhance your issue reporting skills :
- http://www.catb.org/~esr/faqs/smart-questions.html
- http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
Hello Usman,
try to do
export LUA_LIB=/Users/usman.hussain/Desktop/ruby-lua/lua-5.1.4/src/liblua.dylib
before running your ruby program.
I hope it will help.