Bundle command not found mac

后端 未结 6 1678
有刺的猬
有刺的猬 2021-01-30 08:11

I\'m using ruby, and I was given a zip file with some ruby programs and it says: inside the folder, run bundle install to install the packages required.

W

6条回答
  •  天涯浪人
    2021-01-30 08:56

    Terminal -

    sudo su 
    

    then your password:

    change directory :

    cd command . 
    

    if you do not have permissions to write to drive.

    chmod 755 foldername. 
    

    And you can also mkdir command in terminal

    mkdir /Library/Ruby/Gems/2.3.0.1
    

    copy and paste: gem install bundler paste to the terminal.

    Fetching: bundler-1.16.2.gem (100%)
    bundler's executable "bundle" conflicts with /usr/local/bin/bundle
    Overwrite the executable? [yN]  y
    bundler's executable "bundler" conflicts with /usr/local/bin/bundler
    Overwrite the executable? [yN]  y
    Successfully installed bundler-1.16.2
    Parsing documentation for bundler-1.16.2
    Installing ri documentation for bundler-1.16.2
    Done installing documentation for bundler after 7 seconds
    1 gem installed
    

    works for OS X High Sierra.

提交回复
热议问题