English 中文(简体)
g 用于安装MacOS风气
原标题:gfortran installation for MacOS ventura

我正试图在RR中安装一个旧的矩阵包。

remotes::install_version("Matrix", version = "1.6-1")

但是,这一错误只是空泛的。

ld: warning: directory not found for option -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/12.2.0 ld: warning: directory not found for option -L/opt/gfortran/lib ld: library not found for -lgfortran clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Matrix.so] Error 1 ERROR: compilation failed for package ‘Matrix’

  • removing ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Matrix’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/4.3-arm64/Resources/library/Matrix’ Warning message: In i.p(...) : installation of package ‘/var/folders/9z/j49cg7ss6p95_prl4f15j9xw0000gn/T//RtmpsoKABI/remotes56a1226e875/Matrix’ had non-zero exit status

I followed this answer and this tutorial, installing gfortran 12.2 for MacOS ventura. I see that it is in /usr/local/gfortran now. But I got the same error.

我做了什么错误?

问题回答

我将家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、家庭、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、住房、

我是继这一博客之后的。

https://medium.com/biosyntax/following-up-library-dependency-time-compiling-r- Packages-89f191b9f227”rel=“nofollow noreferer”>https://medium.com/biosyntax/following-up-library-dependency-time-compiling-r- Packages-89f191b9f227





相关问题
gcc -fPIC seems to muck with optimization flags

Following along from this question: how-do-i-check-if-gcc-is-performing-tail-recursion-optimization, I noticed that using gcc with -fPIC seems to destroy this optimization. I am creating a shared ...

Generate assembler code from C file in linux

I would like to know how to generate assembler code from a C program using Unix. I tried the gcc: gcc -c file.c I also used firstly cpp and then try as but I m getting errors. I m trying to build an ...

Getting rid of pre-compiled headers

OK, I have old Metrowerks code for Mac and Windows where the previous developer used pre-compiled headers for every project that this code base builds. How does one get rid of Pre-compiled headers, ...

Include a .txt file in a .h in C++?

I have a number of places where I need to re-use some template code. Many classes need these items In a .h could I do something like: #include <xxx.txt> and place all of this code in the ....

How to compile for Mac OS X 10.5

I d like to compile my application for version 10.5 and forward. Ever since I upgraded to Snow Leopard and installed the latest XCode, gcc defaults to 10.6. I ve tried -isysroot /Developer/SDKs/...

热门标签