rvm

RVM Gempath not being set

一世执手 提交于 2019-12-25 05:22:12
问题 I recently installed RVM. After loading my .rvmrc I tried bundle install and got the error informing me bundler was not installed. After installing bundler , the bundler not installed error persisted. After some quick digging I discovered that the RVM gem paths are not being used by rubygems. Here is gem env : RubyGems Environment: - RUBYGEMS VERSION: 1.8.24 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] - INSTALLATION DIRECTORY: /home/jhalecom/ruby/gems - RUBY EXECUTABLE:

RVM Gempath not being set

半腔热情 提交于 2019-12-25 05:22:08
问题 I recently installed RVM. After loading my .rvmrc I tried bundle install and got the error informing me bundler was not installed. After installing bundler , the bundler not installed error persisted. After some quick digging I discovered that the RVM gem paths are not being used by rubygems. Here is gem env : RubyGems Environment: - RUBYGEMS VERSION: 1.8.24 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] - INSTALLATION DIRECTORY: /home/jhalecom/ruby/gems - RUBY EXECUTABLE:

capistrano 3 + rvm1-capistrano3 rails 4.1 secrets.yml environmental variables issue

徘徊边缘 提交于 2019-12-25 05:13:36
问题 I have been deploying rails 4.1 application with capistrano 3. it has been working fine. but when i tried to do rake tasks (uncommenting require 'capistrano/rails/assets'). i get this error cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host xxx.xxx.xxx.xxx: rake exit status: 1 rake stdout: Nothing written rake stderr: config.eager_load is set to nil. Please update your config/environments/*.rb files accordingly: * development - set it to false * test - set it to

How to specify rvm gemsets for Rails gem whenever?

你说的曾经没有我的故事 提交于 2019-12-25 04:53:28
问题 MyApp is using rvm gemset 1.9.3@rails-3.2. It is not default. I am using gem 'whenever' to periodically send email notifications. This is my schedule.rb: every 1.minutes do runner "MyModel.send_emails" # if ... end Cron job is not working unless gemset 1.9.3@rails-3.2 is default. How can i improve my schedule.rb in order to use another gemsets (not only default @global) for my scheduller. I have read official documentation: whenever and rvm issues and stackoverflow questions about "rvm

How to change rvm gemset over ssh on os x server

这一生的挚爱 提交于 2019-12-25 03:15:59
问题 ok I don't know how to change rvm version over ssh under os x server. What I do: Login on server over ssh run script (below) and catch error Error: 'rvm is not a funciton, many-many-words' What I have as script: use File::Spec; my $server_directory = File::Spec->catfile($ENV{HOME},'MyProject'); my $exec_file = File::Spec->catfile($server_directory,'run_script.rb'); my $run_ruby_script = qq'bundle exec ruby $exec_file'.' '.join(' ',@ARGV); # reload bash profile print qx(source $ENV{HOME}/.bash

rvm system install, bins not properly symlinked

▼魔方 西西 提交于 2019-12-25 02:53:46
问题 I'm on ubuntu 12.04 and installed rvm system wide with: $ \curl -L https://get.rvm.io | sudo bash -s stable So far I've always performed single user installs and to he honest I'm quite confused by the results of the system wide install. It did put the rvm bin directory in my path, but it symlinked all the binaries with names that can't be directly used. Does it mean that I should symlink them one by one? Did something go wrong? Is that the defalt behaviour? appusr@server-name:/usr/local/rvm

Error while installing RVM on ubuntu 11.04. Seems to be git clone's error

别等时光非礼了梦想. 提交于 2019-12-25 02:21:42
问题 When I try to install RVM the following error shows up: $ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm) Cloning into rvm... fatal: The remote end hung up unexpectedly Cloning into rvm... error: RPC failed; result=56, HTTP code = 100 fatal: The remote end hung up unexpectedly ERROR: Unable to clone the RVM repository, attempted both git:// and https:// This is a git clone error I'm getting recently. e.g When I try to clone nodejs. error: RPC failed; result=56, HTTP code = 100

Updated Ruby in production and now Rails won't start because still referencing old ruby

只谈情不闲聊 提交于 2019-12-25 00:24:57
问题 Just updated Ruby on a staging server via RVM: $ rvm upgrade 1.9.3-p327 1.9.3-p362 I said 'yes' to all the migration and alias questions including deleting old Ruby. Now getting error from Passenger whenever I try to access Rails application: Error message: dlopen(/Library/WebServer/rails/myapp/shared/bundle/ruby/1.9.1/gems/bcrypt-ruby-3.0.1/lib/bcrypt_ext.bundle, 9): Library not loaded: /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/libruby.1.9.1.dylib Referenced from: /Library/WebServer/rails

Vagrant - Rails Not Installed

吃可爱长大的小学妹 提交于 2019-12-24 21:28:46
问题 I recently had to destroy and recreate my Vagrant instance. Now I can't run any rails command as it says Rails is not installed. When I did Vagrant Up I got the following error default: /tmp/vagrant-shell: line 1: /home/vagrant/.rvm/scripts/rvm: No such file or directory The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! My Provision.sh file contains the following: echo "deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg

“File not found: lib” when switching to older rails version using RVM

心不动则不痛 提交于 2019-12-24 15:44:01
问题 I currently have rails 3.0.3 and am trying to download and use version 3.0.1. I've downloaded and installed RVM and inputted the following code in Terminal (I have a Mac OS X 10.6.5): rvm use 1.8.7 rvm gemset create rails3.0.1 rvm 1.8.7@rails3.0.1 sudo gem install rails --version=3.0.1 I use sudo gems because of the user permissions, or my lack there of. Anyway, after I enter the last line of code: "sudo gem install rails --version=3.0.1" I get the following error: Successfully installed