rvm

Rails command line not found when installed with RVM

≯℡__Kan透↙ 提交于 2019-12-08 16:38:40
问题 After installing RVM, I have installed Ruby 1.8.7 then Rails 3. When I do which rails I get /Users/davidbenhamou/.rvm/gems/ruby-1.8.7-p302/bin/rails . But when I do rails -v I get -bash: /usr/bin/rails: No such file or directory Why is Rails not working? Note: I have followed all steps from RVM website and Ruby command line work fine ( ruby -v ). 回答1: To see the rubies you have installed: rvm list rubies And you'll see something like this: ree-1.8.7-2011.03 [ i686 ] * ruby-1.9.2-p290 [ x86_64

codekit external compass compiler path

半腔热情 提交于 2019-12-08 13:42:58
问题 I'm working on someone else's project that was built in wordpress and foundation with compass. I only need to change one line of css, but Codekit keeps throwing up "unable to compile files" messages whenever I save the .scss file. I know that this is a result of the require statement in the project's config.rb file and that codekit doesn't play well with rvm. The solution should be to change codekit's advanced compiler settings to the compass gem I've installed via the command line in my

RVM can't set ruby as default

Deadly 提交于 2019-12-08 11:42:44
问题 I have no idea why but RVM can't seem to change the default Ruby. I'm using Oh My Zsh and tried everything I've found but nothing seems to work. ➜ Sites rvm use 2.0.0 --default Using /Users/anahkiasen/.rvm/gems/ruby-2.0.0-p247 ➜ Sites rvm list rvm rubies =* ruby-2.0.0-p247 [ x86_64 ] # => - current # =* - current && default # * - default ➜ Sites rvm reload && rvm list RVM reloaded! rvm rubies * ruby-2.0.0-p247 [ x86_64 ] # => - current # =* - current && default # * - default Now the Ruby is

Missing Rails gem error, but its installed!

大憨熊 提交于 2019-12-08 07:56:46
问题 So I'm new to rails and am actually following a video tutorial from Lynda.com in order to learn it. I didn't follow the steps to install on the video because I heard of RVM and its been great so far with getting everything setup. But I'm still early on in the video and can't get passed something really simple... so I'm hoping someone can help me out. Heres some background: I have RVM installed and created 1.8.7@rails2.3.8. I was able to install both ruby and rails, and everything here is fine

Ruby 1.9.2 and pcap gem? Compiling error

纵饮孤独 提交于 2019-12-08 02:58:20
问题 I am having trouble installing the pcap gem with ruby 1.9.2... It works fine with 1.8.7. Anyone know whats going on? wuntee@wuntee:~$ rvm use system Now using system ruby. wuntee@wuntee:~$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] wuntee@wuntee:~$ gem install pcap WARNING: Installing to ~/.gem since /Library/Ruby/Gems/1.8 and /usr/bin aren't both writable. WARNING: You don't have /Users/wuntee/.gem/ruby/1.8/bin in your PATH, gem executables will not run. Building

Error running jekyll locally (rvm gemset issue)

[亡魂溺海] 提交于 2019-12-08 02:55:48
问题 I installed ruby 1.9.3 thru RVM, and now want to get the rekyll gem so that I can test my blog locally. When I gem install jekyll it intalls ok, but when i try to run jekyll --server i get an error: /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find jekyll (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) from /Users/matt/.rvm/rubies/ruby-1.9.3-p194/lib

To use bash --login by default with capistrano 3 + sshkit + rvm

给你一囗甜甜゛ 提交于 2019-12-08 02:18:20
问题 I have following cap3 task task :gemset do on roles(:all) do if remote_dir_exists?(".rvm") execute :rvm, :gemset, :use, "#{ Configs.rvm.ruby }@#{ Configs.rvm.gemset } --create" else info "RVM not installed" end end end for settings rvm: ruby: ruby-2.0.0-p247 gemset: cap3 it should execute on my server following command rvm gemset use ruby-2.0.0-p247@cap3 --create but it gives to me DEBUG [9bd5fc11] RVM is not a function, selecting rubies with 'rvm use ...' will not work. DEBUG [9bd5fc11]

Error install rvm 1.9.3

早过忘川 提交于 2019-12-08 02:09:45
问题 Trying to solve this error.... $ rvm install 1.9.3 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.8/x86_64/ruby-1.9.3-p392. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing requirements for smf, might require sudo password. Installing required packages: libksba, sqlite................................................... Error running 'requirements_smf_libs_install libksba sqlite', please

Rails S Won't Start the Server: Could not find rails (>= 0)?

半腔热情 提交于 2019-12-08 01:41:16
问题 I am fairly new to Ruby/Rails but I just have not found out how to get it started (it worked a few days ago). I am in the actuall app folder and then rails s /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs': Could not find rails (>= 0) amongst [minitest-1.6.0, rake-0.8.7, rdoc-2.5.8] (Gem::LoadError) from /Users/me/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:256:in `to_spec' from /Users/me/.rvm/rubies/ruby

Missing required gems when execute cron created by whenever gem in production environment

末鹿安然 提交于 2019-12-08 00:46:49
问题 I've ruby on rails application running in production, this apps have STOCK model and it should be updated every 1 minute. For updating this model i create simple rake task db:populate:stocks , when it contain only two operation : truncate the STOCK model fill STOCK model with latest data fetch from webservice this rake task should be execute every 1 minute, for this purpose i use whenever gem . Here my schedule.rb : env :PATH, ENV['PATH'] set :job_template, nil set :output, {:standard => '