rvm

bundle update rake not fixing my 'You have already activated rake…' error

我们两清 提交于 2019-12-11 18:02:46
问题 When I run rake db:migrate in Ubuntu Terminal I keep getting the error: rake aborted! You have already activated rake 10.0.4, but your Gemfile requires rake 0.9.6. Using bundle exec may solve this. I saw on stackoverflow a way to solve this problem is to run: bundle update rake So I do this and I get: Fetching gem metadata from https://rubygems.org/....... Fetching gem metadata from https://rubygems.org/.. Enter your password to install the bundled RubyGems to your system: Using rake (0.9.6)

Install Ruby 1.9.3 after Ruby 2.0.0 has been installed

喜夏-厌秋 提交于 2019-12-11 15:06:48
问题 I installed the gcc-4.2 and got Ruby 2.0.0 installed, but in the process I deleted some older versions of ruby. Specifically, Ruby 1.9.3, now I want to go back and install that version using rvm install 1.9.3 but I keep getting errors. It is using gcc-4.2 to install, but gcc-4.2 is buggy to install 1.9.3. How do I install 1.9.3 now that I am in this state? Any thoughts or suggestions? These are the errors: Error running '__rvm_package_extract /Users/marty/.rvm/archives/yaml-0.1.4.tar.gz

Link ruby to RVM

戏子无情 提交于 2019-12-11 13:34:17
问题 I tried looking for an answer for about an hour but no luck. I have installed ruby-2.0.0 with my rvm but the system only detects the old ruby-1.9.3 !I changed the sym link in /usr/bin/ruby to point to my ~/.rvm ruby and now I get the following when I run ruby -v ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-linux] However when I try to start a rails server I get the error which says my current ruby version is 1.9.3 I ran gem env and got a surprising results: RubyGems Environment: -

RVM fails installing Ruby

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 11:40:34
问题 I'm trying to install an older Ruby version via RVM but the installation fails with an error I've never seen before. I've already changed the rvm_max_time_flag but it didn't help. What can I do here? rvm install 1.9.3p484 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3p484. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Certificates in '/usr

Installing Ruby 1.9.3 Troubles with Clang

爷,独闯天下 提交于 2019-12-11 11:37:57
问题 I am attempting to install Ruby 1.9.3 on Mac OS X Lion, same method as I discovered here: Basically it's: rvm install 1.9.3 --with-gcc=clang --with-readline-dir=$rvm_path/usr However, this time Clang throws an error on the --with-readline-dir option: Larson:~ andrewjl$ rvm install 1.9.3 --with-gcc=clang --with-readline-dir=$rvm_path/usr clang: error: unsupported option '--with-readline' clang: error: unsupported option '--with-opt-dir=/Users/andrewjl/.rvm/usr' Is this an issue with Clang?

the correct Ruby version when opening a terminal

一世执手 提交于 2019-12-11 11:17:00
问题 Each time I open a terminal my Ruby version is wrong. I am obliged to execute by hand the following command: source /usr/local/rvm/scripts/rvm I read that RVM doesn't modify .bashrc or .bash_profile but I note that my .bashrc has at the end: PATH=$PATH:$HOME/.rvm/bin Not only I didn't insert this myself but the path to rvm is wrong ! I changed by: PATH=$PATH:/usr/local/rvm/bin I reopened a terminal but the Ruby version is always wrong ! 回答1: rvm does modify your .bash_profile / .bashrc --

Trouble in understanding what Ruby version I am “actually”/“effectively” running

十年热恋 提交于 2019-12-11 11:05:35
问题 I am on Mac OS an I am running Snow Leopard Version 10.6.8. I am using RVM in order to manage my Ruby installations (and so to use the Ruby on Rails framework) but I am in trouble when I see some outputs in the log, mostly related to the current version in use when I get some warning/error message. That is, I previously run these commands in the terminal window: $ which ruby /<ABSOLUTE_PATH>/.rvm/rubies/ruby-1.9.2-p290/bin/ruby $ rvm install 1.9.3 Installing Ruby from source to: /<ABSOLUTE

RVM and Passenger: No such file to load - bundler

大兔子大兔子 提交于 2019-12-11 10:42:51
问题 I've seen other similar errors, but none of the solutions have worked for me: On Snow Leopard, I'm using RVM with project-based gemsets. I have both Rails 2 and Rails 3 apps. When I use bundler with Rails 2 or with Rails 3, I get: no such file to load -- bundler In my Rails 2 apps that don't use bundler, I just get a message that Rails needs to be installed when it is. My RVM install has a global gemset with REE version of Ruby. $ rvm list rvm rubies => ree-1.8.7-2011.03 [ x86_64 ] ruby-1.8.7

Trouble with installation of gstreamer gem in Linux Mint

爷,独闯天下 提交于 2019-12-11 10:28:34
问题 I'm using linux mint. When I try to install with gem install gstreamer I see this error: ERROR: Error installing gstreamer: ERROR: Failed to build gem native extension. /home/msdc/.rvm/rubies/ruby-2.1.2/bin/ruby extconf.rb` checking for -Wall option to compiler... yes checking for -Waggregate-return option to compiler... yes checking for -Wcast-align option to compiler... yes checking for -Wextra option to compiler... yes checking for -Wformat=2 option to compiler... yes checking for -Winit

2018.12月解决cocoapods问题记录

北战南征 提交于 2019-12-11 10:25:00
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> >> 使用 cocopod 报错, • 系统:macOS Mojave10.14 >> 很久没用替换先更换 Ruby 源,国内镜像源 taobao 源 已经停止维护了(由于国内被墙)所以要把源切换至 ruby-china 地址 : ( https://gems.ruby-china.com/ ) >> 更换好也会有问题 会有错误提示: ERROR: While executing gem ... (Gem::Exception) Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources >>由于之前更新cocoapods版本有问题没有影响使用就没解决,最新版系统会要求ruby版本大于2.3.0,重新安装ruby,(网上有手动安装方法,由于没找到ruby官网下载,找了一个正常安装的) >>地址:( https://www.cnblogs.com/huanghaipo/p/7478625.html ) 1. 安装 RVM 2. 载入 RVM 环境 3. 检查 RVM 是否安装好 4. 安装 Ruby2.3.0 版本以上 4. 设置 Ruby 版本 5. 更换 Ruby 源 Mac