Skip to content

installing R on Fedora Core 2 test 2

4 messages · Jonathan Baron, Roger D. Peng, Peter Dalgaard +1 more

#
Just a report for those who want to try this.  (Executive
summary: It eventually worked.)

The RPM for Fedora Core 1 did not work because it wanted
libtcl8.3.so and libtk8.3.so, while this distribution had 8.4
instead of 8.3.  I didn't try making soft links, thus pretending
that it had 8.3.  (I'm planning to install the final version of
Core 2 when it comes out soon.  This is a computer I set up
yesterday for grad students to learn about Linux and R.)

I installed from source and that went pretty smoothly, once I
realized my mistake in NOT doing what Martyn Plummer did with
Core 1, which was to install the "workstation" version of Fedora
rather than the "personal" version (or whatever it is called).
As a result, I had to install gcc and lots of other stuff.
Fortunately, Fedora comes with yum, which makes such
installations incredibly easy.  You just say, for example, 

yum install gcc

and its done pretty fast (assuming you have a fast connection).

The one thing I cannot figure out is that readline does not
work.  It was installed, but apparently not detected.  Grepping
config.site for readline gets stuff like this:

configure:21256: checking for rl_callback_read_char in -lreadline
configure:21286: gcc -o conftest -g -O2 -I/usr/local/include
-L/usr/local/lib conftest.c -lreadline  -ldl -lncurses -lm  >&5
/usr/bin/ld: cannot find -lreadline
configure:22002: checking readline/history.h usability
conftest.c:83:30: readline/history.h: No such file or directory
| #include <readline/history.h>
configure:22046: checking readline/history.h presence
conftest.c:49:30: readline/history.h: No such file or directory
[more stuff like this]
ac_cv_header_readline_history_h=no
ac_cv_header_readline_readline_h=no
ac_cv_lib_readline_rl_callback_read_char=no

This is not a huge problem in practice, since ESS under Xemacs
does work fine, and ESS has the main functions of readline.

Jon
#
For readline you are probably missing the development version of 
readline which usually contains the header files.  I think it's still 
called readline-devel but it's been a while for me.

-roger
Jonathan Baron wrote:
#
Jonathan Baron <baron at psych.upenn.edu> writes:
Hm? The usual problem is that people forget to install readline-devel,
but is that the expected error message then? Could you do an rpm -ql
readline and see where the libreadline stuff went to? If you did
forget readline-devel, try that first of course.

BTW, it might be a good idea to see if you can rpm --rebuild from
Martyn's src.rpm. That gives you your very own .rpm, which you can
install and eventually upgrade (which is the point) using the standard
tools.
1 day later
#
On Tue, 2004-04-27 at 17:21, Peter Dalgaard wrote:
The RPM also has a patched shell script that sets LANG=C so you don't
get the warning about utf-8 locales not being supported (This may not
worry you, but try checking an R package and you will see it can be a
problem).

You can check the CAPABILITIES file against my rpm for Fedora 1 (which
you can download from CRAN) to make sure you got everything.

I'll be moving to Fedora 2 when it is released.  But the rapid release
schedule of Fedora, combined with lack of binary compatibility between
versions, does pose problems for me as a binary package maintainer. I
think I will only maintain the current and previous releases at any
given time. 

Martyn