Re: readline extension status?

From: Date: Thu, 28 Dec 2000 13:07:35 +0000
Subject: Re: readline extension status?
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-42390@lists.php.net to get a copy of this message
Zeev Suraski wrote: > Yeah, pretty much. Stallman is being a bit more strict than what he's > allowed by law, and says that you can't even distribute *source code* > that's compatible with GPL'd code. But as you can see from examples like > the DBM module, this approach has no grounds in reality. http://www.google.com/search?q=readline+replacement http://subversion.tigris.org/subversion-dev/14/msg00007.html Just call it a Skunkware getline extension instead of a readline extension and you are set. Check the other GPLed extensions individually, though. There is more stuff and that would be harder to replace. Seems that getline was written as part of ncftp, having the same RMS problem as PHP. http://www.biostat.washington.edu/biostat/computing/DebDocs/ncftp/READLINE-README http://www.mit.edu/afs/sipb/project/sipbsrc/src/ncftp/README Part A. Installing with a command line editor: ---------------------------------------------- As of this release, GNU Readline and Chris Thewalt's Getline command-line editing and history facilities are supported. Neither are included with the ncftp sources. You can find Getline at: ce.berkeley.edu:/pub/thewalt/getline.tar.Z (note: use 'ls', not 'dir!') and Readline is in the directory: prep.ai.mit.edu:/pub/gnu To install Readline, you will need to know where libreadline.a and the header <readline/readline.h> are. You will need to link libreadline.a and libcurses.a (or libtermcap.a) with ncftp (see the Makefile). Good luck on trying to compile it. It is not an easy thing to do! In the Makefile, you will need to add -DREADLINE to PDEFS, add -lreadline -lcurses to LIBS, and edit the HDRDIRS and LIBDIRS lines. This stuff is already in the Makefile, so you can just uncomment it. To install Getline, you need to know where libgetline.a and it's header (getline.h) are. In the Makefile, you'll need to add -lgetline to LIBS and edit the HDRDIRS and LIBDIRS lines. This stuff is already in the Makefile, so you can just uncomment it. DO NOT bug me if you can't figure out how to compile Getline or Readline. Contact their respective authors instead. It is not essential that you use them. Kristian -- Kristian Köhntopp, NetUSE AG Siemenswall, D-24107 Kiel Tel: +49 431 386 436 00, Fax: +49 431 386 435 99 Using PHP3? See our web development library at http://phplib.netuse.de/

« previous php.dev (#42390) next »