在R relateding stringr package

时间:2015-08-31 11:18:58

标签: linux r package mint

我在RStudio中安装软件包时遇到问题。 我正在使用Linux Mint并且已经安装了libgdal-dev和libproj-dev。

这是终端中的文字:

* installing *source* package ‘stringi’ ...
** package ‘stringi’ successfully unpacked and MD5 sums checked
checking for local ICUDT_DIR... icu55/data
checking for R_HOME... /usr/lib/R
checking for R... /usr/lib/R/bin/R
checking for R >= 3.1.0... no
*** disabling C++11 use
checking for cat... /bin/cat
checking for gcc... gcc -std=gnu99
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc -std=gnu99 accepts -g... yes
checking for gcc -std=gnu99 option to accept ISO C89... none needed
checking how to run the C preprocessor... g++ -E
configure: error: in `/tmp/Rtmp3NFJZN/R.INSTALL28c32774afde/stringi':
configure: error: C preprocessor "g++ -E" fails sanity check
See `config.log' for more details
ERROR: configuration failed for package ‘stringi’
* removing ‘/home/varum/R/x86_64-pc-linux-gnu-library/3.0/stringi’

Warning in install.packages :
  installation of package ‘stringi’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmpv9QKWM/downloaded_packages’

问题出在哪里?

2 个答案:

答案 0 :(得分:0)

  

检查R> = 3.1.0 ...否

更新您的R版本可能会有所帮助。当前版本是版本3.2.2

检查安装指南here

答案 1 :(得分:0)

也许安装g ++可以帮助

sudo apt-get install g++