gpt4 book ai didi

ruby-on-rails - 安装 sqlite3 1.3.9 gem 时出错

转载 作者:太空宇宙 更新时间:2023-11-03 18:17:32 25 4
gpt4 key购买 nike

我正在升级到 Rails 4,但在运行 bundle install 时遇到了以下问题。

Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

/Users/user/.rvm/rubies/jruby-1.7.4/bin/jruby extconf.rb
NotImplementedError: C extension support is not enabled. Pass -Xcext.enabled=true to JRuby or set JRUBY_OPTS or modify .jrubyrc to enable.

(root) at /Users/user/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/mkmf.rb:8
require at org/jruby/RubyKernel.java:1054
(root) at /Users/user/.rvm/rubies/jruby-1.7.4/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1
(root) at extconf.rb:3

extconf failed, uncaught signal 1

Gem files will remain installed in /Users/user/.rvm/gems/jruby-1.7.4/gems/sqlite3-1.3.9 for inspection.
Results logged to /Users/user/.rvm/gems/jruby-1.7.4/extensions/universal-java-1.6/1.9/sqlite3-1.3.9/gem_make.out
An error occurred while installing sqlite3 (1.3.9), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.9'` succeeds before bundling.

当我运行“gem install sqlite3 --version 1.3.9”时,我收到了同样的错误。有人知道为什么会这样吗?

最佳答案

试试这个:

$ sudo apt-get install sqlite3 libsqlite3-dev
$ bundle install

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

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