我正在尝试安装factoextra,但在 CMake 部分遇到了困难,特别是出现如下错误:
CMake Error: The source directory "/tmp/..." does not exist.
(当我尝试安装其依赖项时也是如此nloptr:pbkrtest,,,,,,,,, )lme4carrstatixFactoMineRggpubr
任何想法?
\n谢谢
\n附:
\n日志的最后一部分:
\nCMake Error: The source directory "/tmp/RtmpgJySdf/R.INSTALL20c31df42f6/nloptr/src/nlopt-build" does not exist.\nSpecify --help for usage, or press the help button on the CMake GUI.\nUnknown argument -j\nUnknown argument 2\nUsage: cmake --build <dir> [options] [-- [native-options]]\nOptions:\n <dir> = Project binary directory to be built.\n --target <tgt> = Build <tgt> instead of default targets.\n --config <cfg> = For multi-configuration tools, choose <cfg>.\n --clean-first = Build target 'clean' first, then build.\n (To clean only, use --target 'clean'.)\n --use-stderr = Don't merge stdout/stderr output and pass the\n original stdout/stderr handles to the native\n tool so it can use the capabilities of the\n calling terminal (e.g. colored output).\n -- = Pass remaining options to the native tool.\nCMake Error: The source directory "/tmp/RtmpgJySdf/R.INSTALL20c31df42f6/nloptr/src/nlopt" does not exist.\nSpecify --help for usage, or press the help button on the CMake GUI.\ncp: cannot stat 'nlopt/include/*': No such file or directory\nconfigure: creating ./config.status\nconfig.status: creating src/Makevars\n** libs\ngcc -std=gnu99 -I"/opt/R/4.0.0/lib/R/include" -DNDEBUG -I../inst/include -I'/opt/R/4.0.0/lib/R/library/testthat/include' -I/usr/local/include -fpic -g -O2 -c init_nloptr.c -o init_nloptr.o\ngcc -std=gnu99 -I"/opt/R/4.0.0/lib/R/include" -DNDEBUG -I../inst/include -I'/opt/R/4.0.0/lib/R/library/testthat/include' -I/usr/local/include -fpic -g -O2 -c nloptr.c -o nloptr.o\ng++ -std=gnu++11 -I"/opt/R/4.0.0/lib/R/include" -DNDEBUG -I../inst/include -I'/opt/R/4.0.0/lib/R/library/testthat/include' -I/usr/local/include -fpic -g -O2 -c test-C-API.cpp -o test-C-API.o\ng++ -std=gnu++11 -I"/opt/R/4.0.0/lib/R/include" -DNDEBUG -I../inst/include -I'/opt/R/4.0.0/lib/R/library/testthat/include' -I/usr/local/include -fpic -g -O2 -c test-runner.cpp -o test-runner.o\ng++ -std=gnu++11 -shared -L/opt/R/4.0.0/lib/R/lib -L/usr/local/lib -o nloptr.so init_nloptr.o nloptr.o test-C-API.o test-runner.o -L/opt/R/4.0.0/lib/R/lib -lRlapack -L/opt/R/4.0.0/lib/R/lib -lRblas -lgfortran -lm -lquadmath -Lnlopt/lib -lnlopt -L/opt/R/4.0.0/lib/R/lib -lR\n/bin/ld: cannot find -lnlopt\ncollect2: error: ld returned 1 exit status\nmake: *** [nloptr.so] Error 1\nERROR: compilation failed for package \xe2\x80\x98nloptr\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/nloptr\xe2\x80\x99\nERROR: dependency \xe2\x80\x98nloptr\xe2\x80\x99 is not available for package \xe2\x80\x98lme4\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/lme4\xe2\x80\x99\nERROR: dependency \xe2\x80\x98lme4\xe2\x80\x99 is not available for package \xe2\x80\x98pbkrtest\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/pbkrtest\xe2\x80\x99\nERROR: dependencies \xe2\x80\x98pbkrtest\xe2\x80\x99, \xe2\x80\x98lme4\xe2\x80\x99 are not available for package \xe2\x80\x98car\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/car\xe2\x80\x99\nERROR: dependency \xe2\x80\x98car\xe2\x80\x99 is not available for package \xe2\x80\x98rstatix\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/rstatix\xe2\x80\x99\nERROR: dependency \xe2\x80\x98car\xe2\x80\x99 is not available for package \xe2\x80\x98FactoMineR\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/FactoMineR\xe2\x80\x99\nERROR: dependency \xe2\x80\x98rstatix\xe2\x80\x99 is not available for package \xe2\x80\x98ggpubr\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/ggpubr\xe2\x80\x99\nERROR: dependencies \xe2\x80\x98FactoMineR\xe2\x80\x99, \xe2\x80\x98ggpubr\xe2\x80\x99 are not available for package \xe2\x80\x98factoextra\xe2\x80\x99\n* removing \xe2\x80\x98/opt/R/4.0.0/lib/R/library/factoextra\xe2\x80\x99\n\nThe downloaded source packages are in\n \xe2\x80\x98/tmp/Rtmp98DJqK/downloaded_packages\xe2\x80\x99\nUpdating HTML index of packages in '.Library'\nMaking 'packages.html' ... done\nWarning messages:\n1: In install.packages("factoextra") :\n installation of package \xe2\x80\x98nloptr\xe2\x80\x99 had non-zero exit status\n2: In install.packages("factoextra") :\n installation of package \xe2\x80\x98lme4\xe2\x80\x99 had non-zero exit status\n3: In install.packages("factoextra") :\n installation of package \xe2\x80\x98pbkrtest\xe2\x80\x99 had non-zero exit status\n4: In install.packages("factoextra") :\n installation of package \xe2\x80\x98car\xe2\x80\x99 had non-zero exit status\n5: In install.packages("factoextra") :\n installation of package \xe2\x80\x98rstatix\xe2\x80\x99 had non-zero exit status\n6: In install.packages("factoextra") :\n installation of package \xe2\x80\x98FactoMineR\xe2\x80\x99 had non-zero exit status\n7: In install.packages("factoextra") :\n installation of package \xe2\x80\x98ggpubr\xe2\x80\x99 had non-zero exit status\n8: In install.packages("factoextra") :\n installation of package \xe2\x80\x98factoextra\xe2\x80\x99 had non-zero exit status\nRun Code Online (Sandbox Code Playgroud)\n
| 归档时间: |
|
| 查看次数: |
5409 次 |
| 最近记录: |