由于编译错误,无法安装“ arules”软件包

时间:2018-10-25 13:33:01

标签: r rstudio

在RStudio中使用install.packages('arules')下载软件包'arules'时遇到编译错误,找不到解决方案,这就是我在控制台中得到的内容:

trying URL 'https://cran.rstudio.com/src/contrib/arules_1.6-1.tar.gz'
Content type 'application/x-gzip' length 1904888 bytes (1.8 MB)
==================================================
downloaded 1.8 MB

During startup - Warning messages:
1: Setting LC_CTYPE failed, using "C" 
2: Setting LC_TIME failed, using "C" 
3: Setting LC_MESSAGES failed, using "C" 
4: Setting LC_MONETARY failed, using "C" 
* installing *source* package 'arules' ...
** package 'arules' successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang -I/Users/joudi/anaconda3/lib/R/include -DNDEBUG   -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/joudi/anaconda3/include  -DNDEBUG -DNIMAPFN -fPIC  -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -I/Users/joudi/anaconda3/include  -c arrayIndex.c -o arrayIndex.o
make: x86_64-apple-darwin13.4.0-clang: No such file or directory
make: *** [arrayIndex.o] Error 1
ERROR: compilation failed for package 'arules'
* removing '/Users/joudi/anaconda3/lib/R/library/arules'
Warning in install.packages :
  installation of package 'arules' had non-zero exit status

The downloaded source packages are in
    '/private/var/folders/0c/2vddb1fs58q9tms_p7qzp2v00000gn/T/RtmpXmSkuy/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

0 个答案:

没有答案