|
|
|
|
|
|
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?
|
|
|
|
|
|