gpt4 book ai didi

ruby-on-rails - Rails 捆绑安装失败

转载 作者:行者123 更新时间:2023-12-03 18:49:37 25 4
gpt4 key购买 nike

我正在尝试在键入时制作一个新的 Rails 应用程序:

rails new app

然后我得到错误:
Could not find sqlite3-1.3.8 in any of the sources
Run `bundle install` to install missing gems.

然后我运行 bundle install 并得到这个错误:
An error occurred while installing sqlite3 (1.3.8), and Bundler cannot      continue.
Make sure that `gem install sqlite3 -v '1.3.8'` succeeds before bundling.

我有
sqlite3 (1.3.10)
sqlite3-full (1.3.9.3)
sqlite3-ruby (1.3.3)

当我安装了 1.3.10 时,我不知道为什么安装要使用 1.3.8。我是 Rails 新手,但在过去的几周里我做了一些小应用程序,这是我第一次遇到这种情况。是否有我可以编辑的本地 Gem 文件,所以当我创建一个新应用程序时,它不会尝试使用这个旧 gem。我还尝试使用 postgres 创建一个新的应用程序,但出现相同的错误。

我正在使用 mac osx 10.10.1。 ruby 版本 2.2.1。

谢谢你的帮助。

编辑:
当我运行时
gem install sqlite3 -v '1.3.8'

这是结果:

./sqlite3_ruby.h:16:36:注意:从宏 'RBIGNUM_LEN' 扩展
#define RBIGNUM_LEN(x) RBIGNUM(x)->len

~~~~~~~~~~ ^

statement.c:261:32:错误:使用未声明的标识符“SIZEOF_BDIGITS”
如果(RBIGNUM_LEN(值)* SIZEOF_BDIGITS <= 8){
^
生成 1 个警告和 2 个错误。
make: *** [statement.o] 错误 1

制作失败,退出代码 2

最佳答案

检查您的 GemfileGemFile.lock查看版本是否已修复。删除版本或根据需要进行更改。

关于ruby-on-rails - Rails 捆绑安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30771172/

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