Solve: no such file to load -- sqlite3/sqlite3_native (LoadError)

本文介绍了一个使用gem命令安装sqlite3的过程。安装的是适用于Windows环境的预编译版本,并且建议使用与该版本相匹配的SQLite3版本以避免潜在的问题。同时提供了sqlite3.dll文件的下载链接及安装位置。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

1. >gem install sqlite3

Got output:

=============================================================================

  You've installed the binary version of sqlite3.
  It was built using SQLite3 version 3.7.3.
  It's recommended to use the exact same version to avoid potential issues.

  At the time of building this gem, the necessary DLL files where available
  in the following download:

  http://www.sqlite.org/sqlitedll-3_7_3.zip

  You can put the sqlite3.dll available in this package in your Ruby bin
  directory, for example C:/Ruby/bin

=============================================================================

Successfully installed sqlite3-1.3.3-x86-mingw32
1 gem installed
Installing ri documentation for sqlite3-1.3.3-x86-mingw32...
Installing RDoc documentation for sqlite3-1.3.3-x86-mingw32...

 

2. Download http://www.sqlite.org/sqlitedll-3_7_3.zip, unzip to ../ruby/bin

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值