rvm

Default Ruby not loading with RVM

社会主义新天地 提交于 2019-12-20 04:26:31
问题 Not sure if this issue is related to a recent Oh-My-ZSH update, but all of a sudden, my RVM default Ruby is not loading when opening a new Terminal window (instead, it loads the system Ruby). I have added [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" to about every dotfile on my system (.zshrc, .zprofile, .zlogin, .profile, even .bashrc and .bash_profile for good measure). RVM is loading when the session starts (I can manually switch to the default with rvm default ), and

New Rails installation - no such file to load — phusion_passenger/alalytics_logger

≡放荡痞女 提交于 2019-12-20 04:22:34
问题 I just installed Ruby on Rails on my server and keep getting the following error when I view the page. Error Message: No such file to load -- phusion_pasenger/analytics_logger Current Installation: Ubuntu 10.04 64 Apache 2 RVM 1.5.2 Ruby 1.8.7 EE Rails 3.0.5 Passenger 3 回答1: Mongus Pong's answer came in while I was typing the same thing about permissions. Check into the PassengerUser and PassengerUserSwitching directives to setup the appropriate users and permissions. http://www.modrails.com

Heroku Toolbelt install problems

北慕城南 提交于 2019-12-20 03:33:06
问题 I uninstalled the heroku gem and installed the Heroku Toolbelt and am running into issues getting it working w/ RVM. heroku version command works everywhere except my current project folder. In my project folder I get '/Users/cmalpeli/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in 'block in replace_bin_path': can't find executable heroku (Gem::Exception) from ./bundler_stubs/heroku:16:in ` Running which heroku in my project directory returns: .

Heroku Toolbelt install problems

三世轮回 提交于 2019-12-20 03:33:01
问题 I uninstalled the heroku gem and installed the Heroku Toolbelt and am running into issues getting it working w/ RVM. heroku version command works everywhere except my current project folder. In my project folder I get '/Users/cmalpeli/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:223:in 'block in replace_bin_path': can't find executable heroku (Gem::Exception) from ./bundler_stubs/heroku:16:in ` Running which heroku in my project directory returns: .

RVM - Not able to use gems from the @global gemset

◇◆丶佛笑我妖孽 提交于 2019-12-20 02:26:06
问题 I'm having an issue with RVM. In general I use project specific gemsets; however, recently when I install a gem into the @global gemset, it is not available when I'm working in a particular project. Here is an example where I was trying to install the hpricot gem. This is right after installing the gem and starting a fresh shell. $ 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

[[: Command not found

淺唱寂寞╮ 提交于 2019-12-20 02:14:35
问题 I'm installing RVM on a system where I don't have sudo permissions. It should work fine in theory, but when I added [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" to bash_profile, it isn't doing what it's supposed to and it gives me this error [[: Command not found. Anyone know what might be the problem? 回答1: "[[" .. "]]" is a bash builtin. Is another shell running the script? 回答2: Put the following at the top of your script: #!/bin/bash This will enforce bash to be the

Installing ruby using RVM fails, without trace

为君一笑 提交于 2019-12-19 21:23:43
问题 Ok, I installed RVM. I tested using: type rvm | head -n1 The output: "rvm is a function". So far so good. Then I tried: rvm install 1.8.7-p302 All went smoothly, but then: $ ruby -v The program 'ruby' is currently not installed. You can install it by typing: sudo apt-get install ruby RVM says all went fine through the install... Getting RVM info it says: $ rvm info ruby-1.8.7-p302: system: uname: "Linux pi-ubuntu 2.6.32-24-generic-pae #43-Ubuntu SMP Thu Sep 16 15:30:27 UTC 2010 i686 GNU/Linux

Requiring a Ruby Gem in Ruby Script breaks Cron Job Execution

怎甘沉沦 提交于 2019-12-19 04:22:32
问题 I'm trying to run a cron job using Gems. I've installed ruby via RVM and when I require a gem it breaks the cron job. I've tried requiring two totally different gems, PG / Pry, and when I require either, the cronjob doesn't complete. Here is the "testing code" that works fine: open('/home/log.log', 'a') do |f| f.puts Time.now.to_s end Here is how I setup the cronjob: * * * * * /usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby /home/test1.rb I can see new output every minute. And when I add a

ruby in linux: permanently “source .rvm/scripts/rvm”?

ε祈祈猫儿з 提交于 2019-12-18 21:53:57
问题 I'm new to Ruby on Rails and have just set it up in Ubuntu Linux following instructions I found here. Specifically, As s.m. said, I uninstalled everything, then I opened another terminal session as a normal user and run: bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) then i run source /home/my-desktop-username/.rvm/scripts/rvm as a normal user NOT ROOT then i run rvm requirements as a normal user. Then I copy the requirements and close the

Could not find rake-10.1.0 in any of the sources

余生颓废 提交于 2019-12-18 17:53:06
问题 I have been working with rails and have been trying to setup passenger with rake 10.1.0 and it sends back me this errors. Here is the link to the error.Website LInk 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 this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter