Discourse as Your First Rails App

Hey guys,

I really love the idea behind discourse and we’d like to use it instead of the old-fashioned forums software we’re all so tired of.

I checked out the source from Git. Now, running “bundle install” results in the following error:

Fetching gem metadata from https://rubygems.org/......
Fetching gem 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 thread_safe (0.1.3) 
Using tzinfo (0.3.38) 
Using activesupport (4.0.2) 
Using builder (3.1.4) 
Using erubis (2.7.0) 
Using rack (1.5.2) 
Using rack-test (0.6.2) 
Using actionpack (4.0.2) 
Using mime-types (1.25.1) 
Using polyglot (0.3.3) 
Using treetop (1.4.15) 
Using mail (2.5.4) 
Using actionmailer (4.0.2) 
Using actionpack-action_caching (1.0.0) 
Using activemodel (4.0.2) 
Using active_model_serializers (0.8.1) 
Using activerecord-deprecated_finders (1.0.3) 
Using arel (4.0.1) 
Using activerecord (4.0.2) 
Using addressable (2.3.5) 
Using airbrake (3.1.2) 
Using annotate (2.6.0) 
Using handlebars-source (1.1.2) 
Using ember-source (1.2.0.1) 
Using execjs (2.0.2) 
Using barber (0.4.2) 
Using coderay (1.1.0) 
Using better_errors (1.0.1) 
Using debug_inspector (0.0.2) 
Using binding_of_caller (0.7.2) 
Using bundler (1.3.4) 
Using timers (1.1.0) 
Using celluloid (0.15.2) 
Using certified (0.1.1) 
Using connection_pool (1.2.0) 
Using daemons (1.1.9) 
Using diff-lcs (1.2.4) 
Using discourse_plugin (0.0.1) from source at vendor/gems/discourse_plugin 
Using email_reply_parser-discourse (0.6) 
Using ember-data-source (0.14) 
Using thor (0.18.1) 
Using railties (4.0.2) 
Using jquery-rails (3.0.4) 
Using ember-rails (0.14.1) 
Using eventmachine (1.0.3) 
Using excon (0.28.0) 
Using exifr (1.1.3) 
Using fabrication (2.8.1) 
Using fakeweb (1.3.0) 
Using multipart-post (1.2.0) 
Using faraday (0.8.8) 
Using rake-compiler (0.9.2) 
Using fast_blank (0.0.1) 
Installing fast_stack (0.1.0) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb 
creating Makefile

make
generating fast_stack-i386-mingw32.def
compiling fast_stack.c
In file included from c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/defines.h:223:0,
                 from c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/ruby.h:67,
                 from c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby.h:32,
                 from fast_stack.c:3:
c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/win32.h:283:12: error: conflicting types for 'gettimeofday'
c:\railsinstaller\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/time.h:39:29: note: previous declaration of 'gettimeofday' was here
In file included from c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/ruby.h:1381:0,
                 from c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby.h:32,
                 from fast_stack.c:3:
c:/RailsInstaller/Ruby1.9.3/include/ruby-1.9.1/ruby/missing.h:48:8: error: redefinition of 'struct timezone'
c:\railsinstaller\devkit\mingw\bin\../lib/gcc/mingw32/4.5.2/../../../../include/sys/time.h:26:8: note: originally defined here
fast_stack.c: In function 'rb_profile_start':
fast_stack.c:9:22: error: storage size of 'timer' isn't known
fast_stack.c:11:34: error: 'suseconds_t' undeclared (first use in this function)
fast_stack.c:11:34: note: each undeclared identifier is reported only once for each function it appears in
fast_stack.c:11:46: error: expected ';' before '__extension__'
fast_stack.c:13:5: warning: implicit declaration of function 'setitimer'
fast_stack.c:13:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:9:22: warning: unused variable 'timer'
fast_stack.c: In function 'rb_profile_stop':
fast_stack.c:21:22: error: storage size of 'timer' isn't known
fast_stack.c:23:15: error: 'ITIMER_REAL' undeclared (first use in this function)
fast_stack.c:21:22: warning: unused variable 'timer'
make: *** [fast_stack.o] Error 1


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/fast_stack-0.1.0 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/fast_stack-0.1.0/ext/fast_stack/gem_make.out
An error occurred while installing fast_stack (0.1.0), and Bundler cannot
continue.
Make sure that `gem install fast_stack -v '0.1.0'` succeeds before bundling.

I noticed that there’s been a fix for a similar issue at the fast_stack repository a few months ago, but I still keep getting this error. Any ideas?