我尝试安装R包" RMySQL"在R服务器上。
Install.packages('RMySQL', type='source')
但是有一条错误消息:
Installing package into ‘/data/rstudio5/R/x86_64-pc-linux-gnu-library/3.0’
(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
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package ‘RMySQL’
* removing ‘/data/rstudio5/R/x86_64-pc-linux-gnu-library/3.0/RMySQL’
Warning in install.packages :
installation of package ‘RMySQL’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpoOnKGL/downloaded_packages’
当我尝试在PUTTY上找到config.log时:
less config.log
它没有说这样的文件或目录。
config.log在哪里?我该如何检查? Google上有一些相关主题,但在这种情况下不可行。 http://ubuntuforums.org/showthread.php?t=1441752
答案 0 :(得分:0)
通常有一个./build目录关闭configure所在的位置。我在那里。
在你的情况下应该是 的/ tmp / RtmpoOnKGL / downloaded_packages /构建
我希望有所帮助。