在装arulesViz时提示seriation安装失败,R3.6.3, 要如何处理?

  • installing source package ‘seriation’ ...
    • package ‘seriation’ successfully unpacked and MD5 sums checked
    • using staged installation
    • libs
      clang -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/usr/local/include -fPIC -Wall -g -O2 -c RNG_wrapper.c -o RNG_wrapper.o
      gfortran -fPIC -Wall -g -O2 -c arsa.f -o arsa.o
      make: gfortran: No such file or directory
      make: *** [arsa.o] Error 1
      ERROR: compilation failed for package ‘seriation’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/seriation’
    Warning in install.packages :
    installation of package ‘seriation’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/sy/bwwry6550nz44hj9s_55cz200000gn/T/RtmpJ9CAZ7/downloaded_packages’

可能是缺少C++ library 提供的放头文件。安装C++或者Xcode Command Line Tools。

xcode-select --install