[MacRuby-devel] Re: [ruby] #54: build on Leopard fails on readline
ruby
ruby-noreply at macosforge.org
Thu May 8 01:49:07 PDT 2008
#54: build on Leopard fails on readline
---------------------------------+------------------------------------------
Reporter: edarocket at gmail.com | Owner: lsansonetti at apple.com
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Resolution:
Keywords: readline |
---------------------------------+------------------------------------------
Comment (by eloy.de.enige at gmail.com):
This is most probably a problem that your readline isn't build as a fat
binary and so you can't build fat binaries that link against it.
These problems are always easily recognizable by:
{{{
lipo: can't open input file:
/var/folders/qi/qiRsmsrKFyGifWoVhWoCz++++TM/-Tmp-//ccyYzZ4h.out (No such
file or directory)
}}}
You can check this yourself with `file`. If I use it on the default
readline:
{{{
% file /usr/lib/libreadline.dylib
/usr/lib/libreadline.dylib: Mach-O universal binary with 4 architectures
/usr/lib/libreadline.dylib (for architecture ppc7400): Mach-O dynamically
linked shared library ppc
/usr/lib/libreadline.dylib (for architecture ppc64): Mach-O 64-bit
dynamically linked shared library ppc64
/usr/lib/libreadline.dylib (for architecture i386): Mach-O dynamically
linked shared library i386
/usr/lib/libreadline.dylib (for architecture x86_64): Mach-O 64-bit
dynamically linked shared library x86_64
}}}
As you can see there's support for the archs ppc & i386 which are
necessary to build macruby as a fat binary.
Long story short: Either recompile your readline as a fat binary OR don't
use --enable-fat-binary and only build for your native arch.
--
Ticket URL: <http://ruby.macosforge.org/trac/ticket/54#comment:1>
ruby <http://ruby.macosforge.org/>
More information about the MacRuby-devel
mailing list