LoginSignup
12
8

More than 5 years have passed since last update.

UbuntuにRuby on Railsの動作環境を作成するためSQLite3をインストール

Last updated at Posted at 2015-03-11

Ruby on Railsの勉強のために、動作環境を作成している。
rubyに関するライブラリについては、gemコマンドでインストールできるっぽいが、SQLite3に関しては、そうはいかなかったので、メモを残しておく。

OS: Ubuntu 14.04.02 LTS
アーキテクチャ:32bit
※ちなみに、Ubuntuでは以下のコメントでosのバージョンが解るらしい

/etc/lsb-release

 アーキテクチャにつては、

arch

 を実行して、X86_64→64bit、i686→32bit

本題、

まずは、以下のコマンドを実行

sudo apt-get install -y sqlite3

次に、

sudo apt-get install sqlite3 libsqlite3-dev

※下段のコマンドの実行を忘れると、プロジェクトの作成時に以下のようなエラーが発生するので注意

Gem files will remain installed in /home/xxxx/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/sqlite3-1.3.10 for inspection.
Results logged to /home/xxxx/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/extensions/x86-linux/2.1.0-static/sqlite3-1.3.10/gem_make.out
An error occurred while installing sqlite3 (1.3.10), and Bundler cannot continue.
Make sure that `gem install sqlite3 -v '1.3.10'` succeeds before bundling.

これで、Ruby on Railsを動かす準備ができた。

12
8
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
12
8