Ruby > インストールRuby2 w RVM

$ sudo apt-get install curl
$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
$ \curl -sSL https://get.rvm.io | bash -s stable
一旦ログアウト
$ rvm list known
$ sudo echo "" && rvm install ruby-2.0.0
$ rvm use 2.0.0

Integrating RVM with LXTerminal
1.LXDE Menu
On the menu, navigate to the shortcut for LXTerminal. Right-click, and select properties. In the window that pops up, find the "Command" textbox, and change the text to lxterminal -e "bash -il"

2.LXDE Keyboard Shortcut
Open ~/.config/openbox/lxde-rc.xml .
Replace lxterminal with lxterminal -e "bash -il"

3.bash alias
Open up either ~/.bashrc .
Add the line
alias lxterminal="lxterminal -e \"bash -il\""

4.eshell
Set rvm.el to your site-lisp
Write on your .emacs
(defun eshell-mode-hook-func ()
  (setq eshell-path-env (concat "~/.rvm/bin:" eshell-path-env))
  (setenv "PATH" (concat "~/.rvm/bin:" (getenv "PATH"))))
(add-hook 'eshell-mode-hook 'eshell-mode-hook-func)
(require 'rvm)
(rvm-use "2.0.0" "global")
最終更新:2015年11月07日 18:54