请挽救一位 ruby 爱好者~ 希望热心的人可以帮忙 用 rvm 安装,源码编译都遭遇问题。
先说源码编译,
先是在 .configure --prefix=/usr/local/ruby
之后点 make && make install
的
好像失败了,因为在指定目录/usr/local/ruby 中没有任何东西
from /home/Crabby/Downloads/ruby-1.9.3-p125/lib/fileutils.rb:221:in `block (2 levels) in mkdir_p'
from /home/Crabby/Downloads/ruby-1.9.3-p125/lib/fileutils.rb:219:in `reverse_each'
from /home/Crabby/Downloads/ruby-1.9.3-p125/lib/fileutils.rb:219:in `block in mkdir_p'
from /home/Crabby/Downloads/ruby-1.9.3-p125/lib/fileutils.rb:205:in `each'
from /home/Crabby/Downloads/ruby-1.9.3-p125/lib/fileutils.rb:205:in `mkdir_p'
from ./tool/rbinstall.rb:183:in `makedirs'
from ./tool/rbinstall.rb:284:in `prepare'
from ./tool/rbinstall.rb:315:in `block in <main>'
from ./tool/rbinstall.rb:597:in `call'
from ./tool/rbinstall.rb:597:in `block (2 levels) in <main>'
from ./tool/rbinstall.rb:594:in `each'
from ./tool/rbinstall.rb:594:in `block in <main>'
from ./tool/rbinstall.rb:590:in `each'
from ./tool/rbinstall.rb:590:in `<main>'
make: *** [do-install-all] 错误 1
使用 rvm 同样遇到问题
先说昨天,昨天晚上都提示 rvm 是一个函数了, type rvm | head -n1
.之后我装了 ruby 1.9.3,但是之后在 shell 下面输入 ruby -v 提示是无效的命令~真一个纠结 + 但疼呀
昨晚已过去,说说现在的问题吧
type rvm | head -n1
提示:
rvm 是 /home/Crabby/.rvm/bin/rvm
是不是我的 .bash_profile
有问题呀??????PATH 被提前导出了????????
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/.local/bin
export PATH
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function