Ruby Gems returns “command not found”

后端 未结 3 580
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 13:41

Ubuntu 9.10

Just installed newgem

gem install newgem

and when i try

newgem new_project

I get

3条回答
  •  长情又很酷
    2020-12-24 14:31

    (Just stealing @John Franklin's comment)

    $ gem environment
    

    Will tell you the EXECUTABLE DIRECTORY. Then put whatever that value is in your PATH like so (in your .bashrc or other shell config file).

    export PATH="$PATH:/path/to/bin"
    

    Reload your shell and you should then be able to use the installed gem.

提交回复
热议问题