错误:软件包“ EMMIXskew”的编译失败

时间:2020-11-09 17:13:01

标签: r compilation

我正在尝试通过以下代码在R studio中安装“ EEMMIXskew”软件包:

install.packages(“ / Users / yangyue / Desktop / modern_statistics / homework5 / EMMIXskew_1.0.2.tar.gz”,repos = NULL,type =“ source”)

因为CRAN中没有EMMIXskew,所以我首先下载EMMIXskew_1.0.2.tar.gz并保存到我在上述路径中指定的路径。

但是, 我在R studio中遇到错误,有人知道如何解决此问题吗?提前致谢! (顺便说一句,我正在使用MacOS)

* installing *source* package ‘EMMIXskew’ ...
** package ‘EMMIXskew’ 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 EMMIXskew_init.c -o EMMIXskew_init.o
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 density.c -o density.o
gfortran  -fPIC  -Wall -g -O2  -c density2.f -o density2.o
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 distance.c -o distance.o
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 estep.c -o estep.o
gfortran  -fPIC  -Wall -g -O2  -c mixda.f -o mixda.o
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 mixem.c -o mixem.o
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 mixinit.c -o mixinit.o
gfortran  -fPIC  -Wall -g -O2  -c mixmsn.f -o mixmsn.o
gfortran  -fPIC  -Wall -g -O2  -c mixmsnda.f -o mixmsnda.o
gfortran  -fPIC  -Wall -g -O2  -c mixmst.f -o mixmst.o
mixmst.f:118:72:

  118 |           do 200 k=j,p
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 200 at (1)
gfortran  -fPIC  -Wall -g -O2  -c mixmstda.f -o mixmstda.o
gfortran  -fPIC  -Wall -g -O2  -c mixmvnda.f -o mixmvnda.o
gfortran  -fPIC  -Wall -g -O2  -c mixmvtda.f -o mixmvtda.o
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 module.c -o module.o
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 mstep.c -o mstep.o
gfortran  -fPIC  -Wall -g -O2  -c predmixdamsn.f -o predmixdamsn.o
gfortran  -fPIC  -Wall -g -O2  -c predmixdamst.f -o predmixdamst.o
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 scaestep.c -o scaestep.o
gfortran  -fPIC  -Wall -g -O2  -c scamstep.f -o scamstep.o
scamstep.f:35:72:

   35 |           do 200 k=j,p
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 200 at (1)
scamstep.f:55:72:

   55 |        do 10 j=1,p
      |                                                                        1
Warning: Fortran 2018 deleted feature: Shared DO termination label 10 at (1)
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 zeroin.c -o zeroin.o
clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/usr/local/lib -o EMMIXskew.so EMMIXskew_init.o density.o density2.o distance.o estep.o mixda.o mixem.o mixinit.o mixmsn.o mixmsnda.o mixmst.o mixmstda.o mixmvnda.o mixmvtda.o module.o mstep.o predmixdamsn.o predmixdamst.o scaestep.o scamstep.o zeroin.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0'
ld: warning: directory not found for option '-L/usr/local/gfortran/lib'
ld: library not found for -lgfortran
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [EMMIXskew.so] Error 1
ERROR: compilation failed for package ‘EMMIXskew’
* removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/EMMIXskew’
Warning in install.packages :
  installation of package ‘/Users/yangyue/Desktop/modern_statistics/homework5/EMMIXskew_1.0.2.tar.gz’ had non-zero exit status

0 个答案:

没有答案