benschwarz / developers.whatwg.org

Used to create the contents of developers.whatwg.org
http://developers.whatwg.org/
198 stars 39 forks source link

met error when running "make",how to fix it ? #82

Closed luckypoem closed 8 years ago

luckypoem commented 10 years ago

hi.

as3:~/developers.whatwg.org-site# ls assets.rb Gemfile.lock layout1a.ai Rakefile styleguide.html config.ru html Makefile README.md tidy.rb deploy.sh html5-tools patch.anolis requirements.txt Gemfile javascript public sass as3:~/developers.whatwg.org-site# ls public css favicon.ico fonts images javascript as3:~/developers.whatwg.org-site# make clean rm -f LOG rm -f -r public//.html rm -f -r public/css/.css rm -f -r public/javascript/.js rm -f -r public/.manifest rm -f html5-full.html as3:~/developers.whatwg.org-site# make rm -f LOG rm -f -r public//.html rm -f -r public/css/.css rm -f -r public/javascript/.js rm -f -r public/.manifest ruby assets.rb /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in block in materialize': Could not find rake-10.0.0 in any of the sources (Bundler::GemNotFound) from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:inmap!' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in materialize' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:114:inspecs' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in specs_for' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/definition.rb:148:inrequested_specs' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in requested_specs' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:insetup' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:120:in setup' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.rb:132:inrequire' from assets.rb:5:in `

' make: *\ [process_assets] Error 1 as3:~/developers.whatwg.org-site#

benschwarz commented 10 years ago

@luckypoem Can you confirm that you have installed the dependencies?

I updated the README, because it wasn't blatantly obvious:

https://github.com/benschwarz/developers.whatwg.org/commit/f5de0da4744a4b1ed6e97c516b26e14b6d0912c8

luckypoem commented 10 years ago

hi.

as3:~/developers.whatwg.org-site# gem install json Building native extensions. This could take a while... Successfully installed json-1.8.1 Parsing documentation for json-1.8.1 Installing ri documentation for json-1.8.1 Done installing documentation for json after 2 seconds 1 gem installed as3:~/developers.whatwg.org-site# bundle install Fetching gem metadata from https://rubygems.org/.......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Using rake (10.0.0) Installing json (1.4.6) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. /usr/local/ruby/bin/ruby extconf.rb checking for re.h... no creating Makefile make compiling parser.c parser.rl: In function ‘JSON_parse_object’: parser.rl:165: error: expected ‘(’ before ‘!’ token parser.rl:165: warning: value computed is not used parser.rl:165: error: expected ‘;’ before ‘{’ token make: *\ [parser.o] Error 1 Gem files will remain installed in /usr/local/ruby/lib/ruby/gems/2.0.0/gems/json-1.4.6 for inspection. Results logged to /usr/local/ruby/lib/ruby/gems/2.0.0/gems/json-1.4.6/ext/json/ext/parser/gem_make.out An error occurred while installing json (1.4.6), and Bundler cannot continue. Make sure that gem install json -v '1.4.6' succeeds before bundling. as3:~/developers.whatwg.org-site#

so how to install json v1.4.6?

sj26 commented 10 years ago

You might just need to run bundle update json, the older versions don't work too well on modern ruby.

sj26 commented 10 years ago

For reference, my Gemfile.lock is:

GEM
  remote: https://rubygems.org/
  specs:
    json (1.8.0)
    nokogiri (1.5.5)
    peach (0.5.1)
    rack (1.5.2)
    rake (10.1.0)
    sass (3.2.12)
    yui-compressor (0.12.0)

PLATFORMS
  ruby

DEPENDENCIES
  json
  nokogiri
  peach
  rack
  rake
  sass
  yui-compressor
luckypoem commented 10 years ago

hi. sj26: after running "bundle update json","bundle install","pip install -r requirements.txt",the 3 commands are run successfully without any errors.but when i run "make",i still met error:

as3:~/developers.whatwg.org-site# make clean rm -f LOG rm -f -r public//.html rm -f -r public/css/.css rm -f -r public/javascript/.js rm -f -r public/.manifest rm -f html5-full.html as3:~/developers.whatwg.org-site# ls assets.rb Gemfile.lock layout1a.ai Rakefile styleguide.html config.ru html Makefile README.md tidy.rb deploy.sh html5-tools patch.anolis requirements.txt Gemfile javascript public sass as3:~/developers.whatwg.org-site# make rm -f LOG rm -f -r public//.html rm -f -r public/css/.css rm -f -r public/javascript/.js rm -f -r public/.manifest ruby assets.rb /usr/local/ruby/lib/ruby/gems/2.0.0/gems/sass-3.1.0.alpha.214/lib/sass/tree/root_node.rb:23:in render': undefined methodempty?' for nil:NilClass (NoMethodError) from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/sass-3.1.0.alpha.214/lib/sass/engine.rb:301:in _render' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/sass-3.1.0.alpha.214/lib/sass/engine.rb:248:inrender' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/sass-3.1.0.alpha.214/lib/sass.rb:57:in compile_file' from assets.rb:15:inblock (2 levels) in

' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/peach-0.4/lib/peach.rb:10:in block (3 levels) in peach' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/peach-0.4/lib/peach.rb:10:ineach' from /usr/local/ruby/lib/ruby/gems/2.0.0/gems/peach-0.4/lib/peach.rb:10:in `block (2 levels) in peach' make: *\ [process_assets] Error 1 as3:~/developers.whatwg.org-site#

how to fix it?