2017-02-12 2 views
0

에 "슬램"패키지를 설치할 수 없습니다 :"TM", "NLP"또는으로 "TM"패키지를 설치 R 3.3.2 (맥 OS 시에라)

install.packages("tm", dependencies = TRUE) 

다음과 같은 출력 실패 :

During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘NLP’ ... 
** package ‘NLP’ successfully unpacked and MD5 sums checked 
** R 
** inst 
** preparing package for lazy loading 
** help 
*** installing help indices 
** building package indices 
** testing if installed package can be loaded 
*** arch - R 
ERROR: sub-architecture 'R' is not installed 
*** arch - R.html 
ERROR: sub-architecture 'R.html' is not installed 
ERROR: loading failed for ‘R’, ‘R.html’ 
* removing ‘/usr/local/lib/R/3.3/site-library/NLP’ 
During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘slam’ ... 
** package ‘slam’ successfully unpacked and MD5 sums checked 
** libs 
make: *** No rule to make target `apply.o', needed by `slam.so'. Stop. 
*** arch - R.html 
Warning in file(con, "r") : 
    cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory 
Error in file(con, "r") : cannot open the connection 
* removing ‘/usr/local/lib/R/3.3/site-library/slam’ 
During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘filehash’ ... 
** package ‘filehash’ successfully unpacked and MD5 sums checked 
** libs 
make: *** No rule to make target `hash.o', needed by `filehash.so'. Stop. 
*** arch - R.html 
Warning in file(con, "r") : 
    cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory 
Error in file(con, "r") : cannot open the connection 
* removing ‘/usr/local/lib/R/3.3/site-library/filehash’ 
During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘Rpoppler’ ... 
** package ‘Rpoppler’ successfully unpacked and MD5 sums checked 
checking for pkg-config... /usr/local/bin/pkg-config 
checking whether pkg-config knows about poppler-glib >= 0.18.0... no 
configure: error: cannot determine poppler-glib compile/link flags 
ERROR: configuration failed for package ‘Rpoppler’ 
* removing ‘/usr/local/lib/R/3.3/site-library/Rpoppler’ 
During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘SnowballC’ ... 
** package ‘SnowballC’ successfully unpacked and MD5 sums checked 
** libs 
make: *** No rule to make target `api.o', needed by `SnowballC.so'. Stop. 
*** arch - R.html 
Warning in file(con, "r") : 
    cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory 
Error in file(con, "r") : cannot open the connection 
* removing ‘/usr/local/lib/R/3.3/site-library/SnowballC’ 
During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
ERROR: dependencies ‘NLP’, ‘slam’ are not available for package ‘tm’ 
* removing ‘/usr/local/lib/R/3.3/site-library/tm’ 

The downloaded source packages are in 
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’ 
Warning messages: 
1: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘NLP’ had non-zero exit status 
2: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘slam’ had non-zero exit status 
3: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘filehash’ had non-zero exit status 
4: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘Rpoppler’ had non-zero exit status 
5: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘SnowballC’ had non-zero exit status 
6: In install.packages("tm", dependencies = TRUE) : 
    installation of package ‘tm’ had non-zero exit status 

세션 정보 :

> sessionInfo() 
R version 3.3.2 (2016-10-31) 
Platform: x86_64-apple-darwin16.1.0 (64-bit) 
Running under: macOS Sierra 10.12.2 

locale: 
[1] C/UTF-8/C/C/C/C 

attached base packages: 
[1] stats  graphics grDevices utils  datasets methods base 

loaded via a namespace (and not attached): 
[1] tools_3.3.2 

PS : 채소에 노력 "NLP"또는 "슬램"도 별도로 실패합니다.

> install.packages("NLP", dependencies = TRUE) 
Installing package into ‘/usr/local/lib/R/3.3/site-library’ 
(as ‘lib’ is unspecified) 
trying URL 'https://lib.ugent.be/CRAN/src/contrib/NLP_0.1-9.tar.gz' 
Content type 'application/x-gzip' length 134347 bytes (131 KB) 
================================================== 
downloaded 131 KB 

During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘NLP’ ... 
** package ‘NLP’ successfully unpacked and MD5 sums checked 
** R 
** inst 
** preparing package for lazy loading 
** help 
*** installing help indices 
** building package indices 
** testing if installed package can be loaded 
*** arch - R 
ERROR: sub-architecture 'R' is not installed 
*** arch - R.html 
ERROR: sub-architecture 'R.html' is not installed 
ERROR: loading failed for ‘R’, ‘R.html’ 
* removing ‘/usr/local/lib/R/3.3/site-library/NLP’ 

The downloaded source packages are in 
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’ 
Warning message: 
In install.packages("NLP", dependencies = TRUE) : 
    installation of package ‘NLP’ had non-zero exit status 


> install.packages("slam", dependencies = TRUE) 
Installing package into ‘/usr/local/lib/R/3.3/site-library’ 
(as ‘lib’ is unspecified) 
trying URL 'https://lib.ugent.be/CRAN/src/contrib/slam_0.1-40.tar.gz' 
Content type 'application/x-gzip' length 50146 bytes (48 KB) 
================================================== 
downloaded 48 KB 

During startup - Warning messages: 
1: Setting LC_TIME failed, using "C" 
2: Setting LC_MESSAGES failed, using "C" 
3: Setting LC_MONETARY failed, using "C" 
* installing *source* package ‘slam’ ... 
** package ‘slam’ successfully unpacked and MD5 sums checked 
** libs 
make: *** No rule to make target `apply.o', needed by `slam.so'. Stop. 
*** arch - R.html 
Warning in file(con, "r") : 
    cannot open file '/usr/local/Cellar/r/3.3.2/R.framework/Resources/etc/R.html/Makeconf': No such file or directory 
Error in file(con, "r") : cannot open the connection 
* removing ‘/usr/local/lib/R/3.3/site-library/slam’ 

The downloaded source packages are in 
    ‘/private/var/folders/19/b59kndv96js71_09xrz9ssdc0000gn/T/RtmptEhVgC/downloaded_packages’ 
Warning message: 
In install.packages("slam", dependencies = TRUE) : 
    installation of package ‘slam’ had non-zero exit status 

링크 :

+0

자바를 올바르게 설치하고 구성했는지, Java NLP 패키지에서 Java 버전을 지원하지 않는 경우 유사한 문제가 있음을 기억합니다. –

+0

올바른 버전인지 확인하기 위해 1.8이 설치되어 있습니다. 또한 NLP 패키지 페이지에서 java에 대한 언급을 찾을 수 없습니다. – maartencls

+0

당신은 'rJava'를 설치하고 macbook에서'sudo R CMD javareconf'를 실행할 수 있습니까? 이 두 가지가 작동하면 앞을 내다 보겠습니다. –

답변

2

는 이상한 뭔가 잘못이었다. 여기에서 알 수있는 바와 같이

archs <- dir(file.path(R.home("bin"), "exec")) 

: src/library/toolsR/install.R#1479 내 경우

빈/간부 디렉토리가 여기 볼 수 있습니다 :

> R.home("bin/exec") 
[1] "/usr/local/Cellar/r/3.3.2/R.framework/Resources/bin/exec" 

를 들어

R은 아키텍처를 결정하기 위해이 줄을 사용하여 해당 디렉토리에 내용이 NAR.html 파일이 포함 된 몇 가지 이유가 있습니다. 이것은 R에 R.html이라는 아키텍처가 있다고 생각하게합니다.

파일을 삭제 한 후 모든 것을 설치할 수있었습니다.

관련 문제