簡體   English   中英

R中的非零退出狀態

[英]Non-Zero Exit Status in R

我有一個典型的非零退出狀態問題,我已經在這個論壇上看到了很多。 但是,我已經嘗試了所有傳統上用來解決此問題的修復程序,但沒有任何效果。 有關完整代碼,請參見下文。 我正在運行Linux Mint OS 64位,最近安裝它是為了運行MATLAB,我懷疑我的問題與此有關。 我之前有32位Linux Mint OX,但沒有這些問題。

嘗試安裝plm時發生新問題。 出現以下腳本,包括底部的錯誤消息,然后R崩潰,這是以前從未發生過的:

* installing *source* package ‘nloptr’ ...
** package ‘nloptr’ 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
checking how to run the C++ preprocessor... g++ -E
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for pkg-config... yes
configure: Now testing for NLopt header file.
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking nlopt.h usability... no
checking nlopt.h presence... no
checking for nlopt.h... no
configure: Need to download and build NLopt
trying URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Error in download.file(url = "http://ab-initio.mit.edu/nlopt/nlopt-  2.4.2.tar.gz",  : 
cannot open URL 'http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz'
Execution halted
/bin/tar: This does not look like a tar archive

gzip:stdin:文件/ bin / tar意外結束:子級返回狀態1 / bin / tar:無法恢復錯誤:正在退出警告消息:在untar(tarfile =“ nlopt-2.4.2.tar.gz”)中: '/ bin / tar -xf'nlopt-2.4.2.tar.gz''返回錯誤代碼2 configure:開始將庫安裝到/tmp/RtmpKVJuVy/R.INSTALL129b11f84296/nloptr/nlopt-2.4.2 ./configure:第3325行:cd:nlopt-2.4.2:沒有此類文件或目錄

原因是程序包使用舊位置。

請執行以下操作,以查看此文件的移動位置。

> curl "http://ab-initio.mit.edu/nlopt/nlopt-2.4.2.tar.gz" -o nlopt-2.4.2.tar.gz
> cat nlopt-2.4.2.tar.gz
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>301 Moved Permanently</title>
</head><body>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz">here</a>.</p>
<hr>
<address>Apache/2.4.10 (Debian) Server at ab-initio.mit.edu Port 80</address>
</body></html>

然后,嘗試下載文件: https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz : https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz

並使用R安裝此軟件包

curl "https://github.com/stevengj/nlopt/releases/download/nlopt-2.4.2/nlopt-2.4.2.tar.gz" -o nlopt-2.4.2.tar.gz
R CMD INSTALL nlopt-2.4.2.tar.gz

暫無
暫無

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

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