Forum: Ruby Installing rbosa on mac 10.6.8

958ccf40c89b5b642a36be47b9b7aa42?d=identicon&s=25 Ben Spears (wild4lifedasigns)
on 2013-08-31 17:22
I am a complete noob at all this. I want to learn ruby to build script
that can interact with the system like the way applescript dose. I found
a ruby script online that requires rbosa to run so i went on the website
http://rubyosa.rubyforge.org/ and followed the instructions to install
it.

I got  an error see below

Building native extensions.  This could take a while...
ERROR:  Error installing rubyosa:
  ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby
extconf.rb
checking for OSACopyScriptingDefinition()... yes
checking for LSFindApplicationForInfo()... yes
create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_ruby.h ...
create /Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/src/osx_intern.h ...
creating Makefile

make
Makefile:137: warning: overriding commands for target
`.gem.20130831-76218-10us0yo'
Makefile:135: warning: ignoring old commands for target
`.gem.20130831-76218-10us0yo'
xcrun cc -I. -I.
-I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0
-I. -DHAVE_OSACOPYSCRIPTINGDEFINITION -DHAVE_LSFINDAPPLICATIONFORINFO
-D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch x86_64
-g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe -fno-common
-Wall   -c src/rbosa.c
src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘sClasses’
src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘sApp’
src/rbosa.c: In function ‘__rbosa_class_from_desc_data’:
src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this
function)
src/rbosa.c:55: error: (Each undeclared identifier is reported only once
src/rbosa.c:55: error: for each function it appears in.)
src/rbosa.c: In function ‘rbosa_element_make’:
src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function)
src/rbosa.c: In function ‘__rbosa_elementlist_get’:
src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function)
src/rbosa.c: In function ‘Init_osa’:
src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this
function)
src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function)
src/rbosa.c:38: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘sClasses’
src/rbosa.c:39: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’
before ‘sApp’
src/rbosa.c: In function ‘__rbosa_class_from_desc_data’:
src/rbosa.c:55: error: ‘sClasses’ undeclared (first use in this
function)
src/rbosa.c:55: error: (Each undeclared identifier is reported only once
src/rbosa.c:55: error: for each function it appears in.)
src/rbosa.c: In function ‘rbosa_element_make’:
src/rbosa.c:114: error: ‘sApp’ undeclared (first use in this function)
src/rbosa.c: In function ‘__rbosa_elementlist_get’:
src/rbosa.c:594: error: ‘sApp’ undeclared (first use in this function)
src/rbosa.c: In function ‘Init_osa’:
src/rbosa.c:680: error: ‘sClasses’ undeclared (first use in this
function)
src/rbosa.c:681: error: ‘sApp’ undeclared (first use in this function)
lipo: can't open input file: /var/tmp//ccrXPsBh.out (No such file or
directory)
make: *** [rbosa.o] Error 1


Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/rubyosa-0.4.0/./gem_make.out




thanks for any help
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.