3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Linux Mint 17.1 Rebecca に Ruby環境など

Last updated at Posted at 2015-06-24

内容

  • Linux Mintにrbenvでruby環境を作成
  • ディレクトリ名を英語に変更

1.必要なパッケージのインストール

$ sudo apt-get update
$ sudo apt-get install -y g++ git emacs libffi-dev
$ sudo apt-get install -y zlib1g-dev
$ sudo apt-get install -y libsqlite3-dev libmysqlclient-dev libreadline-dev
$ sudo apt-get install -y libssl-dev
$ sudo apt-get install -y libxml2-dev
$ sudo apt-get install -y libxslt-dev

2.rbenvのインストール

$ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
$ echo 'eval "$(rbenv init -)"' >> ~/.bashrc

シェルの再起動

$ exec -l $SHELL

rubyのバージョンを管理するためのプラグインをインストール

$ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

3.Rubyのインストール

インストールするバージョンを確認

$ rbenv install --list

現在の最新安定版は2.2.2なので

$ rbenv install 2.2.2
$ rbenv rehash
$ rbenv global 2.2.2
$ ruby -v

4.ディレクトリ名の英語表示

次のコマンドを実行するとGUIが起動します

$ LANG=C xdg-user-dirs-gtk-update
  • 変更前と変更後のディレクトリ名の一覧が表示
  • [Update Names]ボタンを押す
3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?