[R] Cannot install RMySQL under Kubuntu

Dirk Eddelbuettel edd at debian.org
Wed Apr 5 04:40:45 CEST 2006


On 4 April 2006 at 19:04, Pete Cap wrote:
|  I am attempting to install RMySQL on a Kubuntu box.

Try this:

	$ sudo apt-get install r-cran-rmysql

According to 'apt-cache policy r-cran-rmysql' on my Kubuntu box, breezy has
0.5.5-2.1.  Debian itself now has 0.5.7-1 in testing and unstable.

|  However, I cannot install the RMySQL package in R.  I get the following
|   error:
[...]
|  I cannot find mysql.h or mysql.so anywhere. 

You need the matching -dev package for the library. Typically, any libfoo
will provide the shared library to _run_ apps, but libfoo-dev is needed to
_compile and link_ those apps. 

We encode this via the so-called Build-Depends: in debian/control. Here, you
get (indented for easier reading)

    Build-Depends: debhelper (>>4.1.0), cdbs, r-base-dev (>= 2.0.0), 
		   libmysqlclient15-dev, r-cran-dbi (>= 0.1.8)

Apt can actually autobuild the package for you too if you add source entries
to /etc/apt/sources. That's for another day...

|  Any help would be greatly appreciated.  This is time critical!  

Feel free pay back your gratitude with a donation to the R Foundation, or to
SPI (Debian's umbrella organization)  ;-)

Hope this helps, Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison




More information about the R-help mailing list