I am attempting to get a project running om my Mac with High Sierra computer. After using rbenv and setting the correct version it cd into the project and run bundle install. It tells me the following files may not be writeable and tells me I have the wrong version. Only thing is what it's telling me are the pre brought items from my mac machine.
I attempted to uninstall ruby and reinstall it. I made sure my ~/.bash_profile
had the eval "$(rbenv init -)"
I even attempted an alternative which another user suggested export PATH="$HOME/.rbenv/shims:$PATH"
. I made sure rbenv
used the correct version globally and locally. Using sudo
is dangerous although I did that too like an idiot, sure enough, my computer warned me.
I ran ruby --version
the output was ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
When I check with the rbenv-doctor
curl -fsSL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-doctor | bash
my output tells me everything is dandy.
Checking for `rbenv' in PATH: /usr/local/bin/rbenv
Checking for rbenv shims in PATH: OK
Checking `rbenv install' support: /usr/local/bin/rbenv-install (ruby-build 20190423)
Counting installed Ruby versions: 1 versions
Checking RubyGems settings: OK
Auditing installed plugins: OK
This is the issues I am having with rbenv
currently.
[My-Macbook]:sf-dahlia-web username$ bundle install
Following files may not be writable, so sudo is needed:
/Library/Ruby/Gems/2.3.0
/Library/Ruby/Gems/2.3.0/build_info
/Library/Ruby/Gems/2.3.0/cache
/Library/Ruby/Gems/2.3.0/doc
/Library/Ruby/Gems/2.3.0/extensions
/Library/Ruby/Gems/2.3.0/gems
/Library/Ruby/Gems/2.3.0/specifications
Your Ruby version is 2.3.7, but your Gemfile specified 2.5.3
It should successfully run and show all the dependencies for the application I pulled.