开发者

i have downloaded and tar ed Ruby 1.9.2 package. how to install it now?

i have downloaded and t开发者_运维技巧ar ed Ruby 1.9.2 package. how to install it now ?? i am working on ubuntu


Vague question, and you should probably pull up a tutorial to walk you through the process if you're not sure how to do this yet, but…

tar -xzf ruby_1.9.2.tar.gz
cd ruby_1.9.2/
./configure
make && make install

Might I suggest using RVM instead? It'll handle installing ruby, and let you manage and switch between different rubies and gem sets for each application. It's really easy to get started with, too. Check it out:

http://rvm.beginrescueend.com/


if you are on ubuntu, you can use apt to install ruby1.9.2

sudo apt-get install ruby1.9.1-full

check your install

ruby1.9.1 -v

it will return ruby 1.9.2-p0.

edit your .bashrc , back to normal.

alias ruby="ruby1.9.1"
alias irb="irb1.9.1"
alias gem="gem1.9.1"

everything will be allright.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜