Quantcast

Problems compiling missing -lreadline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problems compiling missing -lreadline

Dickerson, Dee
Problems compiling missing -lreadline

I am trying to compile python 2.5.2 on a Suse 10.3 x86-64 machine.  GCC version is 4.2.1. 

Configure completes with no errors and so does the compile but when I try and run I get an error that there is no readline module. 

The entry in config.log related to not finding the readline is:

/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline
conftest.c:219:31: error: readline/readline.h: No such file or directory
| #include <readline/readline.h>
configure:21254: checking for rl_pre_input_hook in -lreadline
configure:21289: gcc -pthread -o conftest -g -O2   conftest.c -lreadline  -lpthread -ldl  -lutil >&5
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline
configure:21325: checking for rl_completion_matches in -lreadline
configure:21360: gcc -pthread -o conftest -g -O2   conftest.c -lreadline  -lpthread -ldl  -lutil >&5
/usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld: cannot find -lreadline
conftest.c:219:31: error: readline/readline.h: No such file or directory
| #include <readline/readline.h>


Dee
_______________________________________________
Dee Dickerson
Engineering & Process Sciences - Process Optimization
Core R&D
The Dow Chemical Company
B-1603
Freeport, Texas 77541
Phone: +1 979-238-4449
[hidden email]



_______________________________________________
Compiler-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/compiler-sig
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems compiling missing -lreadline

Mathieu Prevot-14
2008/9/23 Dickerson, Dee <[hidden email]>:

>
> I am trying to compile python 2.5.2 on a Suse 10.3 x86-64 machine.  GCC
> version is 4.2.1.
>
> Configure completes with no errors and so does the compile but when I try
> and run I get an error that there is no readline module.
>
> The entry in config.log related to not finding the readline is:
>
> /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lreadline
> conftest.c:219:31: error: readline/readline.h: No such file or directory
> | #include <readline/readline.h>
> configure:21254: checking for rl_pre_input_hook in -lreadline
> configure:21289: gcc -pthread -o conftest -g -O2   conftest.c -lreadline
> -lpthread -ldl  -lutil >&5
> /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lreadline
> configure:21325: checking for rl_completion_matches in -lreadline
> configure:21360: gcc -pthread -o conftest -g -O2   conftest.c -lreadline
> -lpthread -ldl  -lutil >&5
> /usr/lib64/gcc/x86_64-suse-linux/4.2.1/../../../../x86_64-suse-linux/bin/ld:
> cannot find -lreadline

No libreadline.so*

> conftest.c:219:31: error: readline/readline.h: No such file or directory
> | #include <readline/readline.h>

This means that readline/readline.h is not in your include directories
(set in the LFLAGS shell variable) nor libreadlines.so (or .so.1 etc)
in /usr/local/lib.

You should check if you have readlines installed (typically in
/usr/local ie you should have /usr/local/include/readline/readline.h
and /usr/local/lib/libreadline.so or something).

Try `locate readline.h` to find the path to your includes if it's
uncommon, update your compiler flags else install readlines (from a
gnu mirror eg http://tinyurl.com/4ooghk).

HTH
Mathieu
_______________________________________________
Compiler-sig mailing list
[hidden email]
http://mail.python.org/mailman/listinfo/compiler-sig
Loading...