ruby on rails - Bundle install still not working after gem install bundler -
i tried using bundle install got error 'command not found.' tried
gem install bundler
then tried bundle install, still got same error, 'bundle: command not found.'
for reference:
rubygems environment: - rubygems version: 2.5.1 - ruby version: 2.3.1 (2016-04-26 patchlevel 112) [x86_64-darwin15] - installation directory: /usr/local/opt/gems - user installation directory: /users/willashley23/.gem/ruby/2.3.0 - ruby executable: /usr/local/opt/rbenv/versions/2.3.1/bin/ruby - executable directory: /usr/local/opt/gems/bin - spec cache directory: /users/willashley23/.gem/specs - system configuration directory: /usr/local/opt/rbenv/versions/2.3.1/etc - rubygems platforms: - ruby - x86_64-darwin-15 - gem paths: - /usr/local/opt/gems - gem configuration: - :update_sources => true - :verbose => true - :backtrace => false - :bulk_threshold => 1000 - remote sources: - https://rubygems.org/ - shell path: - /usr/local/opt/rbenv/versions/2.3.1/bin - /usr/local/cellar/rbenv/1.0.0/libexec - /usr/local/opt/rbenv/shims - /users/willashley23/.rbenv/bin - /usr/local/bin - /usr/local/sbin - ~/bin - /users/willashley23/.rbenv/bin - /users/willashley23/.rbenv/shims - /usr/local/bin - /usr/bin - /bin - /usr/sbin - /sbin - /opt/x11/bin
edit added gemfile:
source 'https://rubygems.org' # bundle edge rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.2.6' # use sqlite3 database active record gem 'sqlite3' # use scss stylesheets gem 'sass-rails', '~> 5.0' # use uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # use coffeescript .coffee assets , views gem 'coffee-rails', '~> 4.1.0' # see https://github.com/rails/execjs#readme more supported runtimes # gem 'therubyracer', platforms: :ruby # use jquery javascript library gem 'jquery-rails' # turbolinks makes following links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc # use activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7' # use unicorn app server # gem 'unicorn' # use capistrano deployment # gem 'capistrano-rails', group: :development group :development, :test # call 'byebug' anywhere in code stop execution , debugger console gem 'byebug' end group :development # access irb console on exception pages or using <%= console %> in views gem 'web-console', '~> 2.0' # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring' end
well figured out few things according have tried.
1.install bundler global gemset. rvm gemset use global && gem install bundler
2.in case have homebrew installed: try brew install ruby
3.if above solutions don't work case not sourcing rvm correctly, because not in login shell, therefore run
source ~/.rvm/scripts/rvm
and can execute bundle install
.
4.last thing using rvm , might case rvm not selected default run
rvm use 2.1.1 --default
and run bundle install
5.also can try rvm head && rvm reload
before installing bundler.
let me know if i'm missing something.
Comments
Post a Comment