Cannot force configure/setup.py to pick up location of readline (SFWrline) on Solaris 10

Chris Miles miles.chris at gmail.com
Sun Oct 15 10:13:14 EDT 2006


Thanks to those who offered suggestions for this.

It appears that building Python 2.4.3 on Solaris 10 with readline 
(SFWrline package) support is a little long-winded but possible, using 
the following steps:

$ ./configure --prefix=/opt/python-2.4.3 --enable-shared
$ vi Modules/Setup.local
--- add one line: ---
readline readline.c -I/opt/sfw/include -L/opt/sfw/lib -lreadline -ltermcap
---------------------
$ make
### will fail with ld error: ###
Undefined                       first referenced
symbol                             in file
initreadline                        ./libpython2.4.so
ld: fatal: Symbol referencing errors. No output written to python
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `python'

### however, just running make again ends up building fine ... ###
$ make
$ make install  # might need root access (sudo/su)

I hope this process can be improved, and if I have time I'll look at why 
make fails half way but works fine when kicked off a second time.

I'd like to get /opt/sfw/ added to the standard lib/include path for 
Solaris (10 at least) as this is where Sun's open-source packages get 
installed.  Is this just a matter of raising a ticket?

Cheers,
Chris


Chris Miles wrote:
> On a standard Solaris 10 installation with Sun-supplied open-source 
> packages installed (like SFWrline for readline libs) I cannot seem to 
> force Python configure/setup.py to build with readline support.

-- 
http://chrismiles.info/




More information about the Python-list mailing list