gems:sqlite3和sqlite3-ruby之间的区别?

发布于 2024-08-22 12:17:12 字数 286 浏览 4 评论 0原文

我不小心跑了:

sudo gem install sqlite3

而不是:

sudo gem install sqlite3-ruby

所以现在当我运行 gem list 时我得到:

gem list

*** LOCAL GEMS ***

sqlite3 (0.0.7)
sqlite3-ruby (1.2.5)

两者之间有什么区别?我两者都需要吗?

I accidentally ran:

sudo gem install sqlite3

instead of:

sudo gem install sqlite3-ruby

So now when I run gem list I get:

gem list

*** LOCAL GEMS ***

sqlite3 (0.0.7)
sqlite3-ruby (1.2.5)

What is the difference between the two? And do I need both?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

凉城已无爱 2024-08-29 12:17:12

据我今天(2011 年 6 月)所知,这两种宝石是相同的。

在 RubyGems.org sqlite3sqlite3-ruby 指向同一个 sqlite3-ruby 存储库 在 github 上。

来自github上的项目描述:

该模块允许 Ruby 程序与 SQLite3 数据库引擎交互 (http://www.sqlite.org )。您必须安装 SQLite 引擎才能构建此模块。请注意,该模块与 SQLite 2.x 不兼容。

一位维护者确认将 gem 从 sqlite3-ruby 重命名为 sqlite3 此处

此公告是为了让您知道 sqlite3-ruby gem 正在开发中
重命名为(请打鼓)“sqlite3”。

我们将通过释放空的来保持向后兼容性
依赖于“sqlite3”的“sqlite3-ruby”gem。空的 sqlite3-ruby
gem 将包含一条安装后消息,通知人们
进行切换。

As far as I can tell today (June 2011), both gems are the same.

On RubyGems.org sqlite3 and sqlite3-ruby point to the same sqlite3-ruby repository on github.

From the project description on github:

This module allows Ruby programs to interface with the SQLite3 database engine (http://www.sqlite.org). You must have the SQLite engine installed in order to build this module. Note that this module is NOT compatible with SQLite 2.x.

One of the maintainers confirmed the renaming of the gem from sqlite3-ruby to sqlite3 here:

This announcement is to let you know that the sqlite3-ruby gem is being
renamed to (drum roll please) "sqlite3".

We will maintain backwards compatibility by releasing an empty
"sqlite3-ruby" gem that depends on "sqlite3". The empty sqlite3-ruby
gem will contain a post installation message that will inform people to
make the switch.

同尘 2024-08-29 12:17:12

使用 sqlite3-ruby 时,您将得到以下输出:

你好! sqlite3-ruby gem 已将其名称更改为 sqlite3。
您应该安装 sqlite3,而不是安装 sqlite3-ruby
请相应地更新您的依赖项。

来自 Ruby sqlite3 团队的感谢!

<3 <3 <3 <3

所以看起来“sqlite3”是正确的选择

When using sqlite3-ruby, you'll get the following output:

Hello! The sqlite3-ruby gem has changed it's name to just sqlite3.
Rather than installing sqlite3-ruby, you should install sqlite3.
Please update your dependencies accordingly.

Thanks from the Ruby sqlite3 team!

<3 <3 <3 <3

so it seems like 'sqlite3' is the way to go

最初的梦 2024-08-29 12:17:12

sqlite3-ruby 是您可能需要的 gem。这是我安装的唯一的 sqlite gem。

sqlite3 (0.0.7)此处进行了描述:作为 Ruby 1.9 的 SQLite3 FFI 绑定

sqlite3-ruby is the gem you probably need. It is the only sqlite gem I have installed.

sqlite3 (0.0.7) is described here: as SQLite3 FFI bindings for Ruby 1.9

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文