Re: [R] R Compilation error on Ubuntu

From: Satoshi Takahama <>
Date: Tue, 25 Dec 2007 01:35:19 -0800 (PST)

Hi Taka,

I was just trying to do this yesterday and ran into the same problem (compiling R 2.6.1 on Gutsy Gibbon). Apparently this happens on Debian/Ubuntu distributions because the developer install is separate from the user install.

Basically, to address the configure error:

"--with-readline=yes (default) and headers/libs are not available"

you need the development version of readline:   sudo apt-get install libreadline5-dev

Later, I ran into another configure error: "--with-x=yes (default) and X11 headers/libs are not available" so I installed xorg-dev:
  sudo apt-get install xorg-dev

At the end, I also got a configure WARNING: "you cannot build info or HTML versions of the R manuals " so then I installed texinfo:
  sudo apt-get install texinfo

Hope this helps,



I bought a new laptop HP dv9500 just a week ago and installed a Ubuntu gutsy ribbon on this laptop. I wanted to install Fedora but there are more threads on Ubuntu, so I decided to install Ubuntu. After hours of struggle in configuring x server/graphic card stuff, I installed R for Gutsy ribbon using "sudo apt-get install g77 r-core'.

Now when I tried to install 'sp' package I got this error message:

Warning in install.packages("sp") : argument 'lib' is missing: using '/usr/local/lib/R/site-library'
--- Please select a CRAN mirror for use in this session --- Loading Tcl/Tk interface ... done
trying URL '' Content type 'application/x-gzip' length 359194 bytes opened URL

downloaded 350Kb

The downloaded packages are in

        /tmp/RtmpfOk3H7/downloaded_packages Warning message:
installation of package 'sp' had non-zero exit status in: install.packages("sp")

Then, I removed this gutsy ribbon version of R and attempted to install fresh R-2.6.1.tar.gz. When I tried to build it, I got this error message:

configure: error: --with-readline=yes (default) and headers/libs are  not

I installed xserver-xorg-dev ok.

I am using Fedora 6 on my desktop and have never seen these above error messages. Should I install a Fedora and R on it? Or should I just  create
a link using 'ln -s'?

I appreciate your help.

[[replacing trailing spam]]

taka mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code.

Never miss a thing. Make Yahoo your home page. mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 25 Dec 2007 - 09:37:25 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 27 Dec 2007 - 14:30:20 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.