Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/53.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 设置Ruby on Rails环境,使用RVM now Rails进行了更改;不行。_Ruby On Rails - Fatal编程技术网

Ruby on rails 设置Ruby on Rails环境,使用RVM now Rails进行了更改;不行。

Ruby on rails 设置Ruby on Rails环境,使用RVM now Rails进行了更改;不行。,ruby-on-rails,Ruby On Rails,我正在尝试在我的系统上设置RoR。我已经使用了这里的说明 我被卡住了,因为我终于能够安装Rails了,但是在我设置Ruby版本之后,它就不再检测Rails了 CJs-MacBook-Air:~ cjwheelock$ rails -v Rails 4.0.1 CJs-MacBook-Air:~ cjwheelock$ rvm use ruby-2.0.0@learn-rails --create Warning! PATH is not properly set up, '/Users/cjwh

我正在尝试在我的系统上设置RoR。我已经使用了这里的说明

我被卡住了,因为我终于能够安装Rails了,但是在我设置Ruby版本之后,它就不再检测Rails了

CJs-MacBook-Air:~ cjwheelock$ rails -v
Rails 4.0.1
CJs-MacBook-Air:~ cjwheelock$ rvm use ruby-2.0.0@learn-rails --create
Warning! PATH is not properly set up, '/Users/cjwheelock/.rvm/gems/ruby-2.0.0-p353/bin'          is not at first place,
     usually this is caused by shell initialization files - check them for 'PATH=...' entries,
     it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
     to fix temporarily in this shell session run: 'rvm use ruby-2.0.0-p353'.
将/Users/cjwheelock/.rvm/gems/ruby-2.0.0-p353与gemset学习轨一起使用

CJs-MacBook-Air:~ cjwheelock$ rails -v
此系统上当前未安装Rails。要获取最新版本,只需键入:

$ sudo gem install rails
然后可以重新运行“rails”命令

错误:执行gem时。。。(Gem::例外) 无法要求openssl、安装openssl并重建ruby(首选)或使用非HTTPS源

任何帮助都将不胜感激。希望我的格式是可读的,这是我第一次在这里发布


谢谢。

您是否尝试过
rvm稳定-自动点文件?

第一次重新启动终端

# rvm list
# rvm use 2.0.0-pXXX --default (XXX is the biggest number)
# gem install rails
如果您遇到一些问题,请按照要求安装(openssl等:键入以下内容以获取更多信息)

安装deb软件包

# sudo apt-get install blaaaaaaaa
重新安装ruby 2.0.0

# rvm reinstall 2.0.0
试着迈出第一步。
祝你好运

你是如何设置你的ruby版本的?
# sudo apt-get install blaaaaaaaa
# rvm reinstall 2.0.0