gpt4 book ai didi

ruby - 安装 ffi gem 时出错

转载 作者:数据小太阳 更新时间:2023-10-29 08:12:33 25 4
gpt4 key购买 nike

$ jruby -S bundle update
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from http://controller.c3.mtv:8008/....
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from http://controller.c3.mtv:8008/..
Resolving dependencies...
Using rake (10.1.0)
Using ansi (1.4.3)
Using builder (3.2.2)
Installing ffi (1.9.2)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

c:/jruby-1.7.4/bin/jruby.exe extconf.rb

make
'make' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-
1.9.2 for inspection.
Results logged to c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-1.9.2/ext/ffi_c/g
em_make.out
An error occurred while installing ffi (1.9.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.9.2'` succeeds before bundling.

这是我执行 bundle 更新时的错误,所以我按照上面最后一行的建议执行了以下操作

    $ gem install ffi -v '1.9.2'
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.

c:/jruby-1.7.4/bin/jruby.exe extconf.rb

make
'make' is not recognized as an internal or external command,
operable program or batch file.

Gem files will remain installed in c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-
1.9.2 for inspection.
Results logged to c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-1.9.2/ext/ffi_c/g
em_make.out

然后我尝试了以下

$ gem install ffi
Building native extensions. This could take a while...
ERROR: Error installing ffi:
ERROR: Failed to build gem native extension.

c:/jruby-1.7.4/bin/jruby.exe extconf.rb

make
'make' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-
1.9.2 for inspection.
Results logged to c:/jruby-1.7.4/lib/ruby/gems/shared/gems/ffi-1.9.2/ext/ffi_c/g
em_make.out

最佳答案

'make' is not recognized as an internal or external command, operable program or batch file.

看起来像 Windows 错误消息..您的系统上是否安装了 make?我会查看 Cygwin以避免在 unix 工具上出现依赖性问题。

关于ruby - 安装 ffi gem 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19677827/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com