【发布时间】:2014-06-15 12:42:47
【问题描述】:
我在尝试安装此软件包时收到上述错误。阅读这个问题install RMySQL for Mac 我阅读了安装指南。
这就是说的:
During installation, RMySQL looks for the MySQL headers and libraries
in the system directories. If these are not installed in system-wide
directories (or if you want to use an alternate MySQL distribution),
you may specify which MySQL directory(ies) to use through one of the
following:
1. The shell variables PKG_CPPFLAGS and PKG_LIBS (using Bourne shell)
export PKG_CPPFLAGS="-I<include-dir>"
export PKG_LIBS="-L<library-dir> -lmysqlclient"
For instance, on some 64 systems (e.g., Linux) you may need to set
export PKG_CPPFALGS="-I/usr/include/mysql"
export PKG_LIBS="-L/usr/lib64/mysql -lmysqlclient"
我浏览过我的电脑,我不相信那些目录存在。
我之前已经在我的 Mac 上安装了 XAMPP,并且想知道由于 XAMPP 使用 MySQL,需要的目录是否在某处?
我可以在某处下载目录吗? 我如何才能找到它们是否已经在我的计算机上?
export PKG_CPPFALGS="-I/usr/include/mysql"
export PKG_LIBS="-L/usr/lib64/mysql -lmysqlclient"
我不知道下一步该做什么?
【问题讨论】:
-
读取RMySQL自带的INSTALL文件。
-
我做到了。我什至在问题中引用了它。安装文件告诉我运行上面的导出命令,但引用的目录似乎不存在
-
它实际上说的是“例如”......
-
对。这就是为什么我尝试在 XAMPP 中查看,因为 MySQL 是通过 XAMPP 安装的。根文件夹似乎不存在或我找不到它们
-
例如意味着您必须根据您的发行版和 MySQL 版本调整说明。也可能是 XAMPP 不够完整,无法与 RMySQL 一起使用。最安全的方法是直接从 MySQL 站点获取 MySQL。
标签: r macos installation