RMySQL: installing problems
Hi, Don't know if this is the right place but...
So I am trying to install RMysql, it's an R package to talk to MySQL. Well, when I try to install it from the source ie Code:
R CMD INSTALL RMySQL.tar.gz here is a link to my question submitted to the R forum. http://www.nabble.com/RMySQL-Suse-10...-t1902434.html |
Could you explain what an R package is? Is is the statistical analysis package or does it have something to do with ISDN?
I'm not familiar with the "R CMD INSTALL" command, but it might be looking for the mysql socket rather than the mysql command itself. Or it might be examining the /etc/my.cnf file. Most likely, the R CMD INSTALL command untars the tarball, runs the configure program and then make && make install. If that is the case, use the: --with-mysql-dir=MYSQL_DIR specifies an existing MySQL base dir --with-mysql-inc=MYSQL_INC specifies an existing MySQL include dir --with-mysql-lib=MYSQL_LIB specifies an existing MySQL lib dir options. From the configure.in file: Code:
dnl 2. We check for mysql.h and -lmysqlclient in system directories, and if Code:
MYSQL_LIB=/usr/lib/mysql ( or /usr/lib64/mysql depending on your architecture ) I don't know about MYSQL_INC, That one sounds like it would be from the mysql source. |
So an R package is just like a CPAN package for Perl. I guess I should call it a module/library. R being a statiscial programming language.
I tried the Quote:
I am sorry I didn't get back earlier, I was away from the internet. :cry: I don't know or see what I am doing wrong. I'm on a x86 and everything is standard so it should all work!?!?!? |
Umm maybe this will help?
Code:
dios:~ # R CMD INSTALL RMySQL_0.5-7.tar.gz |
I love comming back to my old threads and seeing what I did wrong. Well if anyone stumbles across this and doesn't know what to do you probably didn't install the mysql dbi library. In ubuntu/debian this would be:
Code:
sudo apt-get install libdbd-mysql libmysqlclient16-dev |
Update on this-
installing libdbd-mysql and libmysqlclient-dev solved this problem for me. |
All times are GMT -5. The time now is 08:33 PM. |