Share

Java Readline

Tracker: Feature Requests

5 Build on OS X - ID: 1230592
Last Update: Comment added ( dsmiley )

It'd be nice if JavaReadline had a more flexible build system, like an
autoconf-based one.

Specifically, I'd like it to build out of the box on my OS X machine.
It's a pretty normal one, as far as OS X machines go:

- GNU readline is installed in /sw/lib and /sw/include (via fink)
- Linking is done via "gcc --dylib", not "gcc -shared"
- The shared library should be installed to /Library/Java/Extensions/
libsvnjavahl.jnilib
- The jar should be installed to /Library/Java/Extensions/libreadline-
java.jar

There should probably be a note in the readme also that, on OS X, if
readline is not found (it isn't shipped for licensing reasons), a "sudo
fink install readline5" will make it go. Assuming you have fink
installed, which most people do.


Scott Lamb ( slamb ) - 2005-06-30 20:56

5

Open

None

Nobody/Anonymous

None

None

Public


Comments ( 2 )




Date: 2007-05-25 03:14
Sender: dsmiley


I second this comment. I use Mac OS X and got here via
http://docs.codehaus.org/display/GROOVY/Running hoping to simply build this
thing and install it for use with Groovy. I have been unsuccessfull and I
don't know what to do. I'm using CVS head, and I tried to install it
(using OS_FLAVOR = MAC in Makefile) but ultimately I got errors. After a
bunch of warnings from "ld", I got:
/usr/bin/libtool: internal link edit command failed
make[3]: *** [../../libJavaReadline.jnilib] Error 1
make[2]: *** [JavaReadline] Error 2
make[1]: *** [native] Error 2
make: *** [build-native] Error 2

Ah well.


Date: 2006-05-03 20:51
Sender: ianpAccepting Donations

Logged In: YES
user_id=38836

I have a "works for me" grade solution to this issue. It
will probably take me a couple of days more to get chance to
test it enough to submit a patch.

If you're interested: it is based on the existing makefiles
and the built in Mac OS X readline implementation (which is
actually JavaEditline, but is installed in a slightly funky
manner).

I'll send a patch to the developers and post it to this FR
in the next few days.


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.