在Ubuntu 14.04上的rgdal安装失败

编程入门 行业动态 更新时间:2024-10-28 10:29:46
本文介绍了在Ubuntu 14.04上的rgdal安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试在运行ubuntu linux 14.04的计算机中安装rgdal.我正在使用的R版本是:3.3.1.我从常规的ubuntu存储库中安装了gdal和相关软件包,并且还使用了ubuntu-gis ppa( launchpad/~ubuntugis/+archive/ubuntu/ppa ).在这两种情况下,编译时我都会得到相同的错误消息:

I am trying to install rgdal in my computer that runs ubuntu linux 14.04. The R version that I am using is: 3.3.1. I installed gdal and related packages from the regular ubuntu repository and also using the ubuntu-gis ppa (launchpad/~ubuntugis/+archive/ubuntu/ppa). In both cases, I've got the same error message while compiling:

gcc -std=gnu99 -I/usr/share/R/include -DNDEBUG -I/usr/include/gdal -I"/home/magdiel/R/x86_64-pc-linux-gnu-library/3.3/sp/include" -fpic -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c inverser.c -o inverser.o inverser.c:3:22: fatal error: projects.h: No existe el archivo o el directorio #include <projects.h> ^ compilation terminated. make: *** [inverser.o] Error 1 ERROR: compilation failed for package ‘rgdal’

我以前没有问题地安装过rgdal,并试图根据R的要求将其更新为较新的版本.

I had rgdal installed before without problem and was trying to update it to a newer version as required for R.

我将非常感谢您的帮助

推荐答案

在2016年2月,在Ubuntu 14.04.2(和R 3.2.2)上,我需要以下各项才能同时获得 rgdal 和互补的(通常非常有用) gdalUtils 软件包:

In February 2016, on Ubuntu 14.04.2 (and with R 3.2.2), I needed the following to get both rgdal and the complementary (and frequently very useful) gdalUtils package installed:

sudo apt-get update sudo apt-get -y install libgdal1h sudo apt-get -y install libgdal1-dev sudo apt-get install libproj-dev sudo apt-get install gdal-bin Rscript 'install.packages(c("rgdal", "gdalUtils"))'

更多推荐

在Ubuntu 14.04上的rgdal安装失败

本文发布于:2023-06-03 08:56:41,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/470181.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Ubuntu   rgdal

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!