Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon ec2 rgdal赢得';t安装在AWS RStudio AMI上_Amazon Ec2_Gdal_Amazon Ami_Rstudio Server_Rgdal - Fatal编程技术网

Amazon ec2 rgdal赢得';t安装在AWS RStudio AMI上

Amazon ec2 rgdal赢得';t安装在AWS RStudio AMI上,amazon-ec2,gdal,amazon-ami,rstudio-server,rgdal,Amazon Ec2,Gdal,Amazon Ami,Rstudio Server,Rgdal,我成功地启动了最新的RStudio AWS EC2实例(louisaslett.com,RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64)。在本例中,R的运行与预期基本一致,我可以安装和打开许多软件包。但是,如果我尝试安装gdalUtils包的任何一个rgdal,就会出现错误 下面是我尝试安装rgdal时的控制台输出。gdalUtils安装的输出太长,无法包含在此处,但两者都包含文本“error:upgrade GDAL to 1.11.4或更高版本”,我怀疑

我成功地启动了最新的RStudio AWS EC2实例(louisaslett.com,RStudio-1.1383_R-3.4.2…ubuntu-16.04-LTS-64)。在本例中,R的运行与预期基本一致,我可以安装和打开许多软件包。但是,如果我尝试安装gdalUtils包的任何一个rgdal,就会出现错误

下面是我尝试安装rgdal时的控制台输出。gdalUtils安装的输出太长,无法包含在此处,但两者都包含文本“error:upgrade GDAL to 1.11.4或更高版本”,我怀疑这是问题所在,但不知道如何更正。 如有任何想法或建议,将不胜感激

干杯

> install.packages("rgdal")
Installing package into ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rgdal_1.3-3.tar.gz'
Content type 'application/x-gzip' length 1670656 bytes (1.6 MB)
==================================================
downloaded 1.6 MB
* installing *source* package ‘rgdal’ ...
** package ‘rgdal’ successfully unpacked and MD5 sums checked
checking for g++... g++
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 g++ accepts -g... yes
configure: CC: gcc -std=gnu99
configure: CXX: g++
configure: rgdal: 1.3-3
checking for /usr/bin/svnversion... yes
configure: svn revision: 759
checking whether g++ supports C++11 features by default... no
checking whether g++ supports C++11 features with -std=gnu++11... yes
configure: C++11 support available
checking for gdal-config... /usr/bin/gdal-config
checking gdal-config usability... yes
configure: GDAL: 1.11.3
checking GDAL version >= 1.11.4... no
configure: error: upgrade GDAL to 1.11.4 or later
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/rstudio/R/x86_64-pc-linux-gnu-library/3.4/rgdal’
Warning in install.packages :
  installation of package ‘rgdal’ had non-zero exit status
The downloaded source packages are in
        ‘/tmp/RtmpGUxbcA/downloaded_packages’

在谷歌云上运行Rstudio之后,我也遇到了同样的问题。在这两种情况下,解决方案都相对简单——从cran()安装一个最新但较旧的rgdal包,它不依赖于最新的gdal库,因此安装时不会抛出升级gdal的错误

发现此说明对如何从归档文件```packageurl安装很有用