Ruby on Rails - issues with sqlite3 gem install -
this question has answer here:
- sqlite3 gem rails 3.1 2 answers
i learning rails tutorial @ rails tutorial
using mac os
when try bin/rails server
command below errors.
bin/rails server not find gem 'uglifier (>= 1.3.0) ruby' in of gem sources listed in gemfile or installed on machine. run `bundle install` install missing gems.
successively when try bundle install
command bellow issues.
gem::installer::extensionbuilderror: error: failed build gem native extension. /system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby extconf.rb checking sqlite3.h... yes checking sqlite3_libversion_number() in -lsqlite3... no sqlite3 missing. try 'port install sqlite3 +universal', 'yum install sqlite-devel' or 'apt-get install libsqlite3-dev' , check shared library search path (the location sqlite3 shared library located). *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/system/library/frameworks/ruby.framework/versions/2.0/usr/bin/ruby --with-sqlite3-dir --without-sqlite3-dir --with-sqlite3-include --without-sqlite3-include=${sqlite3-dir}/include --with-sqlite3-lib --without-sqlite3-lib=${sqlite3-dir}/ --with-sqlite3lib --without-sqlite3lib gem files remain installed in /users/lloyd/dev/projects/blog/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.10 inspection. results logged /users/lloyd/dev/projects/blog/vendor/bundle/ruby/2.0.0/gems/sqlite3-1.3.10/ext/sqlite3/gem_make.out error occurred while installing sqlite3 (1.3.10), , bundler cannot continue. make sure `gem install sqlite3 -v '1.3.10'` succeeds before bundling.
i have tried system install, vendor install. tried installing sqlite3 using homebrew . . . . . nothing works
how fix , move ahead ?
i had issues too. , changed source in gemfile fixed it:
# source 'https://rubygems.org' source 'https://ruby.taobao.org/'
your error info:
an error occurred while installing sqlite3 (1.3.10), , bundler cannot continue. make sure
gem install sqlite3 -v '1.3.10'
succeeds before bundling.
bunder cannot continue, maby this.