gpt4 book ai didi

r - 安装 RMySQL 时出错

转载 作者:行者123 更新时间:2023-12-05 00:25:25 28 4
gpt4 key购买 nike

在我的 Linux 机器上安装 RMySQL 花费了大量时间,但我能够在更改环境变量并复制和粘贴 lib.dll 文件后安装它。

但是,我现在正在尝试在我的 64 位窗口机器上安装 RMySQL,但到目前为止两天还没有任何进展。它在“运行命令 sh ./configure.win 出现状态 127 错误后崩溃了,我找不到这意味着什么。

任何人都可以对此有所了解吗?

install.packages('RMySQL',type='source') 
Installing package into ‘C:/Users/chu/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/RMySQL_0.9-3.tar.gz'
Content type 'application/x-gzip' length 165363 bytes (161 Kb)
opened URL
downloaded 161 Kb

* installing *source* package 'RMySQL' ...
** package 'RMySQL' successfully unpacked and MD5 sums checked
Warning: running command 'sh ./configure.win' had status 127
ERROR: configuration failed for package 'RMySQL'
* removing 'C:/Users/chu/Documents/R/win-library/3.1/RMySQL'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\chu\Documents\R\win-library\3.1" C:\Users\chu\AppData\Local\Temp\RtmpKA9e7I/downloaded_packages/RMySQL_0.9-3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status

The downloaded source packages are in
‘C:\Users\chu\AppData\Local\Temp\RtmpKA9e7I\downloaded_packages’

最佳答案

对于 linux 用户..
首先安装-libmysql

sudo apt-get install libmysql++-dev

然后尝试。

关于r - 安装 RMySQL 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24379743/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com