ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> ruby-talk
ruby-talk
Re: mkmf problems on Mac OS X Leopard
by Wincent Colaiuta other posts by this author
Oct 29 2007 6:10PM messages near this date
Re: mkmf problems on Mac OS X Leopard | Re: mkmf problems on Mac OS X Leopard
On Oct 29, 10:13 pm, "Laurent Sansonetti"
<laurent.sansone...@[...].com>  wrote:
> 
>  Maybe this is because Leopard's Ruby builds its extensions universal
>  (for both i386 and ppc architectures), and that
>  "/usr/local/lib/libantlr3c.a" isn't universal.
> 
>  You can verify this using:
> 
>  $ file /usr/local/lib/libantlr3c.a
> 
>  If the library is only compiled for your arch, the solution is to
>  appropriately set the ARCHFLAGS environment variable.
> 
>  The following page has some information regarding ARCHFLAGS:
> 
>  http://trac.macosforge.org/projects/ruby/wiki/WhatsNewInLeopard#Ruby

Many thanks, Laurent; that was it. Running mkmf as follows allows it
to find the function:

    ARCHFLAGS="-arch i386" ruby extconf.rb

Good to know that this workaround works. As a longer term solution
I'll try building a universal binary version of the ANTLR runtime.

Cheers,
Wincent
Thread:
Wincent Colaiuta
Laurent Sansonetti
Wincent Colaiuta
Tim Hunter
Wincent Colaiuta
Wincent Colaiuta
Has

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved