簡體   English   中英

R中安裝agricolae軟件包的問題(軟件包的安裝具有非零退出狀態)

[英]problem with installation of agricolae package (installation of package had non-zero exit status) in R

美好的一天。 我對agricolae軟件包的安裝有問題(R版本是3.2.3),當我輸入install.packages("agricolae")我有以下問題:

 Installing package into 'C:/Users/(User name)/Documents/R/win-library/3.2' (as 'lib' is unspecified) Warning in install.packages : dependency 'spdep' is not available also installing the dependencies 'httpuv', 'later', 'promises', 'shiny', 'miniUI', 'questionr', 'klaR' There are binary versions available but the source versions are later: binary source needs_compilation httpuv 1.3.3 1.4.5 TRUE shiny 1.0.2 1.1.0 FALSE miniUI 0.1.1 0.1.1.1 FALSE questionr 0.6.0 0.6.3 FALSE klaR 0.6-12 0.6-14 FALSE agricolae 1.2-4 1.2-8 FALSE Do you want to install from sources the package which needs compilation? y/n: y Packages which are only available in source form, and may need compilation of C/C++/Fortran: 'later' 'promises' Do you want to attempt to install these from sources? y/n: y installing the source packages 'httpuv', 'later', 'promises', 'shiny', 'miniUI', 'questionr', 'klaR', 'agricolae' 

下載所有軟件包后,Rstudio向我展示了這一點:

 * installing *source* package 'later' ... ** package 'later' successfully unpacked and MD5 sums checked ********************************************** WARNING: this package has a configure script It probably needs manual configuration ********************************************** 

**庫

***拱-i386

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c RcppExports.cpp -o RcppExports.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c callback_registry.cpp -o callback_registry.o

gcc -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(用戶名)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O3 -Wall -std = gnu99 -mtune = core2 -c init.c -o init.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 / include“ -O2 -Wall -mtune = core2 -c Later.cpp -o Later.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c Later_native.cpp -o Later_native.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c Later_posix.cpp -o Later_posix.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c Later_win32.cpp -o Later_win32.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c timer_posix.cpp -o timer_posix.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c timestamp_unix.cpp -o timestamp_unix.o

g ++ -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(User name)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O2 -Wall -mtune = core2 -c timestamp_win32.cpp -o timestamp_win32.o

gcc -m32 -I“ C:/PROGRA~1/R/R-32~1.3/include” -DNDEBUG -DTHREADS_H_SUPPORT = -1 -I“ C:/ Users /(用戶名)/ Documents / R / win-library /3.2/Rcpp/include“ -I” C:/用戶/(用戶名)/Documents/R/win-library/3.2/BH/include“ -I” d:/ RCompile / r-compiling / local / local323 /包括” -O3 -Wall -std = gnu99 -mtune = core2 -c tinycthread / tinycthread.c -o tinycthread / tinycthread.o

g ++ -m32 -shared -s -static-libgcc -o Later.dll tmp.def RcppExports.o callback_registry.o init.o Later.o Later_native.o Later_posix.o Later_win32.o timer_posix.o timestamp_unix.o timestamp_win32.o。 /tinycthread/tinycthread.o -Ld:/ RCompile / r-compiling / local / local323 / lib / i386 -Ld:/ RCompile / r-compiling / local / local323 / lib -LC:/ PROGRA〜1 / R / R- 32〜1.3 / bin / i386 -lR

./tinycthread/tinycthread.o:tinycthread.c:(.text+0x5a9):對'_imp___ftime_s'的未定義引用

./tinycthread/tinycthread.o:tinycthread.c:(.text+0x9b0):對'_imp___ftime_s'的未定義引用

./tinycthread/tinycthread.o:tinycthread.c:(.text+0xbc9):對'_imp___ftime_s'的未定義引用

./tinycthread/tinycthread.o:tinycthread.c:(.text+0xec9):對'_imp___ftime_s'的未定義引用

collect2:ld返回1退出狀態

沒有創建DLL

錯誤:包“以后”的編譯失敗

刪除'C:/ Users /(用戶名)/Documents/R/win-library/3.2/later'

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / later_0.7.5.tar.gz'的狀態為1

install.packages中的警告:軟件包“后來”的安裝具有非零退出狀態錯誤:依賴項“后來”不適用於軟件包“承諾”,刪除了“ C:/ Users /(用戶名)/ Documents / R / win-庫/ 3.2 /用

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / promises_1.0.1.tar.gz'的狀態為1

install.packages中的警告:軟件包“ promises”的安裝具有非零退出狀態錯誤:依賴項“ promises”,“以后”不適用於軟件包“ httpuv”,刪除了“ C:/ Users /(User name)/ Documents / R /贏庫/ 3.2 / httpuv”

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / httpuv_1.4.5.tar.gz'的狀態為1

install.packages中的警告:軟件包“ httpuv”的安裝具有非零退出狀態錯誤:依賴項“ httpuv”,“以后”,“承諾”不適用於軟件包“ shiny”,刪除了“ C:/ Users /(用戶名)/Documents/R/win-library/3.2/shiny”

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / shiny_1.1.0.tar.gz'的狀態為1

install.packages中的警告:軟件包“ shiny”的安裝退出狀態為非零

錯誤:依賴項“ shiny”不可用於軟件包“ miniUI”,從而刪除“ C:/ Users /(用戶名)/Documents/R/win-library/3.2/miniUI”

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / miniUI_0.1.1.1.tar.gz'的狀態為1

install.packages中的警告:軟件包“ miniUI”的安裝具有非零退出狀態錯誤:依賴項“ shiny”,“ miniUI”不適用於軟件包“ questionr”

刪除install.packages中的'C:/ Users /(用戶名)/Documents/R/win-library/3.2/questionr'警告:

運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD安裝-l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win-library \\ 3.2” C :\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / questionr_0.6.3.tar.gz'的狀態為1

install.packages中的警告:軟件包“ questionr”的安裝具有非零退出狀態錯誤:依賴項“ questionr”不可用於軟件包“ klaR”

刪除'C:/ Users /(用戶名)/Documents/R/win-library/3.2/klaR'

install.packages中的警告:正在運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD INSTALL -l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win -library \\ 3.2“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / klaR_0.6-14.tar.gz'的狀態為1

install.packages中的警告:軟件包“ klaR”的安裝具有非零退出狀態錯誤:依賴項“ klaR”,“ spdep”不適用於軟件包“ agricolae”

刪除'C:/ Users /(用戶名)/Documents/R/win-library/3.2/agricolae'

install.packages中的警告:

運行命令'“ C:/PROGRA~1/R/R-32~1.3/bin/x64/R” CMD安裝-l“ C:\\ Users(用戶名)\\ Documents \\ R \\ win-library \\ 3.2” C :\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE / downloaded_pa​​ckages / agricolae_1.2-8.tar.gz'的狀態為1

install.packages中的警告:

軟件包“ agricolae”的安裝退出狀態為非零

下載的源程序包位於“ C:\\ Users(用戶名)\\ AppData \\ Local \\ Temp \\ Rtmpi439vE \\ downloaded_pa​​ckages”中

有什么想法如何解決嗎? 謝謝!

R版本有問題。 嘗試將R安裝更新到> = 3.5,就可以了。

暫無
暫無

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

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