我使用Rails 4.0.5,在我的.bash_profile中有这个
-s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
但我发现了一个错误:
The program 'rails' can be found in the following packages:
* ruby-railties-3.2
* ruby-railties-4.0
Try:
为了在RPM系统(OS基于CentOS)上安装Ruby1.9.2,我再次尝试使用RVM。
因此,一旦我安装了它,我就会尝试使用它:
[root@quackwall ~]# rvm use 1.9.2
Using /usr/local/rvm/gems/ruby-1.9.2-p136
[root@quackwall ~]# ruby
bash: ruby: command not found
[root@quackwall ~]# which ruby
/usr/bin/which: no ruby in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/u
我已经用Ruby1.9.2建立了RVM系统,据我所知,它运行得很好。
但是当我试图编译乘客apache2模块时
passenger-install-apache2-module
它将其编译为系统的1.8.7 ( ext/ruby文件夹包含ruby-1.8.7-x86_64-linux),当我启动apache时,乘客会抱怨:
*** Phusion Passenger: no passenger_native_support.so found for the current Ruby interpreter. Compiling one...
# mkdir -p /usr/local/rvm/
我的rvm环境中仍在与有害的bug作斗争:
rails -v
/usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:296:in `to_specs': Could not find 'railties' (>= 0) among 0 total gem(s) (Gem::LoadError)
from /usr/local/lib/site_ruby/1.8/rubygems/dependency.rb:307:in `to_spec'
from /usr/local/lib/si
我已经运行了命令: gem install bcrypt '3.1.7‘。
不幸的是,gem无法安装。相反,我得到了以下输出:
Fetching: bcrypt-3.1.7.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing bcrypt-ruby:
ERROR: Failed to build gem native extension.
/usr/local/rvm/rubies/ruby-1.8.7-head/bin/rub
按照的指示,我转到以下行:
rvm install 1.9.2
返回:
ruby-1.9.2-p0 - #fetching
ruby-1.9.2-p0 - #extracting ruby-1.9.2-p0 to
mv: cannot move `/tmp/rvm_src_18035/ruby-1.9.2-p0' to `': No such file or directory
~/.rvm/scripts/manage: line 1237: ruby-1.9.2-p0 - #extracted to : command not found
Running autocon
我正在尝试安装乘客/nginx到ubuntu 12.10上。
当我尝试运行passenger-install-nginx-module rvmsudo时,我得到:
/usr/bin/env: passenger-install-nginx-module: No such file or directory
$PATH的结果
bash: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/usr/local/games:/home/deploy/.rvm/bin:/home/deploy/.rvm/b
最近,在试图升级我的ruby版本时,我从rvm中遇到了以下错误。
Warning! PATH is not properly set up, '/home/sam/.rvm/gems/ruby-2.2.1/bin' is not at first place,
我的echo $PATH如下:
/usr/local/heroku/bin:/home/sam/.rvm/gems/ruby-2.2.1/bin:/home/sam/.rvm/gems/ruby-2.2.1@global/bin:/home/sam/.rvm/rubies/ruby-2.2.1/bin:/usr/loca
我一直在使用rails,并尝试用RAK10.1.0设置乘客,并且它将此错误发回给我。
下面是指向错误的链接.
It looks like Bundler could not find a gem. This is probably because your
application is being run under a different environment than it's supposed to.
Please check the following:
* Is this app supposed to be run as the `rails` user?
* Is
我对RVM有意见。通常,我使用特定于项目的gem集;但是,最近当我在@global gem中安装一个gem时,当我在一个特定的项目中工作时,它是不可用的。这里有一个例子,我试图安装hpricot。这是在安装创业板和启动一个新的外壳之后。
$ rvm use ruby-1.9.2
Using /home/bshaver/.rvm/gems/ruby-1.9.2-p180
$ gem list
*** LOCAL GEMS ***
bundler (1.0.12)
hpricot (0.8.4)
rake (0.8.7)
$ rvm use ruby-1.9.2@myproject-gem