I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project “blog_test” trying to get something
working.
When I follow this guide Getting Started with Rails — Ruby on Rails Guides it says to do a
“db:create”. This is where I get this error…
Could not find gem ‘sqlite3 (>= 0)’ in any of the gem sources listed in
your Gemfile.
If I do a ‘which sqlite3’ I get the following path /usr/bin/sqlite3.
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project “blog_test” trying to get something
working.
When I follow this guide Getting Started with Rails — Ruby on Rails Guides it says to do a
“db:create”. This is where I get this error…
Could not find gem ‘sqlite3 (>= 0)’ in any of the gem sources listed in
your Gemfile.
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project “blog_test” trying to get something
working.
When I follow this guide Getting Started with Rails — Ruby on Rails Guides it says to do a
“db:create”. This is where I get this error…
Could not find gem ‘sqlite3 (>= 0)’ in any of the gem sources listed in
your Gemfile.
sqlite3-ruby (1.2.4)
termios (0.9.4)
Maybe doing gem install sqlite3 fixes it?
I did a gem install sqlite3 and got this…
Building native extensions. This could take a while…
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
extconf.rb
mkmf.rb can’t find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/sqlite3-1.3.3 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
I am trying to get Ruby/Rails running on my mac but having some issues.
I created a new rails project “blog_test” trying to get something
working.
When I follow this guide Getting Started with Rails — Ruby on Rails Guides it says to do a
“db:create”. This is where I get this error…
Could not find gem ‘sqlite3 (>= 0)’ in any of the gem sources listed in
your Gemfile.
sqlite3-ruby (1.2.4)
termios (0.9.4)
Maybe doing gem install sqlite3 fixes it?
I tried what you mentioned and it didn’t work. But, I am not sure what
you mean by “post your gem file”. Which file is this?
I got this…
Installing sqlite3 (1.3.3) with native extensions
/Library/Ruby/Site/1.8/rubygems/installer.rb:533:in `build_extensions’:
ERROR: Failed to build gem native extension.
(Gem::Installer::ExtensionBuildError)
extconf.rb
mkmf.rb can’t find header files for ruby at
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h
Gem files will remain installed in
/Library/Ruby/Gems/1.8/gems/sqlite3-1.3.3 for inspection.
Results logged to
/Library/Ruby/Gems/1.8/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out
from /Library/Ruby/Site/1.8/rubygems/installer.rb:486:in each' from /Library/Ruby/Site/1.8/rubygems/installer.rb:486:in build_extensions’
from /Library/Ruby/Site/1.8/rubygems/installer.rb:159:in install' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/source.rb:96:in install’
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:55:in run' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in each’
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/spec_set.rb:12:in each' from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:44:in run’
from
/Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/installer.rb:8:in
`install’
from /Library/Ruby/Gems/1.8/gems/bundler-1.0.10/lib/bundler/cli.rb