Whenever I enter a gem command, such as
gem "tilt"
or
gem "mysql"
I get this error:
While executing gem ... <RuntimeError>
Unknown command tilt
When I run gem list, both tilt and mysql show up on the list, so they are installed. In fact, I get this error with every item on the list. What could be causing this?
gemisn’t lying to you, they aren’t validgemcommands.Perhaps you’re confusing the command line with Bundler? For example, adding
to a Gemfile and running
bundle installwill install tilt. But Bundler uses its own syntax, and isn’t a shell script. To install tilt using thegembinary directly you’d have to do:Running
gem helpwill give you a list ofgem‘s command line arguments.