R-beta: [ajanku@ulrik.uio.no: R-0.61.3 with readline]

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri May 8 15:21:47 CEST 1998

Martin Maechler <maechler at stat.math.ethz.ch> writes:

> 	checking for main in -lreadline... yes
> but not this
> 	checking for readline/history.h... no
> so compilation fails.

Actually, that's not enough to cause compilation failure. The biostats
server has exactly the same set of configure responses. The latter one
only means that R can't save the command history so that you can't
access commands from an earlier session.

I bet the problem is that gcc cannot find the include files for
readline. The way to fix that is

a) figure out where readline.h is at. Let's say it's in

b) modify the makefile so that while compiling system.c, gcc will look
in the relevant directory. That would be: modify src/unix/Makefile so
that the relevant lines say

system.o:       system.c ../include/Defn.h
                $(CC) $(CFLAGS) -I/opt/gnu -c system.c

It's a bit annoying that configure can't figure it out by itself, but
on the other hand, there are limits to how many strange places it
should investigate for possible system files.

   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list