簡體   English   中英

安裝lmtest軟件包源

[英]Installing lmtest package source

我想安裝lmtest的源代碼。 我嘗試了以下操作,但出現錯誤。 任何幫助表示贊賞。 謝謝。

> install.packages("https://cran.r-project.org/src/contrib/lmtest_0.9-34.tar.gz", repo=NULL, type="source")

trying URL 'https://cran.r-project.org/src/contrib/lmtest_0.9-34.tar.gz'
Content type 'application/x-gzip' length 180257 bytes (176 KB)
==================================================
downloaded 176 KB

> * installing *source* package ‘lmtest’ ...
> ** package ‘lmtest’ successfully unpacked and MD5 sums checked
> ** libs gfortran-4.8   -fPIC  -g -O2  -c pan.f -o pan.o make: gfortran-4.8: No such file or directory make: *** [pan.o] Error 1
> ERROR: compilation failed for package ‘lmtest’
> * removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/lmtest’
> Warning in install.packages :   installation of package
> ‘/var/folders/z6/1rpmk8d971n2864kd2d514g40000gn/T//RtmpXtgPIq/downloaded_packages/lmtest_0.9-34.tar.gz’
> had non-zero exit status

lmtest取決於car 先前已經發布了一個有關安裝car 相關問題 OP 對解決此問題提供了更多詳細信息

問題之一是gfortran不可用,它是一個系統軟件包。 以我的經驗,“非零退出狀態”一直是因為該程序包依賴於不可用的系統程序包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM