由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Statistics版 - 怎么在Centos上面安装R package?
相关主题
大家推荐下学习python,hadoop的网上资源centos seems slower than ubuntu in stat computing
SQL database tool是指哪些东西 (转载)紧急请教各位大牛一个关于R的问题
请问如何在R中读入2亿多行,每行一个0.XX的分数的文件?[转载] Re: SAS plot problem
有没有人用过REvolution R?sas的sql语法
RKWard弱问PROC SQL,SQL,Data Step和SAS的区别和关系
2009年8月版上那个SAS 9.2 (那个10G的) installation problemSAS问题:Sorting若有相同的key,问题1,2
Python能handle了大数据吗?SAS ODBC连接MySQL安装过程小结
请给推荐一个linux下面R的IDE.有没有SAS/R双修的大牛
相关话题的讨论汇总
话题: checking话题: yes话题: rmysql话题: usr话题: package
进入Statistics版参与讨论
1 (共1页)
q**j
发帖数: 10612
1
我有root access。可是从R里面就是不让我安装,说configuration cannot be set这类
的问题。打算装RMySQL。
如果用
sudo yum之类的在terminal下面,又不知道命令是怎么写的?我用yum search RMySQL找
不到文件。
请问高人这个怎么办。
t******g
发帖数: 372
2
http://cran.r-project.org/web/packages/RMySQL/INSTALL

这类
RMySQL找

【在 q**j 的大作中提到】
: 我有root access。可是从R里面就是不让我安装,说configuration cannot be set这类
: 的问题。打算装RMySQL。
: 如果用
: sudo yum之类的在terminal下面,又不知道命令是怎么写的?我用yum search RMySQL找
: 不到文件。
: 请问高人这个怎么办。

q**j
发帖数: 10612
3
多谢。我尝试了,不行。我想因为我的mysql是在另外一个server上面。请问这种情况应
该如何写command?

【在 t******g 的大作中提到】
: http://cran.r-project.org/web/packages/RMySQL/INSTALL
:
: 这类
: RMySQL找

t******g
发帖数: 372
4
于server local与否无关,或者至少给些error log 别人也好知道你尝试了啥,
S/W Requirements:
-----------------
MySQL client library ("libmysqlclient.so") and header files
(see www.mysql.com). For Linux/intel you may use the binary rpms
client+devel+shared, and make sure you also have the header files,
they are *NOT* included in the following
MySQL-client-4.1.7-1.i386.rpm
MySQL-shared-4.1.7-1.i386.rpm
but they are included in the latest 4.1.7 rpm versions.
The library libz. This is a standard library on many (but not all)
systems. Under Red Hat, it's included in the rpm zlib-devel.
I've been told that on debian it's in the zlib1g-dev package.
虚拟机随便run了下
$ R CMD INSTALL RMySQL_0.8-0.tar.gz
* installing to library ‘/home/xxx/R/x86_64-unknown-linux-gnu-library/2.15’
* installing *source* package ‘RMySQL’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for compress in -lz... yes
checking for getopt_long in -lc... yes
checking for mysql_init in -lmysqlclient... yes
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking /usr/local/include/mysql/mysql.h usability... no
checking /usr/local/include/mysql/mysql.h presence... no
checking for /usr/local/include/mysql/mysql.h... no
checking /usr/include/mysql/mysql.h usability... yes
checking /usr/include/mysql/mysql.h presence... yes
checking for /usr/include/mysql/mysql.h... yes
configure: creating ./config.status
config.status: creating src/Makevars
** libs
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mysql -
fpic -O3 -pipe -g -c RS-DBI.c -o RS-DBI.o
gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/mysql -
fpic -O3 -pipe -g -c RS-MySQL.c -o RS-MySQL.o
gcc -std=gnu99 -shared -o RMySQL.so RS-DBI.o RS-MySQL.o -lmysqlclient -lz -L
/usr/lib/R/lib -lR
installing to /home/xxx/R/x86_64-unknown-linux-gnu-library/2.15/RMySQL/libs
** R
** inst
** preparing package for lazy loading
Creating a generic function for ‘format’ from package ‘base’ in package
‘RMySQL’
Creating a generic function for ‘print’ from package ‘base’ in package
‘RMySQL’
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (RMySQL)

况应

【在 q**j 的大作中提到】
: 多谢。我尝试了,不行。我想因为我的mysql是在另外一个server上面。请问这种情况应
: 该如何写command?

1 (共1页)
进入Statistics版参与讨论
相关主题
有没有SAS/R双修的大牛RKWard
mysql 问题2009年8月版上那个SAS 9.2 (那个10G的) installation problem
OraclePython能handle了大数据吗?
[Mysql] how to return NULL count in group by query请给推荐一个linux下面R的IDE.
大家推荐下学习python,hadoop的网上资源centos seems slower than ubuntu in stat computing
SQL database tool是指哪些东西 (转载)紧急请教各位大牛一个关于R的问题
请问如何在R中读入2亿多行,每行一个0.XX的分数的文件?[转载] Re: SAS plot problem
有没有人用过REvolution R?sas的sql语法
相关话题的讨论汇总
话题: checking话题: yes话题: rmysql话题: usr话题: package