Fixing /bin/bash: gem: command not found

rails
ruby
rubygems

#1

Trying to migrate to 2.0.

Our 1.0 circle.yml included an explicit gem install of bundler as a pre dependency:
gem install bundler -v 1.14.6

How do I make that work in 2.0? I’m using the image ‘image: circleci/ruby:2.3-node-browsers’ … but it appears that the gem command is not available for use in a step?
- run: gem install bundler -v 1.14.6
- run: bundle install --path vendor/bundle


#2

Ahh… Figured it out.

Inadvertently had the wrong image listed first under the docker section, so the base image wasn’t the ruby one. Fixed that and can now move on to next stuff.


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.