Cannot install readline on Mac OS X

Yitzchak Gale gale at sefer.org
Mon Apr 26 16:31:53 EDT 2010


Hi Judah,

On Mon, Apr 26, 2010 at 8:27 PM, Judah Jacobson wrote:
> This worked for me on Snow Leopard:
> export CFLAGS=-m32
> cabal install readline
> --configure-option=--with-readline-includes=/opt/local/include
> --configure-option=--with-readline-libraries=/opt/local/lib

Thanks. That got me further - but not all the way.
Now readline seemed to build and install OK. But
when I then compiled a program that uses readline,
I got:

Linking pileonText ...
ld: warning: in /opt/local/lib/libreadline.dylib, file was built for
unsupported file format which is not the architecture being linked
(i386)
ld: warning: in /opt/local/lib/libncurses.dylib, file was built for
unsupported file format which is not the architecture being linked
(i386)
ld: warning: in /opt/local/lib/libiconv.dylib, file was built for
unsupported file format which is not the architecture being linked
(i386)
Undefined symbols:
  "_rl_filename_quote_characters", referenced from:
      _rl_filename_quote_characters$non_lazy_ptr in
libHSreadline-1.0.1.0.a(Readline.o)

<hundreds more undefined symbols>

I made sure that all of the .o and .hi files were deleted
for the modules being compiled. No FFI involved.

Thanks,
Yitz


More information about the Libraries mailing list