Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Any success compiling ruby-odbc for Mac OS X Leopard? (http://www.velocityreviews.com/forums/t846273-any-success-compiling-ruby-odbc-for-mac-os-x-leopard.html)

Justin Williams 12-03-2007 07:37 PM

Any success compiling ruby-odbc for Mac OS X Leopard?
 
Has anyone had any luck compiling the ruby-odbc library on Mac OS X
Leopard? I've been following the instructions found here (http://
www.napcsweb.com/blog/2007/03/08/15/), which worked on Mac OS X
Tiger. Everything works in Leopard, save for ruby-odbc. When I try
to make the library, I get the following error:

cc -arch ppc -arch i386 -pipe -bundle -o odbc.bundle odbc.o -L"." -L"/
System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -
arch ppc -arch i386 -lruby -liodbc -lpthread -ldl -lm
Undefined symbols for architecture i386:
"_SQLConfigDataSource", referenced from:
_conf_dsn in odbc.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
Undefined symbols for architecture ppc:
"_SQLConfigDataSource", referenced from:
_conf_dsn in odbc.o
ld: symbol(s) not found for architecture ppc
collect2: ld returned 1 exit status
lipo: can't open input file: /var/tmp//cc7qgHlP.out (No such file or
directory)
make: *** [odbc.bundle] Error 1


Here's the commands I am typing into the Terminal:

> ARCHFLAGS="-arch i386" ruby extconf.rb
> make


Anyone had any luck?

Thanks for the help.

Andrew Ryan 12-04-2007 12:06 AM

Re: Any success compiling ruby-odbc for Mac OS X Leopard?
 
I installed ruby-odbc using MacPorts and it installed without any
problems that I remember.

On Dec 3, 2007, at 11:40 AM, Justin Williams wrote:

> Has anyone had any luck compiling the ruby-odbc library on Mac OS X
> Leopard? I've been following the instructions found here (http://
> www.napcsweb.com/blog/2007/03/08/15/), which worked on Mac OS X
> Tiger. Everything works in Leopard, save for ruby-odbc. When I try
> to make the library, I get the following error:
>
> cc -arch ppc -arch i386 -pipe -bundle -o odbc.bundle odbc.o -L"." -L"/
> System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib" -L. -
> arch ppc -arch i386 -lruby -liodbc -lpthread -ldl -lm
> Undefined symbols for architecture i386:
> "_SQLConfigDataSource", referenced from:
> _conf_dsn in odbc.o
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> Undefined symbols for architecture ppc:
> "_SQLConfigDataSource", referenced from:
> _conf_dsn in odbc.o
> ld: symbol(s) not found for architecture ppc
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/tmp//cc7qgHlP.out (No such file or
> directory)
> make: *** [odbc.bundle] Error 1
>
>
> Here's the commands I am typing into the Terminal:
>
>> ARCHFLAGS="-arch i386" ruby extconf.rb
>> make

>
> Anyone had any luck?
>
> Thanks for the help.
>





All times are GMT. The time now is 11:36 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.