[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1, MacOSX, and readline
- From: Klaus Ripke <paul-lua@...>
- Date: Sat, 18 Feb 2006 19:44:09 +0100
hi
On Sat, Feb 18, 2006 at 11:03:14AM -0700, Gavin Kistner wrote:
> I'm trying to get Lua 5.1 working with readline on MacOS X (10.4.5).
> Unfortunately, it's been over 10 years since I programmed in C, and
> though
> * I've seen posts claiming that MacOS 10.4 has readline installed
> by default...
well at least a 10.4.5 upgraded from 10.4.3 (with XCode) has
$ ls -l /usr/lib/libreadline.dylib
lrwxr-xr-x 1 root wheel 13 Jul 13 2005 /usr/lib/libreadline.dylib -> libedit.dylib
Is that missing on your system?
> * I've downloaded and built gnu readline 5.1 successfully to get it
> working with Ruby's 'irb'
> * I've tried the make command listed here: http://lua-users.org/
> lists/lua-l/2006-01/msg00200.html
you got the mail by Gus, no?
to be even more detailled, in src/Makefile change:
macosx:
$(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
# use this on Mac OS X 10.4
# $(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline"
to:
macosx:
# $(MAKE) all MYCFLAGS=-DLUA_USE_MACOSX
# use this on Mac OS X 10.4
$(MAKE) all MYCFLAGS="-DLUA_USE_MACOSX -DLUA_USE_READLINE" MYLIBS="-lreadline"
then
make macosx
thats all
> * I've tried copying the readline-5.1 src into lua-5.1/src/readline
> and lua-5.1/readline, while adding the LUA_USE_READLINE #define to
> luaconf.h
> ...all of the above failed. Really I'm just stabbing in the dark.
failed how?
> Can someone provide the explicit instructions that someone who hasn't
> used *any* compiled language since 1998 needs to build lua 5.1 with
> readline support under MacOS X v10.4.5? I don't really care if it's
> using Apple's own readline, pseudo-readline lib, or building and
> using gnu readline 4.0 or 5.1. I'd just like the fscking up-arrow key
> to work in the command-line lua interpreter. (Getting the 'advenced'
> readline patch to work for fun autocompletion is an optional bonus.)
It's working like a charme.
cheers
Klaus