三. 使用rvm时提示RVM is not a function, selecting rubies with 'rvm use ...' will not work
解决方法: shell>rvm notes,查看注意事项,其中有提示将[[ -s "/home/sunfei/.rvm/scripts/rvm" ]] && source "/home/sunfei/.rvm/scripts/rvm",添加到.bashrc中
四. 使用rvm时提示no such file to load -- zlib ERROR: While executing gem ... (NameError) uninitialized constant Gem::Commands::InstallCommand,缺少zlib包,
解决方法:
1.查看是否安装zlib,如未安装就首先下载安装,我是通过下载tar包安装的,安装后问题念旧
2.shell>rvm [size=medium]requirements,执行其中的相应部分的安装命令, 我使用的Additional Dependencies:
# For Ruby / Ruby HEAD (MRI, Rubinius, & REE), install the following:
ruby: /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion
执行上述的apt-get安装缺少的包.安装后问题依旧
3.shell>rvm list #查看是否安装ruby及其版本.
shell>which ruby #查看当前使用的ruby
shell>rvm use 1.9.3 --default #设置默认ruby版本
4.shell>问题解决
学习ROR随笔(二)
最新推荐文章于 2024-10-11 23:12:36 发布
703

被折叠的 条评论
为什么被折叠?



