解决gem目录导致的mysql错误

技术分享 2015-12-07
henry@henry-laptop:~/Soft/Ruby/RubyGem/rubygems-0.9.0
$ sudo gem update --system Updating RubyGems...
Bulk updating Gem source index for: http://gems.rubyforge.org
Attempting remote update of rubygems-update
ERROR:? While executing gem ... (Errno::ENOENT)
& No such file or directory - getcwd
henry@henry-laptop:~/Soft/Ruby/RubyGem/rubygems-0.9.0$ sudo gem update rails
sudo: cannot get working directory
Updating installed gems...
Attempting remote update of rails
Install required dependency rake? [Yn]? y
ERROR:? While executing gem ... (Errno::ENOENT)
& No such file or directory - getcwd
henry@henry-laptop:~/Soft/Ruby/RubyGem/rubygems-0.9.0$ cd ~
henry@henry-laptop:~$ sudo gem update --system

后面运行正常,看来Gem还会挑剔目录~

评论 (0)

发表评论

最多500字符

验证码

暂无评论

成为第一个评论的人吧!