実行環境の準備

たいていのLinuxであればバイナリパッケージが用意されているはず。irbパッケージをインストールすると対話側rubyが実行出来る。

Hello Worldをrubyで表示してみる

puts "Hello World";

rbenv

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source .bash_profile
rbenv--version
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
rbenv install --list
libffi.a: could not read symbols: Bad value
libffi-devel-3.0.5-3.2.el6.x86_64.rpmを入れた。再度インストールで別のエラー
cannot load such file -- zlib 
yum install zlib-devel.x86_64
The Ruby openssl extension was not compiled. Missing the OpenSSL lib?
yum install openssl-devel.x86_64

参考ページ

http://qiita.com/inouet/items/478f4228dbbcd442bfe8

install


トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS