0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Raspberry Pi で Gem sqlite3 をインストールしようとするとエラーになる

Last updated at Posted at 2024-10-02

問題

Raspberry Pi で sqlite3 を bundle install し、いざ使用しようとすると以下のエラーが発生する。

cannot load such file -- sqlite3/sqlite3_native (LoadError)

解決方法

コンパイル済みのものをインストールするのではなく、自分でコンパイルするようにする。

$ bundle config set force_ruby_platform true

バージョン情報

$ cat /proc/cpuinfo | sed -n -e 's/Model\s*:\s*\(\w\+\)/\1/p'
Raspberry Pi 3 Model B Rev 1.2

$ cat /etc/debian_version
10.13

$ ruby -v
ruby 3.3.4 (2024-07-09 revision be1089c8ec) [armv7l-linux-eabihf]
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?