相关疑难解决方法(0)

ubuntu 16.04 LTS上的rgdal安装难度

我搜索了一个答案,帮助我的情况避免重复,但无济于事.

我想在ubuntu 16.04 LTS上安装'rgdal'软件包给R. 如果我在R-studio中编码如下

install.packages("rgdal", type = "source")
Run Code Online (Sandbox Code Playgroud)

它给出了以下错误;

Installing package into ‘/home/kocesat/R/x86_64-pc-linux-gnu-library/3.2’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘rgdal’ is not available (for R version 3.2.3)
Run Code Online (Sandbox Code Playgroud)

然后我尝试安装libgdal1-dev,libproj-dev如下

$ sudo apt-get install libgdal1-dev libproj-dev
Run Code Online (Sandbox Code Playgroud)

它成功安装了dev文件.然后我尝试使用相同的命令在R-studio中再次安装"rgdal".它没有再起作用.

然后我安装了自制软件并尝试获取gdal

~$ brew install gdal
Run Code Online (Sandbox Code Playgroud)

它回来了

Error: undefined method `rebuild' for    
#<BottleSpecification:0x000000015ddc60>
Please report this bug:
https://github.com/Linuxbrew/linuxbrew/blob/master/share/doc/homebrew  
/Troubleshooting.md#troubleshooting
/home/kocesat/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula  
/jpeg.rb:9:in `block in <class:Jpeg>'
/home/kocesat/.linuxbrew/Library/Homebrew/software_spec.rb:91:in  
`instance_eval'
/home/kocesat/.linuxbrew/Library/Homebrew/software_spec.rb:91:in `bottle'
/home/kocesat/.linuxbrew/Library/Homebrew/formula.rb:1729:in `bottle'
/home/kocesat/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula
/jpeg.rb:7:in `<class:Jpeg>'
/home/kocesat/.linuxbrew/Library/Taps/homebrew/homebrew-core/Formula
/jpeg.rb:1:in `load_formula'
/home/kocesat/.linuxbrew/Library/Homebrew/formulary.rb:21:in `module_eval'
/home/kocesat/.linuxbrew/Library/Homebrew/formulary.rb:21:in 
`load_formula'
/home/kocesat/.linuxbrew/Library/Homebrew/formulary.rb:34:in
`load_formula_from_path' …
Run Code Online (Sandbox Code Playgroud)

ubuntu r

7
推荐指数
1
解决办法
7234
查看次数

udunits2 R安装:找不到udunits2.h

我正在尝试在R中安装udunits2以满足ggforce包的依赖性.但是,安装程序在检查udunits2时仍然失败.我曾尝试在所述指令这个(udunits 2 devel的安装如图此处.)和螺纹,其产生相同的结果作为试图install.packages('udunits2').

我只是通过安装udunits2-dev就可以让它在我的Mint机器上运行,但是我对Fedora很新,并且我不确定是什么导致了这一点.

系统信息:

Fedora 28,R-3.4.4

编辑

尝试安装时出错install.packages("udunits2", configure.args = "--with-udunits2-lib=/usr/bin/udunits2"):

* installing *source* package ‘udunits2’ ...
** package ‘udunits2’ successfully unpacked and MD5 sums checked
checking for gcc... gcc -m64
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... …
Run Code Online (Sandbox Code Playgroud)

r

5
推荐指数
1
解决办法
1500
查看次数

标签 统计

r ×2

ubuntu ×1