rvm

Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0

爷,独闯天下 提交于 2019-11-30 23:11:19
When I run rails server I get the error. There is some problem loading the gemsets $rvm list rvm rubies ruby-1.9.3-p484 [ i686 ] ruby-2.0.0-p353 [ i686 ] =* ruby-2.1.0 [ i686 ] # => - current # =* - current && default # * - default $ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] $rails -v Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0 $bundle show rails /home/prasad/.rvm/gems/ruby-2.1.0/gems/rails-4.0.1 $bundle exec rails s Your Ruby version is 1.9.3, but your Gemfile specified 2.1.0 bundle exec ruby -v ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] I did

Trouble Installing Ruby 1.9.2 with RVM Mac OS X

Deadly 提交于 2019-11-30 23:05:33
问题 I apologize for my ignorance - I'm very new to this - but I have tried everything and cannot get 1.9.2 installed using RVM. I believe I have installed RVM correctly, and when I go to install 1.9.2 I get the following error in my make log when ruby tries to compile: ld: in /usr/local/lib/libz.1.dylib, file was built for unsupported file format which is not the architecture being linked (x86_64) for architecture x86_64 collect2: ld returned 1 exit status make[1]: *** [../../../.ext/x86_64

Why is my Ruby Git script hook run with the wrong $PATH?

点点圈 提交于 2019-11-30 22:40:11
I'm using RVM. I wrote a Git pre-commit hook for a project: #!/usr/bin/env ruby puts RUBY_VERSION puts `echo $PATH` exit(1) which outputs this when run by Git: $ git ci -m 'foo' 1.8.7 /usr/libexec/git-core:/usr/bin:/usr/local/heroku/bin:/Users/mgoerlich/.rvm/gems/ruby-2.0.0-p195@global/bin:/Users/mgoerlich/.rvm/rubies/ruby-2.0.0-p195/bin:/Users/mgoerlich/.rvm/bin:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/platform-tools:/Users/mgoerlich/adt-bundle-mac-x86_64-20130219/sdk/tools:/usr/local/bin:/usr/local/sbin:/Users/mgoerlich/.dotfiles/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/core

How can I change Ruby to version 1.9.3 (again) with RVM?

孤人 提交于 2019-11-30 22:35:38
I used to work with Ruby version 1.9.3 on Ubuntu and made an update that probably screwed my bash profile and I need help to turn it back rather than using version 1.8.7. Right now rails s opens the server with Ruby 1.8.7 and I get errors because of the newer syntax I use in my app. .bash_profile : cat ~/.bash_profile ### Added by the Heroku Toolbelt export PATH="/usr/local/heroku/bin:$PATH" [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* which rails : /usr/local/bin/rails which ruby : /usr/bin/ruby ruby -v : ruby 1.8.7 (2011

Fast-stemmer installation problems

笑着哭i 提交于 2019-11-30 21:12:56
I'm having a hard time installing any of the ruby gems I want to because of a problem with fast-stemmer . I've put the error I'm getting below. Building native extensions. This could take a while... ERROR: Error installing fast-stemmer: ERROR: Failed to build gem native extension. /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb creating Makefile make "DESTDIR=" clean make "DESTDIR=" compiling porter.c porter.c:359:27: warning: '&&' within '||' [-Wlogical-op-parentheses] if (a > 1 || a == 1 && !cvc(z, z->k - 1)) z->k--; ~~ ~~~~~~~^~~~~~~~~~~~~~~~~~~~ porter.c:359

Troubles with ruby-2.X installation using RVM

拜拜、爱过 提交于 2019-11-30 19:34:07
I recently came across of the ruby-2.0.0-p0 installation. After the successfully installation of the rvm i type the following command at the bash. rvm install ruby-2.0.0-p0 This this the result log. Searching for binary rubies, this might take some time. No binary rubies available for: debian/wheezy_sid/i386/ruby-2.0.0-p0. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /home/javier/.rvm/rubies/ruby-2.0.0-p0, this may take a while depending on your cpu(s)... ruby-2.0.0-p0 - #downloading ruby-2.0.0-p0, this may take

rails -v cannot load such file — rails/cli (LoadError)

与世无争的帅哥 提交于 2019-11-30 19:31:04
Ubuntu 14.04. So everything was working fine and I had my terminal open with two tabs - one tab had webbrick running on my sebcoles project, and the other tab I used to clone my english_teacher repo. It all downloaded fine and I changed into the directory. I'll just paste everything here - it's all pretty clear: andrew:projects$ cd pinteresting RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too, you can ignore these warnings with 'rvm rvmrc warning ignore /home/andrew/projects/pinteresting/Gemfile'. To ignore the warning for all files run 'rvm rvmrc warning ignore

rvm monit delayed_job

狂风中的少年 提交于 2019-11-30 19:05:42
问题 I am trying to run delayed_job using monit, but its failing to run as rvm's paths (local rvm installation per user basis) are not available to the command. My application is a rails2 app with bundler. Monit is not able to find bundler. Does anyone have any suggestions as to how i can tell about the rvm paths to monit? I am getting the error [rails@x-rws1 current]$ monit start delayed_job -c config/delayed_job.monitrc 'delayed_job' start: /usr/bin/env 'delayed_job' failed to start no such file

Can't update RVM - “fatal: Unable to find remote helper for 'http'”

我是研究僧i 提交于 2019-11-30 19:00:01
I'm running RVM 1.1.6 on Ubuntu 8.04 and all of a sudden I can't update to the latest version anymore. ~ rvm get head Original installed RVM version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] fatal: Unable to find remote helper for 'http' Installed RVM HEAD version: rvm 1.1.6 by Wayne E. Seguin (wayneeseguin@gmail.com) [http://rvm.beginrescueend.com/] Googling for "fatal: Unable to find remote helper for 'http'" just gave me a few results, it seems like earlier versions of Git didn't support HTTP, but my Git version is fairly recent. ~ git --version

rvm installation - /usr/local/rvm : permission denied (Before this, I deleted home directory by mistake in Ubuntu) [duplicate]

不想你离开。 提交于 2019-11-30 18:57:50
问题 This question already has an answer here : Closed 6 years ago . Possible Duplicate: How do I fix a RVM install that was done using SUDO I have created a user on my server 'myuser' . Logged into it and ran this cmd : curl -L get.rvm.io | bash -s -- --auto-dotfiles Everything fine and installed correctly. Bymistake, I deleted the home directory using another user login, i.e /home/myuser (where rvm is installed) (logged in by other user 'anothuser'). Then lost rvm, so tried running the same