Posted at

install.packages("pander")にてx86_64-apple-darwin13.4.0-clang++: command not found出力時の対応方法

More than 1 year has passed since last update.


install.packages("pander")にてエラー

エラーメッセージを見る。

> install.packages("pander")

trying URL 'https://cran.rstudio.com/src/contrib/pander_0.6.1.tar.gz'
Content type 'application/x-gzip' length 292500 bytes (285 KB)
==================================================
downloaded 285 KB

* installing *source* package pander ...
** package pander successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang++ -I/Users/henoheno/anaconda3/lib/R/include -DNDEBUG -I"/Users/henoheno/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/henoheno/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/henoheno/anaconda3/include -c RcppExports.cpp -o RcppExports.o
/bin/sh: x86_64-apple-darwin13.4.0-clang++: command not found
make: henoheno [RcppExports.o] Error 127
ERROR: compilation failed for package pander
* removing /Users/henoheno/anaconda3/lib/R/library/pander
Warning in install.packages :
installation of package pander had non-zero exit status

The downloaded source packages are in
/private/var/folders/3y/0wg8k2dj4y54t1vscb0ph4t40000gp/T/RtmpjD2vVk/downloaded_packages
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done

これがない様子。



/bin/sh: x86_64-apple-darwin13.4.0-clang++: command not found


エラーメッセージからx86_64-apple-darwin13.4.0-clangがないのでインストール

macのターミナルからx86_64-apple-darwin13.4.0-clangをインストール

[henoheno@henohenos-MacBook-Air ~]$ conda install clangxx_osx-64

Solving environment: done

## Package Plan ##

environment location: /Users/henoheno/anaconda3

added / updated specs:
- clangxx_osx-64

The following packages will be downloaded:

package | build
---------------------------|-----------------
ca-certificates-2018.03.07 | 0 124 KB
clang-4.0.1 | h662ec87_0 73.7 MB
ld64-274.2 | h7c2db76_0 2.6 MB
cctools-895 | h7512d6f_0 1.5 MB
openssl-1.0.2o | h26aff7b_0 3.4 MB
clang_osx-64-4.0.1 | h1ce6c1d_10 7 KB
clangxx_osx-64-4.0.1 | h22b1bf0_10 7 KB
llvm-4.0.1 | hc748206_0 136.7 MB
clangxx-4.0.1 | hc9b4283_0 10 KB
llvm-lto-tapi-4.0.1 | h6701bc3_0 11.7 MB
compiler-rt-4.0.1 | h5487866_0 963 KB
conda-4.5.0 | py36_0 1.0 MB
------------------------------------------------------------
Total: 231.7 MB

The following NEW packages will be INSTALLED:

cctools: 895-h7512d6f_0
clang: 4.0.1-h662ec87_0
clang_osx-64: 4.0.1-h1ce6c1d_10
clangxx: 4.0.1-hc9b4283_0
clangxx_osx-64: 4.0.1-h22b1bf0_10
compiler-rt: 4.0.1-h5487866_0
ld64: 274.2-h7c2db76_0
llvm: 4.0.1-hc748206_0
llvm-lto-tapi: 4.0.1-h6701bc3_0

The following packages will be UPDATED:

ca-certificates: 2017.08.26-ha1e5d58_0 --> 2018.03.07-0
conda: 4.4.11-py36_0 --> 4.5.0-py36_0
openssl: 1.0.2n-hdbc3d79_0 --> 1.0.2o-h26aff7b_0

Proceed ([y]/n)? y

Downloading and Extracting Packages
ca-certificates 2018.03.07: ##################################################################### | 100%
clang 4.0.1: #################################################################################### | 100%
ld64 274.2: ##################################################################################### | 100%
cctools 895: #################################################################################### | 100%
openssl 1.0.2o: ################################################################################# | 100%
clang_osx-64 4.0.1: ############################################################################# | 100%
clangxx_osx-64 4.0.1: ########################################################################### | 100%
llvm 4.0.1: ##################################################################################### | 100%
clangxx 4.0.1: ################################################################################## | 100%
llvm-lto-tapi 4.0.1: ############################################################################ | 100%
compiler-rt 4.0.1: ############################################################################## | 100%
conda 4.5.0: #################################################################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
[henoheno@henoheno-MacBook-Air ~]$


再度install.packages("pander")

できた。

> install.packages("pander")

trying URL 'https://cran.rstudio.com/src/contrib/pander_0.6.1.tar.gz'
Content type 'application/x-gzip' length 292500 bytes (285 KB)
==================================================
downloaded 285 KB

* installing *source* package pander ...
** package pander successfully unpacked and MD5 sums checked
** libs
x86_64-apple-darwin13.4.0-clang++ -I/Users/henoheno/anaconda3/lib/R/include -DNDEBUG -I"/Users/henoheno/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/henoheno/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/henoheno/anaconda3/include -c RcppExports.cpp -o RcppExports.o
x86_64-apple-darwin13.4.0-clang++ -I/Users/henoheno/anaconda3/lib/R/include -DNDEBUG -I"/Users/henoheno/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/henoheno/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/henoheno/anaconda3/include -c helpers.cpp -o helpers.o
x86_64-apple-darwin13.4.0-clang++ -I/Users/henoheno/anaconda3/lib/R/include -DNDEBUG -I"/Users/henoheno/anaconda3/lib/R/library/Rcpp/include" -D_FORTIFY_SOURCE=2 -mmacosx-version-min=10.9 -I/Users/henoheno/anaconda3/include -fPIC -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -I/Users/henoheno/anaconda3/include -c pandoc.cpp -o pandoc.o
x86_64-apple-darwin13.4.0-clang++ -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Users/henoheno/anaconda3/lib/R/lib -Wl,-pie -Wl,-headerpad_max_install_names -o pander.so RcppExports.o helpers.o pandoc.o -L/Users/henoheno/anaconda3/lib/R/lib -lR -L/Users/henoheno/anaconda3/lib -lintl -lc -Wl,-framework -Wl,CoreFoundation
ld: warning: -pie being ignored. It is only used when linking a main executable
installing to /Users/henoheno/anaconda3/lib/R/library/pander/libs
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (pander)

The downloaded source packages are in
/private/var/folders/3y/0wg8k2dj4y54t1vscb0ph4t40000gp/T/RtmpjD2vVk/downloaded_packages
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
>