rvm

Ruby on Rails TypeError

倾然丶 夕夏残阳落幕 提交于 2019-12-10 16:08:32
问题 I have been working on a ruby on rails application and ran into the following error when doing just about anything, including installing a gem, updating the bundle, installing the bundle. ERROR: While executing gem ... (TypeError) incompatible marshal file format (can't be read) format version 4.8 required; 31.139 given I have uninstalled RVM and completely removed all files from it, then tried to install a gem, but still get the same error. 回答1: I had this exact problem, and it took me

Can't get RVM to switch rubies

允我心安 提交于 2019-12-10 15:38:58
问题 How do I explicitly point my fish shell to RVM's version of rubies? I'm using fish shell and I installed RVM. However, no matter what I do, RVM doesn't want to switch rubies. rvm rubies =* ruby-2.3.0 [ x86_64 ] > ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] > rvm use ruby-2.3.0 Using /Users/.../.rvm/gems/ruby-2.3.0 > ruby -v ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16] my config.fish file contains: rvm default What am i doing wrong

How do I reference the local ruby in a hash-bang executable?

末鹿安然 提交于 2019-12-10 15:30:49
问题 I have a Ruby executable (it's a bundler binstub) which starts with #!/usr/bin/env ruby On my server I have Ruby 193 installed via RVM. $ which ruby -> /home/dtuite/.rvm/rubies/ruby-1.9.3-p0/bin/ruby On my local machine, I also have Ruby installed via RVM, but in a different location (obviously!) $ which ruby -> /Users/davidtuite/.rvm/rubies/ruby-1.9.3-p0/bin/ruby When I try to run this executable on the server I get an error /usr/bin/env: ruby: No such file or directory Is there a way I can

Why do I get a 404 error installing Ruby 1.9.3?

不想你离开。 提交于 2019-12-10 15:03:44
问题 I recently had my computer (OS- Mac OS X 10.6.8) wiped and I am re-installing all my development tools. I have RVM installed once again; however, it won't let me install Ruby 1.9.3. So far I have tried: rvm install 1.9.3 rvm install 1.9.3-p194 rvm install 1.9.3-p448 rvm install 1.9.3 --with-gcc=clang All returning the same command line error: Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.6/x86_64/ruby-1.9.3-p448. Continuing with compilation.

How do you uninstall RVM gem?

陌路散爱 提交于 2019-12-10 14:19:45
问题 Strange... but this is what I got : $ gem list | grep rvm >> rvm (1.11.3.3) $ gem uninstall rvm >> INFO: gem "rvm" is not installed How can that be possible? The root of this problem probably stems from me downloading the latest RVM and finding that it does not work with the latest version of POW. Thus I had to implode RVM and reinstall an older version. Since then when I do a cap deploy , I get the classic : `<top (required)>': RVM - Capistrano integration was extracted to a separate gem,

Rails3 and readline problem

岁酱吖の 提交于 2019-12-10 13:16:06
问题 I'm using rails3 for the first time (i've been using rails2 for years) inside an rvm. Trying to start the console, i get this error: require': no such file to load -- readline I've googled around and this seems to be a common problem. Most solutions seem to involve 1) installing the following: sudo apt-get install libncurses5-dev libreadline5-dev 2) going to the gem folder for readline, running ruby extconf.rb which generates a makefile 3) doing make and make install Now, i didn't have

Error during rails installation Ubuntu 12.04

折月煮酒 提交于 2019-12-10 12:58:26
问题 I'm installing rails on Ubuntu machine, so far I got no problems reading the following tutorials: https://www.digitalocean.com/community/articles/how-to-install-ruby-on-rails-on-ubuntu-12-04-lts-precise-pangolin-with-rvm http://pragashblog.blogspot.com/2012/05/setting-up-rvm-ruby-and-rails-on-ubuntu.html However when I try to install rails: gem install rails I'm getting the following error: Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to

How install ruby 2.1.0 on OS_X 10.9 using rvm? ( No binary rubies available for: osx/10.9/x86_64/ruby )

怎甘沉沦 提交于 2019-12-10 10:13:26
问题 I'm trying to install ruby 1.9.3-p545 or ruby-2.1.0 or ruby-2.1.1, but it fails... My environment: OS_X 10.9 x86_64 rvm 1.25.20 Error from terminal: bmalets$ rvm install 1.9.3-p545 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p545. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx_port. Installing macports........................................

How do I set $PATH?

怎甘沉沦 提交于 2019-12-10 09:26:28
问题 I'm using Ruby 2.3.0. Every time I open a new bash tab, my ruby version downgrades to 2.2.3. So to ensure I'm using the latest, I do rvm use 2.3.0 . That fixes the problem on a per-tab basis, and gives this message: PATH is not properly set up, '/Users/mkeable/.rvm/gems/ruby-2.3.0/bin' is not at first place, usually this is caused by shell initialization files - check them for 'PATH=...' entries, it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles', to fix

Using RVM, bundler does not install in proper gemset when gems are installed in a different ruby version

蓝咒 提交于 2019-12-10 04:02:03
问题 I am having trouble with rvm, bundler and gemsets. I have 3 rubies installed in rvm: rvm rubies macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] => ruby-1.9.2-p0 [ x86_64 ] And gemsets like so: rvm gemsets macruby-0.7.1 [ x86_64 ] ree-1.8.7-2010.02 [ x86_64 ] ree-1.8.7-2010.02@chef [ x86_64 ] ree-1.8.7-2010.02@global [ x86_64 ] ree-1.8.7-2010.02@mobi [ x86_64 ] ree-1.8.7-2010.02@temple_rails [ x86_64 ] ruby-1.9.2-p0 [ x86_64 ] => ruby-1.9.2-p0@instapaper [ x86_64 ] ruby-1.9.2-p0@mobi [