如果在R中需要fortran,如何在Mac OS中从源代码安装软件包?

时间:2014-12-29 15:33:26

标签: r macos fortran package

我在R软件中在Mac OS X Yosemite中安装Package pack for form source时遇到问题。我知道包依赖于fortran编译器,所以我安装了CRAN中可用的gfortran,但它不会影响任何东西。贝娄我正在复制错误日志。

如果有人对此有任何建议,请非常感谢。

提前致谢

  

install.packages("〜/ Downloads / packfor_0.0-8.tar",repos =   NULL,类型="源&#34)

     
      
  • 安装包'packfor'...
  •   
     

** libs clang -I / Library / Frameworks / R.framework / Resources / include -DNDEBUG -I / usr / local / include -I / usr / local / include / freetype2 -I / opt / X11 / include - fPIC -Wall -mtune = core2 -g -O2 -c forward.c -o forward.o forward.c:411:3:警告:隐式声明函数' dgesvd _'在C99中无效[-Wimplicit-function-declaration]   F77_CALL(dgesvd)(& jobu,& jobvt,& size,& size,A,& size,   D,U,& size,V,& size,& work1,& lwork,& error); ^   /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:82:22:   注意:从宏观扩展' F77_CALL'   定义F77_CALL(x)x ## _                           ^:8:1:注意:从这里扩展dgesvd_ ^ forward.c:421:43:警告:数据参数未被使用   格式字符串[-Wformat-extra-args]         fprintf(stderr," dinvG中的错误:",错误);                         ~~~~~~~~~~~~~~~~~~ ^

/Library/Frameworks/R.framework/Resources/include/R_ext/Error.h:51:15:

  

注意:从宏观扩展'错误'   定义错误Rf_error                 ^ 2警告生成。 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 packfor.so forward.o -L / Library /Frameworks/R.framework/Resources/lib   -lRlapack -L / Library / Frameworks / R.framework / Resources / lib -lRblas -L / usr / local / lib / gcc / x86_64-apple-darwin13.0.0 / 4.8.2 -lgfortran -lquadmath -lm -F / Library /Frameworks/R.framework/ ..-framework R -Wl,-framework -Wl,CoreFoundation警告消息:在install.packages中("〜/ Downloads / packfor_0.0-8.tar",repos = NULL,:

     

安装包'/Users/rafael/Downloads/packfor_0.0-8.tar'   具有非零退出状态ld:警告:找不到选项的目录   ' -L / USR /本地/ LIB / GCC / x86_64的-苹果darwin13.0.0 / 4.8.2' ld:库没有   找到-lquadmath clang:错误:链接器命令失败并退出   代码1(使用-v查看调用)make:*** [packfor.so]错误1   错误:包'packfor'的编译失败   *删除'/Library/Frameworks/R.framework/Versions/3.1/Resources/library/packfor'   >

0 个答案:

没有答案