rvm

ruby gems under rvm on Ubuntu (failing to) install in the wrong location

▼魔方 西西 提交于 2019-12-23 15:56:28
问题 I'm running Ubuntu 10.04 and originally installed ruby 1.9.1 (from source). I've just decided to try out ruby 1.9.2 and rails 3, and it seemed like a good time to use rvm to deal with the multiple ruby installs and gemsets. rvm installed and seems to be working, I installed ruby 1.9.2 in rvm and made that my default ruby. However, every time I try to install a gem under ruby 1.9.2 I see this error. mark@Steve-Austins-Penguin:~$ gem install haml ERROR: While executing gem ... (Errno::EACCES)

RVM error with Requirements installation failed with status:1

徘徊边缘 提交于 2019-12-23 13:32:18
问题 I tried to install ruby 1.9.3 using command rvm install 1.9.3 --with-gcc=clang . But I got error saying No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p448. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Requirements installation failed with status: 1. While I look into the installing log, I found it's saying config/: Can't update time for config doc/: Can't update time for doc m4/: Can't update time for m4 Mk/: Can't update

Jenkins using wrong version of Ruby(rvm)

隐身守侯 提交于 2019-12-23 13:16:49
问题 Have next situation: Using jenkins Installed rvm with different ruby versions(2+) Installed rvm plugin Enabled option "Run the build in a RVM-managed environment" in "Build Environment" with ruby version ruby-2.3.0@global Now about problem. After each starting of jenkins job I can see next output: Capturing environment variables produced by 'rvm use ruby-2.3.0@global' $ bash -c export [workspace] $ bash -c " source /usr/local/rvm/scripts/rvm && rvm use --install --create ruby-2.3.0@global &&

Jenkins using wrong version of Ruby(rvm)

落花浮王杯 提交于 2019-12-23 13:16:10
问题 Have next situation: Using jenkins Installed rvm with different ruby versions(2+) Installed rvm plugin Enabled option "Run the build in a RVM-managed environment" in "Build Environment" with ruby version ruby-2.3.0@global Now about problem. After each starting of jenkins job I can see next output: Capturing environment variables produced by 'rvm use ruby-2.3.0@global' $ bash -c export [workspace] $ bash -c " source /usr/local/rvm/scripts/rvm && rvm use --install --create ruby-2.3.0@global &&

Stop asking for password when installing gems

倾然丶 夕夏残阳落幕 提交于 2019-12-23 12:23:55
问题 Whenever I bundle my rails 3.2 gems, it asks me for my password: Enter your password to install the bundled RubyGems to your system This gets really annoying, especially when bundling several times in one project. However, when I set the gem directory to world-readable, it always gives me a warning when executing any (!) rails command. This is even more annoying, of course. How can I turn this off? 回答1: Absolutely has to do with the system ruby, not RVM, unless you installed RVM using the

“uninitialized constant Encoding” using rvm, ruby 1.9.2, bundler and passenger

大城市里の小女人 提交于 2019-12-23 11:45:12
问题 I am at wit's end here and am turning to you all for some help on this f*#$^ encoding issue. I am running on a private server with root permissions on Dreamhost. Here is a bit about my environment and versions. $ `which ruby` -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] $ `which bundle` -v Bundler version 1.0.15 $ `which rails` -v Rails 3.0.9 Aside from this error, my rails app runs fine without issue. However, when I try to change the encoding a string by using the encode

“uninitialized constant Encoding” using rvm, ruby 1.9.2, bundler and passenger

蓝咒 提交于 2019-12-23 11:45:04
问题 I am at wit's end here and am turning to you all for some help on this f*#$^ encoding issue. I am running on a private server with root permissions on Dreamhost. Here is a bit about my environment and versions. $ `which ruby` -v ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-linux] $ `which bundle` -v Bundler version 1.0.15 $ `which rails` -v Rails 3.0.9 Aside from this error, my rails app runs fine without issue. However, when I try to change the encoding a string by using the encode

How to reinstall ruby with readline support?

本小妞迷上赌 提交于 2019-12-23 11:14:49
问题 I have installed Ruby through RVM as instructions on https://github.com/wayneeseguin/rvm#installation. For information I have all the archives ( readline-5.2.tar.gz, readline-6.2.tar.gz, ruby-1.9.3-p327.tar.bz2, rubygems-1.8.24.tgz, wayneeseguin-rvm-stable.tgz and yaml-0.1.4.tar.gz ) in ~/.rvm/archives directory and I don't want to re-download them in any way. When I do: sudo /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl

How to reinstall ruby with readline support?

一曲冷凌霜 提交于 2019-12-23 11:14:12
问题 I have installed Ruby through RVM as instructions on https://github.com/wayneeseguin/rvm#installation. For information I have all the archives ( readline-5.2.tar.gz, readline-6.2.tar.gz, ruby-1.9.3-p327.tar.bz2, rubygems-1.8.24.tgz, wayneeseguin-rvm-stable.tgz and yaml-0.1.4.tar.gz ) in ~/.rvm/archives directory and I don't want to re-download them in any way. When I do: sudo /usr/bin/apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl

Ruby using wrong version of openssl

ε祈祈猫儿з 提交于 2019-12-23 07:58:12
问题 $ brew install openssl Warning: openssl-1.0.2a-1 already installed $ openssl version OpenSSL 0.9.8zd 8 Jan 2015 $ ruby -ropenssl -e 'puts OpenSSL::OPENSSL_VERSION' OpenSSL 1.0.1j 15 Oct 2014 $ rvm -v rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/] I'm seeing a lot of discrepancies between the versions of openssl. Homebrew thinks it's on 1.0.2a-1 , openssl itself thinks it's on 0.9.8zd , and Ruby thinks it's on 1.0.1j . I don