Error-make: *** [arma.o] 오류 1 , forecast 패키지 설치시 에러 해결하기

CODEDRAGON Development/Big Data, R, ...

반응형

 

 

forecast 패키지 설치시 에러 해결하기

 

 

오류메시지

> install.packages("forecast")
Installing package into ‘C:/Users/codedragon/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
also installing the dependencies ‘xts’, ‘TTR’, ‘quadprog’, ‘quantmod’, ‘tseries’, ‘fracdiff’, ‘lmtest’, ‘zoo’, ‘timeDate’, ‘RcppArmadillo’

There is a binary version available but the source version is later:
         binary  source needs_compilation
tseries 0.10-42 0.10-43              TRUE

Do you want to install from sources the package which needs compilation?
y/n: y
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/xts_0.10-1.zip'
Content type 'application/zip' length 738281 bytes (720 KB)
downloaded 720 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/TTR_0.23-3.zip'
Content type 'application/zip' length 444703 bytes (434 KB)
downloaded 434 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/quadprog_1.5-5.zip'
Content type 'application/zip' length 53278 bytes (52 KB)
downloaded 52 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/quantmod_0.4-12.zip'
Content type 'application/zip' length 487187 bytes (475 KB)
downloaded 475 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/fracdiff_1.4-2.zip'
Content type 'application/zip' length 107765 bytes (105 KB)
downloaded 105 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/lmtest_0.9-35.zip'
Content type 'application/zip' length 289028 bytes (282 KB)
downloaded 282 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/zoo_1.8-1.zip'
Content type 'application/zip' length 915592 bytes (894 KB)
downloaded 894 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/timeDate_3042.101.zip'
Content type 'application/zip' length 807076 bytes (788 KB)
downloaded 788 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/RcppArmadillo_0.8.300.1.0.zip'
Content type 'application/zip' length 2190773 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/forecast_8.2.zip'
Content type 'application/zip' length 2233784 bytes (2.1 MB)
downloaded 2.1 MB

package xts successfully unpacked and MD5 sums checked
package ‘TTR’ successfully unpacked and MD5 sums checked
package ‘quadprog’ successfully unpacked and MD5 sums checked
package ‘quantmod’ successfully unpacked and MD5 sums checked
package ‘fracdiff’ successfully unpacked and MD5 sums checked
package ‘lmtest’ successfully unpacked and MD5 sums checked
package ‘zoo’ successfully unpacked and MD5 sums checked
package ‘timeDate’ successfully unpacked and MD5 sums checked
package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked
package ‘forecast’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
        C:\Users\Public\Documents\ESTsoft\CreatorTemp\RtmpYzXN1R\downloaded_packages
installing the source package ‘tseries’

trying URL 'https://cran.rstudio.com/src/contrib/tseries_0.10-43.tar.gz'
Content type 'application/x-gzip' length 164508 bytes (160 KB)
downloaded 160 KB

* installing *source* package 'tseries' ...
**
패키지 'tseries' 성공적으로 압축해제되었고, MD5 sums 확인되었습니다
** libs
C:/PROGRA~1/R/R-34~1.3/etc/x64/Makeconf:230:
경고: 타겟 `.m.o' 대한 명령어보다 다른 것이 우선합니다
C:/PROGRA~1/R/R-34~1.3/etc/x64/Makeconf:223:
경고: 타겟 `.m.o' 대한 과거 명령어들을 무시합니다
c:/Rtools/mingw_64/bin/gcc  -I"C:/PROGRA~1/R/R-34~1.3/include" -DNDEBUG          -O2 -Wall  -std=gnu99 -mtune=generic -c arma.c -o arma.o
지정된 경로를 찾을 없습니다.
make: *** [arma.o]
오류 1
경고: 명령 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.3/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-34~1.3/share/make/winshlib.mk" SHLIB="tseries.dll" SHLIB_LIBADD='$(FLIBS)' WIN=64 TCLBIN=64 OBJECTS="arma.o bdstest.o boot.o dsumsl.o formats.o garch.o init.o ppsum.o tsutils.o"' 실행으로 상태 2 되었습니다
ERROR: compilation failed for package 'tseries'
* removing 'C:/Users/prons/Documents/R/win-library/3.4/tseries'
In R CMD INSTALL
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\prons\Documents\R\win-library\3.4" C:\Users\Public\Documents\ESTsoft\CreatorTemp\RtmpYzXN1R/downloaded_packages/tseries_0.10-43.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘tseries’ had non-zero exit status

The downloaded source packages are in
        ‘C:\Users\Public\Documents\ESTsoft\CreatorTemp\RtmpYzXN1R\downloaded_packages’

 

 

 

> library(forecast)
Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 ‘tseries’
이라고 불리는 패키지가 없습니다
> require(forecast)
필요한 패키지를 로딩중입니다: forecast
Error: package or namespace load failed for ‘forecast’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
 ‘tseries’
이라고 불리는 패키지가 없습니다

>

 

 


해결방법

Rtools 설치해 줍니다.

http://codedragon.tistory.com/6865

 

반응형