rvm

Installing mysql2 gem on Mac os x Lion

孤街浪徒 提交于 2019-12-03 08:41:31
The other day I updated to Mac OSX Lion. It broke my rails install as I had to re complie mysql. While I have got that working reinstalling the mysql2 gem has become problematic. I was perviously running leopard so I am going from 32 to 64 bit. ~/code/rails/london (master)$ gem install mysql2 -- --with-mysql-dir=/usr/local/mysql Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension. /Users/stewartmatheson/.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb --with-mysql-dir=/usr/local/mysql checking for rb_thread_blocking

JVM version manager

你说的曾经没有我的故事 提交于 2019-12-03 08:15:05
问题 Is there Ruby Version Manager equivalent for the Java world? I'm looking for tool which allow me to easily download and install a new JVMs and switch between them. For example: jvm install <version> jvm list //will list installed JVMs on my system jvm use jdk1.6 //will switch my env to jdk 1.6 version, etc. 回答1: If you use Ubuntu you can specify which JVM you want to use via command (works only for JVM installed from apt-get or aptitude) sudo update-alternatives --config java Or by setting

rvm install 1.9.3 failing

限于喜欢 提交于 2019-12-03 08:12:40
I tried reinstalling ruby, xcode, and a bunch of other things because I kept getting these strange C compiler errors. At some point all my rubies were uninstalled so I started back at the beginning... rvm get head && rvm reload rvm install 1.9.3 I get the following error: No binary rubies available for: downloads/ruby-1.9.3-p327. Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies. Installing Ruby from source to: /Users/mgriffel/.rvm/rubies/ruby-1.9.3-p327, this may take a while depending on your cpu(s)... ruby-1.9.3-p327 - #downloading ruby-1.9.3-p327

How can I get rid of something running on every new terminal session?

…衆ロ難τιáo~ 提交于 2019-12-03 07:47:22
I am using Lion. I have an error that outputs on every new terminal session: -bash: __rvm_add_to_path: command not found It's an almost brand new user account.. RVM is installed on the other account on the machine.. ~/.bashrc & ~/.bash_profile are both blank.. the out put of env is: TERM_PROGRAM=Apple_Terminal SHELL=/bin/bash TERM=xterm-256color TMPDIR=/var/folders/ry/8zsyknmx7dj4_2zzvn1n71500000gn/T/ Apple_PubSub_Socket_Render=/tmp/launch-jsfKPw/Render TERM_PROGRAM_VERSION=303 TERM_SESSION_ID=3EBC0F1A-9867-41E5-8873-75E84B9F712F USER=incorvia COMMAND_MODE=unix2003 SSH_AUTH_SOCK=/tmp/launch

How does RVM work in production with no users logged in?

試著忘記壹切 提交于 2019-12-03 07:42:27
问题 Considering putting RVM into production (light duty) on a new machine. But I'm not visualizing how it will work if a user isn't logged in. RVM has been installed into /usr/local/rvm/bin/rvm so it is available to "everyone". If server restarts and is at login screen and background daemons are serving apache/rails, etc. and no .bashrc , etc. have loaded...how/where do we specify which of RVM's Rubies to load? Perhaps somewhere in Phusion's Passenger? who manages these gemsets? are they shared?

Can't install Ruby rvm on Ubuntu 16.04 due to gpg bug

≡放荡痞女 提交于 2019-12-03 07:18:54
问题 I'm trying to install Ruby on Ubuntu 16.04. However when I enter to following command to terminal: $ \curl -sSL https://get.rvm.io | bash -s stable --ruby I get the following: Downloading https://github.com/rvm/rvm/archive/1.29.1.tar.gz Downloading https://github.com/rvm/rvm/releases/download/1.29.1/1.29.1.tar.gz.asc gpg: Signature made 19 فبر, 2017 EET 10:02:47 م using RSA key ID ******** gpg: Can't check signature: No public key Warning, RVM 1.26.0 introduces signed releases and automated

Bundle install: ERROR: Failed to build gem native extension. nio4r gem

走远了吗. 提交于 2019-12-03 07:10:12
问题 I'm currently working on a project using: rvm 1.26.11 ruby 2.2.1p85 I tried to run bundle install but keep getting the following error: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. and, following: An error occurred while installing nio4r (1.0.0), and Bundler cannot continue. Make sure that `gem install nio4r -v '1.0.0'` succeeds before bundling. When I try running gem install nio4r -v '1.0.0' : Building native extensions. This could take a while... ERROR: Error

Zsh `which rvm` or `which gem` returns the function contents instead of the path

假如想象 提交于 2019-12-03 07:02:25
I've never had this problem before with my other machines but for some reason in ZSH whenever I type which gem or which rvm I get the function contents: gem () { local result command gem "$@" result="$?" hash -r return $result } instead of it's path. For the life of me I can not figure out why this is happening. If I switch over to bash I do not have these problems. Gilles 'SO- stop being evil' This is normal behavior for zsh. The which built-in is equivalent to whence -c , which shows the definitions of functions. Use whence , possibly with a combination of options that does not include -f or

When changing into Rails folder, have rvm pick ruby and gemset?

…衆ロ難τιáo~ 提交于 2019-12-03 06:34:53
问题 For my different Rails folders, I would like to have rvm automatically load the correct gemset when running anything from 'bundle install' to doing my 'autotest' or rails console or server. Is this possible? Currently I have to manually do 'rvm use' which is getting a bit tedious as I am working on multiple Rails projects at the same time. 回答1: Create a .rvmrc file in your rails directory, and rvm will automatically load it. An example .rvmrc that loads Ruby 1.9.2 and a gemset named "rails3":

Can't run rails server after accidentally running $ gem update --system

时光毁灭记忆、已成空白 提交于 2019-12-03 06:03:52
I ran gem update --system thinking it would solve a problem I was having, and now I can't run rails server . It won't load and instead, I keep getting the following. Can someone tell me how to undo this and revert back to before I ran the update? I've already ran git checkout , but the problem persists... /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/rubygems_integration.rb:187:in `stub_source_index170': uninitialized constant Gem::SourceIndex (NameError) from /usr/local/rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/rubygems_integration.rb:353:in