Skip to content

R-beta: R-0.61.3 with readline]

1 message · Peter Dalgaard

#
Jan Kutylowski <janku at ifi.uio.no> writes:
Um, I think you said that the 1st one gave "yes" first time around???
? Strange. I would expect ok compile, but no readline functionality at
the end.
No. Not surprising.
This is because the -L/home/frey/b/janku/lib/sun4/readline doesn't
appear on the linking command.
First check that you actually *have* readline/history.h...
Probably it isn't easy to persuade autoconf to do the right thing. A
better plan should be this:

Start with a clean source tree

(1)
make acclean # just so there are no config.cache or similar files
             # floating around

(2)
./configure

(3)
edit src/include/Platform.h to contain

#define HAVE_LIBREADLINE 1
#define HAVE_READLINE_HISTORY_H 1

(4)
edit src/unix/Makefile to contain

system.o:       system.c ../include/Defn.h
                $(CC) $(CFLAGS) -I/home/frey/b/janku/lib/sun4/ -c system.c

(5)
edit src/main/Makefile to contain

LIBS=-ldl  -ltermcap -lm -L/home/frey/b/janku/lib/sun4/readline -lreadline

#(not quite sure whether it must go last, and whether that might cause
trouble)
Wrong. It could be useful to many people, so I'm Cc-ing this back
to R-help.