I try command bundle install --local but it show issue:
bundle install --local
-bash: /usr/local/bin/bundle: /usr/local/bin/ruby: bad interpreter: No such file or dir
On my side, I am using rbenv. When I checked the /usr/local/bin/bundle, it shows it is using the older ruby, thus causing the problem.
#!/usr/bin/ruby1.9.1
by changing it to point to proper ruby fix the problem
#!/home/user/.rbenv/shims/ruby