 |
Forums |
Admin Start New Thread
By: webmaster -
RE: fireruby & intel-mac os 10.5.1 (darwin 9. [ reply ] 2008-02-18 18:04
|
ops! of course, I try:
$ ruby ./extconf.rb
creating Makefile
$ make
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c AddUser.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Backup.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Blob.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Common.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Connection.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c DataArea.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Database.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c FireRuby.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c FireRubyException.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Generator.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c RemoveUser.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Restore.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c ResultSet.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Row.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c ServiceManager.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Services.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Statement.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c Transaction.c
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -I/Library/Frameworks/Firebird.framework/Headers -fno-common -arch i386 -Os -pipe -fno-common -DOS_UNIX -c TypeMap.c
TypeMap.c: In function ‘createSafeTime’:
TypeMap.c:539: warning: passing argument 2 of ‘rb_data_object_alloc’ discards qualifiers from pointer target type
cc -arch i386 -pipe -bundle -undefined dynamic_lookup -o fireruby.bundle AddUser.o Backup.o Blob.o Common.o Connection.o DataArea.o Database.o FireRuby.o FireRubyException.o Generator.o RemoveUser.o Restore.o ResultSet.o Row.o ServiceManager.o Services.o Statement.o Transaction.o TypeMap.o -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/Library/Frameworks/Firebird.framework/Libraries" -L. -arch i386 -framework Firebird -lruby -lpthread -ldl -lm
And finally:
$ sudo make install
Password:
/usr/bin/install -c -m 0755 fireruby.bundle /Library/Ruby/Site/1.8/universal-darwin9.0
It appears to work, I can run script/server, but when my app try to access some firebird BBDD I get next error:
LoadError (dlsym(0x1e0b130, Init_fireruby): symbol not found - /Library/Ruby/Site/1.8/universal-darwin9.0/fireruby.bundle):
/Library/Ruby/Site/1.8/universal-darwin9.0/fireruby.bundle
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:7:in `require_library_or_gem'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/reporting.rb:11:in `silence_warnings'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:5:in `require_library_or_gem'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/firebird_adapter.rb:27:in `firebird_connection'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `send'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:262:in `connection_without_query_cache='
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/query_cache.rb:54:in `connection='
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:230:in `retrieve_connection'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in `connection'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1456:in `quote_bound_value'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace_bind_variables'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `gsub'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1427:in `replace_bind_variables'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1416:in `sanitize_sql_array'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1387:in `sanitize_sql'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1163:in `add_conditions!'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:1096:in `construct_finder_sql'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:997:in `find_every'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:991:in `find_initial'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/base.rb:417:in `find'
.//app/models/usuario.rb:11:in `authenticate'
.//app/controllers/login_controller.rb:39:in `index'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `send'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:1095:in `perform_action_without_filters'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:632:in `call_filter'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:638:in `call_filter'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:438:in `call'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:637:in `call_filter'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:619:in `perform_action_without_benchmark'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/benchmarking.rb:66:in `perform_action_without_rescue'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/rescue.rb:83:in `perform_action'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `send'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:430:in `process_without_filters'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/filters.rb:624:in `process_without_session_management_support'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session_management.rb:114:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/base.rb:330:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:41:in `dispatch'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:78:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `synchronize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/rails.rb:76:in `process'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:618:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:617:in `process_client'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:736:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `initialize'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `new'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel.rb:720:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:271:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `each'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/configurator.rb:270:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:127:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/mongrel/command.rb:211:in `run'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/mongrel-1.0.1/bin/mongrel_rails:243
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:488:in `load'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/servers/mongrel.rb:60
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:342:in `new_constants_in'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:495:in `require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/commands/server.rb:39
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:27:in `require'
script/server:3
Rendering /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/templates/rescues/layout.rhtml (500 Internal Error)
some other idea? thanks again!
|
By: Scott Knight
RE: fireruby & intel-mac os 10.5.1 (darwin 9. [ reply ] 2008-02-15 12:38
|
|
I think I must have missed your previous error message. Definately you need to do ruby extconf.rb first before doing sudo make. Your errors for doing sudo make after ruby extconf.rb looks like it can't find the Firebird framework installed on your machine. Does the machine you're trying to compile on have the framework installed?
|
By: webmaster -
RE: fireruby & intel-mac os 10.5.1 (darwin 9. [ reply ] 2008-02-05 10:57
|
I try this:
svn checkout http://fireruby.rubyforge.org/svn/
cd svn/trunk
make
And receive the next error, after some other lines:
TypeMap.c: In function ‘createSafeTime’:
TypeMap.c:539: warning: passing argument 2 of ‘rb_data_object_alloc’ discards qualifiers from pointer target type
cc -arch i386 -pipe -bundle -o fireruby.bundle AddUser.o Backup.o Blob.o Common.o Connection.o DataArea.o Database.o FireRuby.o FireRubyException.o Generator.o RemoveUser.o Restore.o ResultSet.o Row.o ServiceManager.o Services.o Statement.o Transaction.o TypeMap.o -L"." -L"/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L"/Library/Frameworks/Firebird.framework/Libraries" -L. -arch i386 -framework Firebird -lruby -lpthread -ldl -lm
I see the content of mkmf.bat:
ruby extconf.rb "--with-firebird-dir=c:\Program Files\Firebird\Firebird_1_5" "--with-win32-dir=C:\Program Files\Microsoft Visual Studio 8" "--with-winsdk-dir=C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2" "--with-dotnet-dir=C:\Program Files\Microsoft Visual Studio 8\VC"
But I don't know the windows alternate path for Mac OS X :(
Then I change to tags/0.4.3/src and try again:
Now, first: ruby extconf.rb, them: sudo make, and the error was:
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin9.0 -I. -fno-common -arch ppc -arch i386 -Os -pipe -fno-common -c AddUser.c
AddUser.c:28:19: error: ibase.h: No such file or directory
In file included from ServiceManager.h:30,
from AddUser.c:29:
FireRuby.h:48: error: syntax error before ‘*’ token
In file included from ServiceManager.h:34,
from AddUser.c:29:
FireRubyException.h:48: error: syntax error before ‘*’ token
In file included from AddUser.c:29:
ServiceManager.h:40: error: syntax error before ‘isc_svc_handle’
ServiceManager.h:40: warning: no semicolon at end of struct or union
ServiceManager.h:41: warning: data definition has no type or storage class
AddUser.c: In function ‘executeAddUser’:
AddUser.c:317: error: ‘handle’ undeclared (first use in this function)
AddUser.c:317: error: (Each undeclared identifier is reported only once
AddUser.c:317: error: for each function it appears in.)
AddUser.c:320: error: ‘ISC_STATUS’ undeclared (first use in this function)
AddUser.c:320: error: syntax error before ‘status’
AddUser.c:323: error: syntax error before ‘)’ token
AddUser.c:333: error: ‘status’ undeclared (first use in this function)
AddUser.c: In function ‘createAddUserBuffer’:
AddUser.c:398: error: ‘isc_action_svc_add_user’ undeclared (first use in this function)
AddUser.c:400: error: ‘isc_spb_sec_username’ undeclared (first use in this function)
AddUser.c:407: error: ‘isc_spb_sec_password’ undeclared (first use in this function)
AddUser.c:416: error: ‘isc_spb_sec_firstname’ undeclared (first use in this function)
AddUser.c:425: error: ‘isc_spb_sec_middlename’ undeclared (first use in this function)
AddUser.c:434: error: ‘isc_spb_sec_lastname’ undeclared (first use in this function)
AddUser.c:28:19: error: ibase.h: No such file or directory
In file included from ServiceManager.h:30,
from AddUser.c:29:
FireRuby.h:48: error: syntax error before ‘*’ token
In file included from ServiceManager.h:34,
from AddUser.c:29:
FireRubyException.h:48: error: syntax error before ‘*’ token
In file included from AddUser.c:29:
ServiceManager.h:40: error: syntax error before ‘isc_svc_handle’
ServiceManager.h:40: warning: no semicolon at end of struct or union
ServiceManager.h:41: warning: data definition has no type or storage class
AddUser.c: In function ‘executeAddUser’:
AddUser.c:317: error: ‘handle’ undeclared (first use in this function)
AddUser.c:317: error: (Each undeclared identifier is reported only once
AddUser.c:317: error: for each function it appears in.)
AddUser.c:320: error: ‘ISC_STATUS’ undeclared (first use in this function)
AddUser.c:320: error: syntax error before ‘status’
AddUser.c:323: error: syntax error before ‘)’ token
AddUser.c:333: error: ‘status’ undeclared (first use in this function)
AddUser.c: In function ‘createAddUserBuffer’:
AddUser.c:398: error: ‘isc_action_svc_add_user’ undeclared (first use in this function)
AddUser.c:400: error: ‘isc_spb_sec_username’ undeclared (first use in this function)
AddUser.c:407: error: ‘isc_spb_sec_password’ undeclared (first use in this function)
AddUser.c:416: error: ‘isc_spb_sec_firstname’ undeclared (first use in this function)
AddUser.c:425: error: ‘isc_spb_sec_middlename’ undeclared (first use in this function)
AddUser.c:434: error: ‘isc_spb_sec_lastname’ undeclared (first use in this function)
lipo: can't open input file: /var/tmp//ccZGLW84.out (No such file or directory)
make: *** [AddUser.o] Error 1
Obviusly my steps are incorrect, but... was wrong?
Thanks,
|
By: webmaster -
RE: fireruby & intel-mac os 10.5.1 (darwin 9. [ reply ] 2008-02-04 16:02
|
Thank you very much for your response, I'm looking for a good programmer-skill-guy that have leopard and can help you.
Or, if there's possible that an obsolet-programmer-guy helps you too, I'm pleasing to offer you my mac and my operating system. I think you can make these changes then I download it via SVN and try to compile. I only need a medium-skills instructions :)
Another option es macosX86 or similar proyects, but frecuently these things need a powerful machine too.
In any case, a thing is safe: lot of people need fireruby on mac 10.5
Regards,
webmaster
|
By: Scott Knight
RE: fireruby & intel-mac os 10.5.1 (darwin 9. [ reply ] 2008-01-04 16:13
|
|
I don't have good access to MacOSX machines for building. Currently the build part for MacOS assumes it is an older PPC machine. The extconf.rb file needs to be updated to work with x86 and PPC macs and I think the make_gem.rb file also needs to be updated. If someone can help me get this done and run the test suite, I can check changes in and do a build
|
By: webmaster -
fireruby & intel-mac os 10.5.1 (darwin 9.1.0) [ reply ] 2008-01-04 15:54
|
|
Hi, I am trying to install fireruby under mac osx leopard (intel platform) but I don't find the correct configuration. I have used fireruby i586-linux but I think will not be the correct one. Exists some version adapted for mac-intel? Thank you very much.
|
|
 |