rvm

how to do a completely silent install of rvm

混江龙づ霸主 提交于 2019-12-11 06:58:31
问题 How to install rvm silently, suppressing stdout and stderr. I tried \curl -s -L https://get.rvm.io | bash -s --quiet-curl bash: --: invalid option 回答1: you can dump the output to /dev/null using file descriptors STDOUT (file descriptor 1) is redirected first, followed by STDERR (file descriptor 2) \curl -s -L https://get.rvm.io | bash -s > /dev/null 2>&1 来源: https://stackoverflow.com/questions/44222770/how-to-do-a-completely-silent-install-of-rvm

How do I use RVM with tcsh?

邮差的信 提交于 2019-12-11 06:57:37
问题 I would like to use RVM with tcsh; how do I do this? As far as I can see, there are no "official" instructions for this. I followed the instructions on "Using RVM with tcsh", but this didn't work for me; in particular, I don't have access to the Ruby binaries ruby , bundle , irb , rspec , etc. 回答1: This worked well for me on OS X Yosemite 10.10.2, though it adds about a 5-second delay to opening a Terminal window each time due to the RVM initialization. Create this file: https://gist.github

ActionView::Template::Error (undefined method `getlocal' for “2008-02-14T02:20:50Z”:String):

邮差的信 提交于 2019-12-11 06:28:41
问题 After updating Mongoid 3.0.1 / Rails 3.2.6 it start getting a 'getlocal' method error when displaying created_at : Showing /home/lsoave/rails/github/gitwatcher/app/views/shared/_watch-list-table.html.haml where line #28 raised: undefined method `getlocal' for "2008-02-14T02:20:50Z":String Extracted source (around line #28): 28: %td= repo.created_at.to_s(:pretty) UPDATE I've got a config/initializers/time_formats.rb which set that format $ cat config/initializers/time_formats.rb Time::DATE

Fish shell and rvm - allowing login shell

两盒软妹~` 提交于 2019-12-11 05:29:00
问题 When I try to use rvm in fish shell, I get this message: ciembor@ciembor ~> rvm use 1.9.2 RVM is not a function, selecting rubies with 'rvm use ...' will not work. You need to change your terminal emulator preferences to allow login shell. Sometimes it is required to use /bin/bash --login as the command. Please visit https://rvm.io/integration/gnome-terminal/ for a example. I get used to use /bin/bash --login , then rvm and then starting fish from bash . But isn't there more straightforward

Rake assets:precompile cannot find ruby

邮差的信 提交于 2019-12-11 05:06:02
问题 I'm setting up a Ruby on Rails production environment. I'm using a multi user install of RVM. When running rake assets:precompile I get the following error. Other rake tasks seem to work fine. ruby@myserver:/sites/rails/necura_staging/shared/cached-copy$ bundle exec rake assets:precompile --trace ** Invoke assets:precompile (first_time) ** Execute assets:precompile /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby ruby /usr/local/rvm/gems/ruby-1.9.3-p448@global/bin/rake assets:precompile --trace

How to get rid of errors while creating a new rails app on a NTFS partition?

浪尽此生 提交于 2019-12-11 04:34:00
问题 When I create a new rails application on my NTFS partition I receive a bunch of errors. Though, with the same configuration I do not get any error when I create the project in my home directory which sits on a ext4 formatted partition. Here is what I get. $ rails new project create create README create Rakefile [...] create public/index.html create public/robots.txt create script create script/rails /home/user/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/fileutils.rb:1323:in `chmod': Operation

ruby on rails PIK gemset like RVM gemset?

。_饼干妹妹 提交于 2019-12-11 04:33:23
问题 I've worked with RVM where I can get gemset's and stuff, but there's no way of getting it with PIK? any idea? I tried looking for a solution but couldn't find one. Hopefully someone has any clue on this issue? Thanks! 回答1: As refer to below link we can use pik on windows instead of rvm as a workaround: https://github.com/vertiginous/pik/issues/16#issuecomment-3515658 In case anyone is interested, I've just tried a simplistic work-around. So far, so good... cd %HOMEPATH%\.pik\rubies xcopy /s

/usr/local/rvm/bin/rvm-shell: No such file or directory

走远了吗. 提交于 2019-12-11 03:46:57
问题 I have the problem. I've installed rvm but when I try to cap deploy:setup I have: bash: /usr/local/rvm/bin/rvm-shell: No such file or directory command finished in 244ms failed: "rvm_path=/usr/local/rvm /usr/local/rvm/bin/rvm-shell 'ruby-1.9.3-p0' -c 'mkdir -p /srv/xxx /srv/xxx/releases /srv/xxx/shared /srv/xxx/shared/system /srv/xxx/shared/log /srv/xxx/shared/pids'" on xxxxxxxx I've tried to cd to /usr/local/rvm but I have No such file or directory . How to fix it? 回答1: set :default_shell, "

Long installing ri documentation for rails-4.0.2

帅比萌擦擦* 提交于 2019-12-11 03:44:58
问题 I'm have two machines with Ubuntu and Debian. I installed RVM on every machines, and installed latest stable ruby. But when i'm trying make gem install rails gem starting install all gems and stopping on "Installing ri documentation for rails-4.0.2". What i'm doing wrong? Thank you 回答1: It is good that it installs all dependency gems first, but strange that halts. How much time the installation of ri get? Anyway, to disable ri or rdoc installation, add the following file inside of your home

How to load the RVM part of user's .bashrc to run Ruby CGI scripts under Apache?

徘徊边缘 提交于 2019-12-11 03:37:49
问题 I've configured a new server on Ubuntu 12.04 and I started to use RVM. I've installed RVM under my user (as myself, not as root with sudo) by following the Ryan Bigg's guide, with no previous system-wide installed Ruby. So, I didn't have any Ruby under /usr/bin. My first task then was to replace the shebang line of all my CGI scripts, from !#/usr/bin/ruby to !#/usr/bin/env ruby However my scripts didn't run under Apache. In the terminal I could run them (by typing ./index.cgi , for example),