【问题标题】:compiling glmnet failed in windows在 Windows 中编译 glmnet 失败
【发布时间】:2012-05-04 16:37:52
【问题描述】:

由于 R 包 glmnet 没有为 windows 提供二进制文件,所以我必须在我的操作系统 win7 64bit 下编译它。我是如何收到此错误消息的:

gfortran -m64 -fdefault-real-8 -ffixed-form  -O2  -mtune=core2 -c  newGLMnet.f90
 -o newGLMnet.o
f951.exe: sorry, unimplemented: 64-bit mode not compiled in
make: *** [newGLMnet.o] Error 1
ERROR: compilation failed for package 'glmnet'

我也尝试在 windows XP 32bit 下编译它,但出现 'configuration failed for package glmnet' 错误消息。

有人在 Windows 中成功编译 glmnet 吗?

【问题讨论】:

    标签: r glmnet


    【解决方案1】:

    Trevor Hastie 12 小时前在 r-help 上发布了这个:

    “我们知道 glmnet_1.7.3 没有通过 windows 并正在调查问题。它有事可做 与 gcc 编译器略有不同 windows 与 linux/mac 平台。一旦我们有 解决了这个问题,我们将发布一个新版本到 CRAN"

    【讨论】:

      【解决方案2】:

      在 64 位 Windows 上,而不是默认的 PATH :

      C:\Rtools\MinGW\bin
      

      试试:

      C:\Rtools\gcc-4.6.3\bin
      

      当然,停止并启动一个新的 DOS 窗口以获取新的 PATH。

      另见:https://stackoverflow.com/a/15221883/403310

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2016-01-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2020-11-07
        • 2020-02-19
        相关资源
        最近更新 更多