All the time when I do a git clone https://github.com/[REPO_NAME]
and then cd
into the repo and run bundle install
I get
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/Users/name/.rvm/rubies/ruby-2.1.3/bin/ruby extconf.rb
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
And most of the time this has to do with an error occurring while installing eventmachine
Otherwise, all of the rails app created by me can be ran locally with no issues it just do not work when I am trying to run locally git cloned app.
I am just confused, I tried to change my ruby version, updated xcode and reset the gemfile.lock I just do not know whats wrong with my local environment.
Please I need some light as in what should I look into ? What should I check to make gem dependencies work when I am trying to run an app locally which is not created by me but that is a git cloned app?
Thanks a lot in advance to all the kind contributors.
UPDATE:
rvm -v:
rvm 1.26.10 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
rvm list:
rvm rubies
ruby-2.1.2 [ x86_64 ]
=* ruby-2.1.3 [ x86_64 ]
ruby-2.1.5 [ x86_64 ]
# => - current
# =* - current && default
# * - default
which ruby:
/Users/name/.rvm/rubies/ruby-2.1.3/bin/ruby
brew -v:
Homebrew 0.9.5
brew doctor:
otool: error: unable to find utility "otool", not a developer tool or in PATH
Error: Failure while executing: /usr/bin/otool -L /usr/bin/install_name_tool