rvm

Bundler: How can I bundle install from outside the ruby app directory?

China☆狼群 提交于 2019-12-13 05:12:53
问题 Attempt 1: Installation from outside ruby app directory Fresh Vagrant install and it doesn’t work: $ bundle install --path=/var/ruby/test/ --gemfile=/var/ruby/test/Gemfile Fetching gem metadata from https://rubygems.org/......... Using bundler 1.16.3 Fetching daemons 1.2.6 Installing daemons 1.2.6 Fetching eventmachine 1.2.7 Installing eventmachine 1.2.7 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: /var/ruby/test/ruby/2.3.0/gems

Install RVM into the current user HOME directory

我怕爱的太早我们不能终老 提交于 2019-12-13 04:59:11
问题 Quote from site: If the install script is run as a standard, non-root user, RVM will install into the current users's home directory. Well: demas@demas:/www/sites/in_use/dev/public_html$ su demas Password: demas@demas:/www/sites/in_use/dev/public_html$ \curl -L https://get.rvm.io | bash -s % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 184 100 184 0 0 174 0 0:00:01 0:00:01 --:--:-- 229 100 13641 100 13641 0 0 8774 0 0:00:01 0:00:01 --:-

RVM on Ubuntu Troubles

人盡茶涼 提交于 2019-12-13 04:55:58
问题 I've run into a lot of issues whilst attempting to install RVM on Ubuntu 9.10. Here's the steps I've tried doing: install ruby (via ruby site, no package manager) download rvm install rvm (make edit to .bashrc) use rvm to install ruby version & gems Is there any crucial step that I seem to be missing? 回答1: Be sure to have selected an installed ruby (the --default portion tells rvm you want this ruby to be your default ruby version). Something like: rvm --default use 1.9.2 Also this command

Installing ruby 2.0.0-p247 on Ubuntu 12.04.1 LTS

a 夏天 提交于 2019-12-13 04:37:09
问题 I am trying to install ruby 2.0 on my ubuntu box and I keep getting the following: SERVER_USER@SERVER_NAME:/var/www/FOLDER_NAME$ rvm get stable && rvm install ruby-2.0.0 ERROR: Unknown ruby interpreter version: '2.0.0' Installing Ruby from source to: /usr/share/ruby-rvm/rubies/ruby-2.0.0-p247, this may take a while depending on your cpu(s)... ruby-2.0.0-p247 - #fetching ruby-2.0.0-p247 - #downloading ruby-2.0.0-p247, this may take a while depending on your connection... curl: (3) <url>

RVM - can not install gem thrift on Ubuntu 11.10

…衆ロ難τιáo~ 提交于 2019-12-13 04:04:20
问题 I use Ubuntu 11.10 and ruby 1.9.2 I can not install thrift gem on my machine $ gem install thrift --no-ri --no-rdoc Building native extensions. This could take a while... ERROR: Error installing thrift: ERROR: Failed to build gem native extension. /home/sayuj/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb checking for strlcpy() in string.h... no creating Makefile make gcc -I. -I/home/sayuj/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-linux -I/home/sayuj/.rvm/rubies/ruby-1.9.2-p290

Bad: modifier error when installing RVM

限于喜欢 提交于 2019-12-13 03:38:32
问题 I'm trying to run source /Users/alastair/.rvm/scripts/rvm , but keep getting: Bad : modifier in $ ("). Where would the problem be? Happy to paste other files in if these would help. 回答1: Are you in any case running a shell that is not Bash or ZSH ? Bash >= 3.2.25 or ZSH >= 4.3.10 is required. Your problem looks like you were using minimalistic shell sh which is not supported by RVM . You can check user shell in /etc/passwd and change it with chsh -s /path/to/new/shell - list of allowed shells

line doesn't execute in .bash_profile and .bashrc on my Mac OSX Snow Leopard

牧云@^-^@ 提交于 2019-12-13 02:59:59
问题 I just installed Ruby Version Manager (RVM) which is working fine but it asked me to put the following line in my /.bash_profile and ~/.bashrc files: if [[ -s /Users/tammam56/.rvm/scripts/rvm ]] ; then source /Users/tammam56/.rvm/scripts/rvm ; fi looking at the content I see the following: tammam56$ cat /.bash_profile export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" if [[ -s /Users/tammam56/.rvm/scripts/rvm ]] ; then source /Users/tammam56/.rvm/scripts/rvm ; fi tammam56

Capistrano throws /usr/bin/env: ruby: No such file or directory when performing a deploy:migration

倾然丶 夕夏残阳落幕 提交于 2019-12-13 02:37:33
问题 I set up Capistrano to make the deploy of my app. I made it in steps, so first I set up the code deployment, so I commented all the roles but :app . I'm using rvm and I had some problems with it. The biggest problem was an error that said /usr/bin/env: ruby: No such file or directory . I solved them using the gem capistrano/rvm and requiring it in the Capfile and adding the following line to the deploy.rb file: set :default_env, { path: "/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:$PATH" }

RVM default is 2.1.1 but 2.1.2 is loaded initially

喜夏-厌秋 提交于 2019-12-13 00:16:32
问题 When I run rvm list I get the following: rvm rubies ruby-1.9.2-p318 [ x86_64 ] ruby-1.9.3-head [ x86_64 ] ruby-1.9.3-p125 [ x86_64 ] ruby-1.9.3-p484 [ x86_64 ] ruby-2.0.0-p353 [ x86_64 ] =* ruby-2.1.1 [ x86_64 ] Which would make me think that 2.1.1 is my default ruby version. However, when I open a new terminal window and run ruby -v I get ruby 2.1.2p95 (2014-05-08 revision 45877) [x86_64-darwin13.0] My .bash_profile doesn't do anything besides setting $PATH and a few other variables so I

RVM ruby installation issue

廉价感情. 提交于 2019-12-12 16:54:47
问题 I've already got ruby and rails installed for some time and worked on some projects. Lately I've installed the Xcode 5 developer preview in order to get my apps ready for iOS 7. I'm just mentioning this in case the new Xcode messed it up. I first noticed the error when trying to rake asets:precompile in the rails project directory. It gives the following error: /Users/User/.rvm/bin/ruby: line 6: /Users/User/.rvm/bin/ruby: Argument list too long /Users/User/.rvm/bin/ruby: line 6: /Users/User/