473,396 Members | 2,036 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

readline installation problem

Hi, I tried to install python2.4.2. Unfortunately building 'readline'
extension failed.

Here is what I got: (It is a bit long. If you are impatient, please look
at the end where it reports the warning.)

building 'readline' extension
gcc -pthread -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC
-fno-strict-aliasing -I. -I/nfs/gs/home/jianq/Python-2.4.2/./Include
-I/gs/home/jianq/include -I/usr/local/include
-I/nfs/gs/home/jianq/Python-2.4.2/Include
-I/nfs/gs/home/jianq/Python-2.4.2 -c
/nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c -o
build/temp.linux-i686-2.4/readline.o
In file included from /gs/home/jianq/include/readline/readline.h:37,
from
/nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c:27:
/gs/home/jianq/include/readline/rltypedefs.h:35: warning: function
declaration isn't a prototype
/gs/home/jianq/include/readline/rltypedefs.h:36: warning: function
declaration isn't a prototype
/gs/home/jianq/include/readline/rltypedefs.h:37: warning: function
declaration isn't a prototype
/gs/home/jianq/include/readline/rltypedefs.h:38: warning: function
declaration isn't a prototype
In file included from /nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c:27:
/gs/home/jianq/include/readline/readline.h:375: warning: function
declaration isn't a prototype
/nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c: In function
`flex_complete':
/nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c:675: warning:
implicit declaration of function `completion_matches'
/nfs/gs/home/jianq/Python-2.4.2/Modules/readline.c:675: warning: return
makes pointer from integer without a cast
gcc -pthread -shared build/temp.linux-i686-2.4/readline.o
-L/usr/lib/termcap -L/gs/home/jianq/lib -L/usr/local/lib -lreadline
-lncurses -o build/lib.linux-i686-2.4/readline.so
*** WARNING: renaming "readline" since importing it failed:
libreadline.so.5: cannot open shared object file: No such file or directory

It complains that libreadline.so.5 does not exist. However, I have
libreadline.so.5 installed at /gs/home/jianq/lib which is among the
linking path (-L/gs/home/jianq/lib).

I have been struggling with this for a long time and sincerely hope that
someone can help me with this.

Thanks,

Jian
Sep 28 '05 #1
1 4390
Hi Jian,

I just struggled with the same problem - seems the python 2.4.2 does
not recognise readline 5

I finally "solved" the problem by installing readline 4.2, and
explicitly pointing out to configure where the readline library is

../configure --with-libs=/usr/local/lib/libreadline.a

That finally made it work ...

Cheers
Jesper

Oct 8 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Russell E. Owen | last post by:
At one time, mixing for x in file and readline was dangerous. For example: for line in file: # read some lines from a file, then break nextline = readline() # bad would not do what a naive...
3
by: michele.simionato | last post by:
This a case where the documentation is lacking. The standard library documentation (http://www.python.org/dev/doc/devel/lib/module-rlcompleter.html) gives this example try: import readline...
0
by: John C. Worsley | last post by:
I've got an extremely inscrutable problem here using Perl's Term::ReadLine::Gnu module. I'm using Perl 5.8.0, readline 4.3 and Term::ReadLine::Gnu 1.14. The problem is specific to catching INT...
2
by: Chris Miles | last post by:
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...
7
by: Ron Garret | last post by:
I have installed Python 2.5 on my new Intel Mac but I can't for the life of me get readline to work. I have libreadline installed, I've tried copying readline.so from my Python 2.3 installation...
3
by: snewman18 | last post by:
I compiled Python from source on a bunch of my development machines without enabling the readline modules. Is it possible to add readline support after installation? I really just want to get my...
0
by: Akira Kitada | last post by:
Hi list, I was trying to build Python 2.6 on FreeBSD 4.11 and found it failed to build some of the modules. """ Failed to find the necessary bits to build these modules: _bsddb ...
0
by: M.-A. Lemburg | last post by:
On 2008-10-25 08:39, Akira Kitada wrote: Please post a bug report on python.org about these failures. The multiprocessing module is still fairly new and obviously needs more fine tuning for...
0
by: Akira Kitada | last post by:
Hi Marc-Andre, Thanks for the suggestion. I opened a ticket for this issue: http://bugs.python.org/issue4204 Now I understand the state of the multiprocessing module, but it's too bad to see...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.