I ran t开发者_高级运维his command in the terminal on a Fresh Linux install.
sudo aptget install ruby1.9 libruby1.9 libreadlineruby1.9 irb1.9
I'm getting this error:
Unable to locate package irbl.9
This command was taken directly from the Pickaxe book. Any suggestions on why this doesn't work?
If you copied and pasted the error then the problem is that you have an L instead of a 1 in irb1.9
At your command-line, type:
apt-cache search irb
and look for a line starting with irb1.9
. I just checked mine and can't find that, so it might be that irb1.9 isn't available in your distribution. And, it might be that it is already included in your ruby1.9.
That said, you might want to look into installing Ruby using RVM. It creates a sandbox for multiple Rubies, allowing you to easily switch back and forth or test code against all your installed versions. If you go that route be sure to read the page and complete the "post install" section. Also, do rvm notes
after installing and make sure you have all the dependencies, then read the info about using gems, specifically the part that says "DO NOT use sudo...".
精彩评论