rubygems

rbenv: rails: command not found immediately after installing rails 5.2.1

此生再无相见时 提交于 2021-01-29 04:55:38
问题 I have spent the whole day trying to upgrade from Rails 4x to 5.2.1. I was following this guide for the upgrade and I was not able to upgrade successfully. Issue: After "successfully" installing Rails 5 using: ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin17] and did rails -v I get: rbenv: rails: command not found The `rails' command exists in these Ruby versions: 2.2.0 Things that I have tried: gem pristine different gems gem pristine --all this and played around with paths but no

The wrong Ruby version when working with cocoapod

蹲街弑〆低调 提交于 2021-01-29 04:37:30
问题 Our project is written in Objective-C, and use an old version of cocoapod (0.38.0). All my colleagues use the old version of Ruby (2.0.0). I have the latest version of Ruby (2.3.1), so I need to install more the old Ruby version (2.0.0) as my colleagues have. rvm install 2.0.0 rvm use 2.0.0 I cocoapod install pod _0.38.0_ install and get an error like this: Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2 Ignoring gem

How to fix “dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib” permanently for Ruby?

旧城冷巷雨未停 提交于 2021-01-28 03:14:10
问题 I updated my OS about 2 weeks ago, and since then I've been running into this issue: > ruby -v dyld: Library not loaded: /usr/local/opt/gmp/lib/libgmp.10.dylib Referenced from: /Users/me/.rvm/rubies/ruby-2.2.1/bin/ruby Reason: image not found [1] 65487 trace trap ruby -v A solution found here (Ruby -v dyld: Library not loaded: /usr/local/lib/libgmp.10.dylib) works for each terminal session, but not permanently. I am running OS 10.9.5. This is what works temporarily: rvm reinstall 2.1.4 This

Bundler is deprecating bundle console in favor of bin/console. Can anyone provide more clarity as to how bin/console should work?

安稳与你 提交于 2021-01-27 12:01:01
问题 I have a custom ruby gem that relies heavily on bundle console . Nothing special or fancy, just an interactive console with the set of gems defined by the Gemfile included. We use the console a lot during development. Currently when I run the command, I receive the following deprecation message: [DEPRECATED] bundle console will be replaced by bin/console generated by bundle gem <name> Digging around in the bundler docs I found the following explanation: The bundle console will be removed and

Bundler is deprecating bundle console in favor of bin/console. Can anyone provide more clarity as to how bin/console should work?

戏子无情 提交于 2021-01-27 12:00:46
问题 I have a custom ruby gem that relies heavily on bundle console . Nothing special or fancy, just an interactive console with the set of gems defined by the Gemfile included. We use the console a lot during development. Currently when I run the command, I receive the following deprecation message: [DEPRECATED] bundle console will be replaced by bin/console generated by bundle gem <name> Digging around in the bundler docs I found the following explanation: The bundle console will be removed and

Installing Gems with Bundler == Big problem

泄露秘密 提交于 2021-01-27 03:39:26
问题 If I run bundle install , everything passes. I reboot nginx, and when I visit the site I see the passenger error with this : git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) My gemfile : source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'haml' gem 'ruby-debug' gem 'sqlite3', :require => 'sqlite3' gem 'ckeditor', '3.4.2.pre' gem "aged_revolt", :require => "aged_revolt",

Installing Gems with Bundler == Big problem

六眼飞鱼酱① 提交于 2021-01-27 03:37:47
问题 If I run bundle install , everything passes. I reboot nginx, and when I visit the site I see the passenger error with this : git://github.com/spree/spree.git (at master) is not checked out. Please run `bundle install` (Bundler::GitError) My gemfile : source 'http://rubygems.org' gem 'rails', '3.0.3' gem 'spree', :git => 'git://github.com/spree/spree.git' gem 'haml' gem 'ruby-debug' gem 'sqlite3', :require => 'sqlite3' gem 'ckeditor', '3.4.2.pre' gem "aged_revolt", :require => "aged_revolt",

Macos Catalina error after update: unable to run colorls

China☆狼群 提交于 2021-01-21 03:53:45
问题 Updating to macOS Catalina gives error on opening terminal ERROR: Can't find Ruby library file or shared library colorls usage: dirname path /Users/varunsukheja/.zshrc:source:91: no such file or directory: /tab_complete.sh When I checked for the .zshrc file for line 91, I found below line source $(dirname $(gem which colorls))/tab_complete.sh And on checking gem which colorls I got below error ERROR: Can't find Ruby library file or shared library colorls But when I check which colorls I get

Macos Catalina error after update: unable to run colorls

*爱你&永不变心* 提交于 2021-01-21 03:53:08
问题 Updating to macOS Catalina gives error on opening terminal ERROR: Can't find Ruby library file or shared library colorls usage: dirname path /Users/varunsukheja/.zshrc:source:91: no such file or directory: /tab_complete.sh When I checked for the .zshrc file for line 91, I found below line source $(dirname $(gem which colorls))/tab_complete.sh And on checking gem which colorls I got below error ERROR: Can't find Ruby library file or shared library colorls But when I check which colorls I get

Commonmarker gem cannot be installed (needed for jekyll) macos

对着背影说爱祢 提交于 2021-01-20 08:58:07
问题 what do I have to do, is there a problem with dependencies? How do I fix those? I am on catalina. I repeatedly get this error and have already looked for the directory.. doesn't exist. sudo bundle update Password: Fetching gem metadata from https://rubygems.org/........... Fetching gem metadata from https://rubygems.org/. Resolving dependencies....... Bundler found conflicting requirements for the Ruby version: In Gemfile: github-pages was resolved to 1, which depends on Ruby (~> 1.9.3)