Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Crawbuck
11,026 PointsGetting a bunch of errors after bin/rails server(User Authentication with Rails : Creating The User Model pt. 1)
As mentioned in the headline, I'm getting a bunch of errors when i went to run the command "bin/rails server" as Jason instructed. I haven't done the ToDo List Application but I did download the project files from the course. After I ran the "bin/rails server" command, i then ran "bundle install", followed by "bundle update json", followed by "bundle update sqlite3". Can anyone please provide some insight as to what I'm doing wrong? Any help would be sincerely appreciated.
Last login: Thu May 5 22:05:30 on ttys000
Michaels-MBP-2:~ Michael$ cd treehouse
Michaels-MBP-2:treehouse Michael$ cd projects
Michaels-MBP-2:projects Michael$ cd odot
Michaels-MBP-2:odot Michael$ bin/rails server
Could not find activesupport-4.0.1 in any of the sources
Run bundle install
to install missing gems.
Michaels-MBP-2:odot Michael$ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Using rake 10.1.0
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.8.2
Using atomic 1.1.14
Using tzinfo 0.3.38
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.3
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.1
Using mini_portile 0.5.2
Using coffee-script-source 1.6.3
Using execjs 2.0.2
Using thor 0.18.1
Using diff-lcs 1.2.5
Using hike 1.2.3
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
/Users/Michael/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160505-82731-1fbdo9e.rb extconf.rb creating Makefile
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" clean
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" compiling generator.c In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ /Users/Michael/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/intern.h:797:9: note: macro 'rb_str_new' defined here
define rb_str_new(str, len) extension ( \
^
In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char , long)' (aka 'unsigned long (const char *, long)') [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ ~~~~~~~~~~ 1 warning and 1 error generated. make: ** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1 for inspection. Results logged to /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/json-1.8.1/gem_make.out Using bundler 1.12.2 Using tilt 1.4.1 Using rspec-core 2.14.7 Using rspec-mocks 2.14.4 Using sass 3.2.12 Installing sqlite3 1.3.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
/Users/Michael/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160505-82731-1qf719b.rb extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... yes checking for sqlite3_initialize()... yes checking for sqlite3_backup_init()... yes checking for sqlite3_column_database_name()... no checking for sqlite3_enable_load_extension()... no checking for sqlite3_load_extension()... no checking for sqlite3_open_v2()... yes checking for sqlite3_prepare_v2()... yes checking for sqlite3_int64 in sqlite3.h... yes checking for sqlite3_uint64 in sqlite3.h... yes creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/mkmf.log
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3 make "DESTDIR=" clean
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3 make "DESTDIR=" compiling backup.c compiling database.c compiling exception.c compiling sqlite3.c compiling statement.c statement.c:261:11: warning: implicit declaration of function 'RBIGNUM' is invalid in C99 [-Wimplicit-function-declaration] if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^ ./sqlite3_ruby.h:16:24: note: expanded from macro 'RBIGNUM_LEN'
define RBIGNUM_LEN(x) RBIGNUM(x)->len
^
statement.c:261:11: error: member reference type 'int' is not a pointer if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^~~~~~~~~~~~~~~~~~ ./sqlite3_ruby.h:16:36: note: expanded from macro 'RBIGNUM_LEN'
define RBIGNUM_LEN(x) RBIGNUM(x)->len
~~~~~~~~~~ ^
statement.c:261:32: error: use of undeclared identifier 'SIZEOF_BDIGITS' if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^ 1 warning and 2 errors generated. make: *** [statement.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8 for inspection.
Results logged to /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/gem_make.out
Using thread_safe 0.1.3
Using rack-test 0.6.2
Using treetop 1.4.15
Using nokogiri 1.6.0
Using coffee-script 2.2.0
Using rspec-expectations 2.14.4
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that gem install json -v '1.8.1'
succeeds before bundling.
Michaels-MBP-2:odot Michael$ bundle update json
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using rake 10.1.0
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.8.2
Using atomic 1.1.14
Using tzinfo 0.3.38
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.3
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.1
Using bundler 1.12.2
Using mini_portile 0.5.2
Using coffee-script-source 1.6.3
Using execjs 2.0.2
Using thor 0.18.1
Using diff-lcs 1.2.5
Using hike 1.2.3
Using json 1.8.3 (was 1.8.1)
Using tilt 1.4.1
Using rspec-core 2.14.7
Using rspec-mocks 2.14.4
Using sass 3.2.12
Installing sqlite3 1.3.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3
/Users/Michael/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160505-82953-oypc5h.rb extconf.rb checking for sqlite3.h... yes checking for sqlite3_libversion_number() in -lsqlite3... yes checking for rb_proc_arity()... yes checking for sqlite3_initialize()... yes checking for sqlite3_backup_init()... yes checking for sqlite3_column_database_name()... no checking for sqlite3_enable_load_extension()... no checking for sqlite3_load_extension()... no checking for sqlite3_open_v2()... yes checking for sqlite3_prepare_v2()... yes checking for sqlite3_int64 in sqlite3.h... yes checking for sqlite3_uint64 in sqlite3.h... yes creating Makefile
To see why this extension failed to compile, please check the mkmf.log which can be found here:
/Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/mkmf.log
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3 make "DESTDIR=" clean
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8/ext/sqlite3 make "DESTDIR=" compiling backup.c compiling database.c compiling exception.c compiling sqlite3.c compiling statement.c statement.c:261:11: warning: implicit declaration of function 'RBIGNUM' is invalid in C99 [-Wimplicit-function-declaration] if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^ ./sqlite3_ruby.h:16:24: note: expanded from macro 'RBIGNUM_LEN'
define RBIGNUM_LEN(x) RBIGNUM(x)->len
^
statement.c:261:11: error: member reference type 'int' is not a pointer if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^~~~~~~~~~~~~~~~~~ ./sqlite3_ruby.h:16:36: note: expanded from macro 'RBIGNUM_LEN'
define RBIGNUM_LEN(x) RBIGNUM(x)->len
~~~~~~~~~~ ^
statement.c:261:32: error: use of undeclared identifier 'SIZEOF_BDIGITS' if (RBIGNUM_LEN(value) * SIZEOF_BDIGITS <= 8) { ^ 1 warning and 2 errors generated. make: *** [statement.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/sqlite3-1.3.8 for inspection.
Results logged to /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/sqlite3-1.3.8/gem_make.out
Using thread_safe 0.1.3
Using rack-test 0.6.2
Using treetop 1.4.15
Using nokogiri 1.6.0
Using coffee-script 2.2.0
Using rspec-expectations 2.14.4
Using rdoc 3.12.2
Using uglifier 2.3.2
Using sprockets 2.10.1
An error occurred while installing sqlite3 (1.3.8), and Bundler cannot continue.
Make sure that gem install sqlite3 -v '1.3.8'
succeeds before bundling.
Michaels-MBP-2:odot Michael$ bundle update sqlite3
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Resolving dependencies...
Using rake 10.1.0
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.8.2
Using atomic 1.1.14
Using tzinfo 0.3.38
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.3
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.1
Using bundler 1.12.2
Using mini_portile 0.5.2
Using coffee-script-source 1.6.3
Using execjs 2.0.2
Using thor 0.18.1
Using diff-lcs 1.2.5
Using hike 1.2.3
Installing json 1.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator
/Users/Michael/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160505-83141-1svqtvv.rb extconf.rb creating Makefile
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" clean
current directory: /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1/ext/json/ext/generator make "DESTDIR=" compiling generator.c In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:47: error: too few arguments provided to function-like macro invocation VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ /Users/Michael/.rbenv/versions/2.3.1/include/ruby-2.3.0/ruby/intern.h:797:9: note: macro 'rb_str_new' defined here
define rb_str_new(str, len) extension ( \
^
In file included from generator.c:1: ./../fbuffer/fbuffer.h:175:11: warning: incompatible pointer to integer conversion initializing 'VALUE' (aka 'unsigned long') with an expression of type 'VALUE (const char , long)' (aka 'unsigned long (const char *, long)') [-Wint-conversion] VALUE result = rb_str_new(FBUFFER_PAIR(fb)); ^ ~~~~~~~~~~ 1 warning and 1 error generated. make: ** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/json-1.8.1 for inspection.
Results logged to /Users/Michael/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/extensions/x86_64-darwin-15/2.3.0-static/json-1.8.1/gem_make.out
Using tilt 1.4.1
Using rspec-core 2.14.7
Using rspec-mocks 2.14.4
Using sass 3.2.12
Using sqlite3 1.3.11 (was 1.3.8)
Using thread_safe 0.1.3
Using rack-test 0.6.2
Using treetop 1.4.15
Using nokogiri 1.6.0
Using coffee-script 2.2.0
Using rspec-expectations 2.14.4
An error occurred while installing json (1.8.1), and Bundler cannot continue.
Make sure that gem install json -v '1.8.1'
succeeds before bundling.
Michaels-MBP-2:odot Michael$
2 Answers
Lenny Meyerson
15,993 Pointshmmm... have you tried running "bundle exec bundle install"?
John Salzarulo
Courses Plus Student 3,909 PointsI have this problem too. I have no idea how to solve it.