rvm

Install any version of ruby with RVM on mavericks

喜你入骨 提交于 2019-11-28 18:23:36
I've just upgraded to osx mavericks, and I want to install ruby 2.0, but I'm getting configure: error: cannot run C compiled programs. errors. I update rvm with rvm get stable and then type rvm install 2.0.0 and get an error directing me to a log file. The log file contains: configure: WARNING: unrecognized options: --without-tcl, --without-tk checking build system type... x86_64-apple-darwin13.0.0 checking host system type... x86_64-apple-darwin13.0.0 checking target system type... x86_64-apple-darwin13.0.0 checking whether the C compiler works... yes checking for C compiler default output

Is RVM production ready?

孤街浪徒 提交于 2019-11-28 17:15:27
RVM is great for developing on your local machine. But is it safe on a production machine? I built RVM for production and added the developer 'niceties' later on. If you would like more information read the documentation on the website and come talk to me in #rvm on irc.freenode.net sometime during the day EDT most days. Since RVM is just a fancy way of downloading, isolating and switching between existing Ruby implementations, I'd say that it's as production ready as whatever ruby implementation you're currently running it with. Essentially, all RVM does is point your path at a specific Ruby

Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

血红的双手。 提交于 2019-11-28 17:01:24
I am trying to run mysql client on my terminal. I have installed the latest mysql gem. ➜ ~ git:(master) ✗ ruby -v ruby 1.8.7 (2010-01-10 patchlevel 249) [universal-darwin11.0] ➜ ~ git:(master) ✗ rails -v Rails 2.3.14 ➜ ~ git:(master) ✗ which mysql mysql: aliased to nocorrect mysql ➜ ~ git:(master) ✗ which ruby /usr/bin/ruby ➜ ~ git:(master) ✗ which rails /usr/bin/rails ➜ ~ git:(master) ✗ gem list *** LOCAL GEMS *** actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (2.3.14) builder (2.1.2) bundler (1.0.21) capistrano (2.9.0) capybara (0.3.9)

Change rails version used by rvm

你说的曾经没有我的故事 提交于 2019-11-28 16:01:56
问题 Here are my local gems : $ gem list *** LOCAL GEMS *** actionmailer (4.0.0, 3.2.14) actionpack (4.0.0, 3.2.14) activemodel (4.0.0, 3.2.14) activerecord (4.0.0, 3.2.14) activerecord-deprecated_finders (1.0.3) activeresource (3.2.14) activesupport (4.0.0, 3.2.14) arel (4.0.0, 3.0.2) atomic (1.1.13) builder (3.1.4, 3.0.4) bundler (1.3.5) bundler-unload (1.0.1) erubis (2.7.0) hike (1.2.3) i18n (0.6.5) journey (1.0.4) json (1.8.0) mail (2.5.4) mime-types (1.24) minitest (4.7.5) multi_json (1.7.9)

How do you install Rails 4.0 in an RVM gemset?

吃可爱长大的小学妹 提交于 2019-11-28 16:01:21
问题 I am trying to install Rails into a new rvm gemset. I tried the following: rvm gemset create rails-4.0 output: gemset created rails-4.0 Next I did: rvm 2.0.0@rails-4.0 rvm gemset list: gemsets for ruby-2.0.0-p0 (found in /Users/me/.rvm/gems/ruby-2.0.0-p0) (default) global => rails-4.0 rails -v Rails is not currently installed on this system. To get the latest version, simply type: $ sudo gem install rails Do the rvm commands I listed not install rails 4.0? 回答1: This command: rvm gemset create

Bundle can't install RMagick gem on Mac OSX 10.7

我是研究僧i 提交于 2019-11-28 15:51:01
问题 I've installed ImageMagick with ImageMagick installer script https://github.com/maddox/magick-installer. I am on OSX Lion 10.7, using RVM, Ruby 1.9.3p125. The problem seems to be with MagickWand.h here is the complete log /Users/pdjimeno/.rvm/rubies/ruby-1.9.3-p125/bin/ruby extconf.rb checking for Ruby version >= 1.8.5... yes extconf.rb:128: Use RbConfig instead of obsolete and deprecated Config. checking for /usr/bin/gcc... yes checking for Magick-config... yes checking for ImageMagick

Rails on Passenger not recognizing RVM

感情迁移 提交于 2019-11-28 15:42:10
问题 I have shifted to ree using rvm by: rvm use ree@mygemset and installed kaminari gem through Gemfile and bundle install. But Phusion passenger seems to still look for the gem in system default directory. It says: Error message: Could not find kaminari-0.10.4 in any of the sources (Bundler::GemNotFound) What do I missing? Rails need any specific configuration to recognize the current ruby version and gemset I am using?? 回答1: You need to instruct Passenger to load RVM and then setup the

rvm: command not found MAC OX

耗尽温柔 提交于 2019-11-28 15:37:51
Really, I don't know what happened. Excuse me if this question is so NOOB, but I can't find the solution for this problem. -bash: rvm: command not found I tried this curl -L https://get.rvm.io | bash -s -- --version latest but still nothing I need to see the ruby version for use the simplecov because it not works with older version from 1.9 It might because the terminal not having rvm shell configuration loaded. Try following from your terminal: $ source ~/.rvm/scripts/rvm then $ type rvm | head -n 1 If the output is: rvm is a function You may need to add "source ~/.rvm/scripts/rvm" to your ~/

Install autoreconf on OS X v10.7 (Lion)?

北城余情 提交于 2019-11-28 15:36:22
I'm attempting to re-install Ruby 1.9.3 with a patch that will allow me to use ruby-debug . When following the instructions and running rvm reinstall 1.9.3 --patch debug --force-autoconf It runs through and after applying the patch spits out: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH. Unfortunately, googling around for how to install autoreconf on OS X v10.7 (Lion) (or much information about it at all) seems to be a dead end. foz If you are using Homebrew , try brew install automake Which should also install autoconf and allow

Error installing Rmagick on Mountain Lion

瘦欲@ 提交于 2019-11-28 15:19:11
I have seen other people with the same issue of installing RMagick on Mountain Lion However none of the suggested solutions have allowed me to successfully install rmagick. Here is the error message I am getting: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. checking for Ruby version >= 1.8.5... yes checking for /usr/local/bin/gcc-4.2... yes checking for Magick-config... yes checking for ImageMagick version >= 6.4.9... yes checking for HDRI disabled version of ImageMagick... yes checking for stdint.h... yes checking for sys/types.h... yes checking for wand