[R] configure error: --with-readline

Peter Dalgaard p.dalgaard at biostat.ku.dk
Tue Nov 7 09:23:27 CET 2006


Anthony Liu <antonyliu2002 at yahoo.com> writes:

> Thanks.
> 
> I do have readline.so.  I just did not paste that part.  Look.
> 
> [myuserid at myhost myuserid]$ slocate readline.so
> /home/scratch/myuserid/usr/local/lib/python2.4/lib-dynload/readline.so
> /home/scratch/myuserid/usr/local/lib/python2.4/libreadline.so.4
> /home/scratch/myuserid/usr/local/lib/python2.4/libreadline.so.4.1
> /home/scratch/myuserid/usr/local/lib/python2.4/libreadline.so.4.2
> /home/scratch/myuserid/usr/local/lib/python2.4/libreadline.so.4.3
> /usr/lib/python2.3/lib-dynload/readline.so
> /lib/libreadline.so.4
> /lib/libreadline.so.4.1
> /lib/libreadline.so.4.2
> /lib/libreadline.so.4.3

No, you don't. Look.

[pd at titmouse2 ~]$ locate readline.so
/usr/lib/libreadline.so    <----------------
/usr/lib/libreadline.so.5
/usr/lib/libreadline.so.5.1
/usr/lib/python2.4/lib-dynload/readline.so

(R's build process is not looking in python's library directory.
Forcing it to do so is not the solution.) Besides, you likely do not
have the header files in /usr/include/readline (or so).

You need to install the readline-devel RPM as Brian told you.

 
> So, I did
> 
> export LD_LIBRARY_PATH=/home/scratch/myuserid/usr/local/lib/python2.4/lib-dynload/readline.so
> 
> It still does not work.
> 
> Didn't you suggest that we do CFLAGS at the following forum?
> 
> http://tolstoy.newcastle.edu.au/R/devel/06/02/4026.html
> 
> Thanks.
> 
> 
> 
> Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote: On Sun, 5 Nov 2006, Anthony Liu wrote:
> 
> > I am trying to install R2.4 in a non-standard folder on a mandrake 10 system.
> >
> > I did this:
> >
> > ./configure --prefix=/the/dir/where/I/want/r/to/go
> >
> > and I got the following error:
> >
> > configure: error: --with-readline=yes (default) and headers/libs are not available
> >
> > I know that I can do
> >
> > --with-readline=no
> >
> > But, I do want this readline feature.  I have a whole bunch of readline libraries:
> >
> > /lib/libreadline.so.4
> > /lib/libreadline.so.4.1
> > /lib/libreadline.so.4.2
> > /lib/libreadline.so.4.3
> 
> But apparently not readline.so, which is what it is looking for.  You are 
> missing the readline-devel (or some such name) RPM: see the R-admin manual 
> for further details.
> 
> [...]


-- 
   O__  ---- Peter Dalgaard             Øster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)                  FAX: (+45) 35327907



More information about the R-help mailing list