You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@yetus.apache.org by "Kengo Seki (JIRA)" <ji...@apache.org> on 2015/11/28 18:48:10 UTC

[jira] [Updated] (YETUS-212) "bundle exec middleman" fails due to the lack of js runtime

     [ https://issues.apache.org/jira/browse/YETUS-212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kengo Seki updated YETUS-212:
-----------------------------
    Attachment: YETUS-212.00.patch

Attaching a patch. By applying this, "bundle exec middleman" succeeds as follows: 

{code}
[sekikn@localhost asf-site-src]$ bundle install

(snip)

Installing libv8 3.16.14.13

(snip)

Installing ref 2.0.0
Installing therubyracer 0.12.2 with native extensions
Bundle complete! 8 Gemfile dependencies, 56 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
[sekikn@localhost asf-site-src]$ bundle exec middleman build
   identical  publish/assets/css/bootstrap-theme.css
   identical  publish/assets/css/font-awesome.css
   identical  publish/assets/css/bootstrap.css
   identical  publish/assets/css/bootstrap.min.css
   identical  publish/assets/css/bootstrap-theme.min.css
   identical  publish/assets/css/font-awesome.min.css
   identical  publish/assets/img/yetus_logo.png
   identical  publish/assets/fonts/glyphicons-halflings-regular.svg
   identical  publish/assets/fonts/fontawesome-webfont.svg
   identical  publish/assets/img/favicon.ico
   identical  publish/assets/fonts/fontawesome-webfont.woff
   identical  publish/assets/fonts/glyphicons-halflings-regular.woff
   identical  publish/assets/fonts/fontawesome-webfont.woff2
   identical  publish/assets/fonts/glyphicons-halflings-regular.woff2
   identical  publish/assets/fonts/FontAwesome.otf
   identical  publish/assets/fonts/fontawesome-webfont.ttf
   identical  publish/assets/fonts/glyphicons-halflings-regular.ttf
   identical  publish/assets/fonts/fontawesome-webfont.eot
   identical  publish/assets/fonts/glyphicons-halflings-regular.eot
   identical  publish/assets/js/bootstrap.min.js
   identical  publish/assets/js/bootstrap.js
   identical  publish/assets/js/jquery-2.1.4.min.js
   identical  publish/downloads/index.html
   identical  publish/assets/css/bootstrap-theme.css.map
   identical  publish/contribute/index.html
   identical  publish/assets/css/bootstrap.css.map
      update  publish/documentation/in-progress/precommit-apidocs/plugins/index.html
      update  publish/documentation/in-progress/precommit-apidocs/test-patch/index.html
      update  publish/documentation/in-progress/precommit-apidocs/smart-apply-patch/index.html
      update  publish/documentation/in-progress/precommit-apidocs/core/index.html
   identical  publish/documentation/in-progress/precommit-smart-apply-patch/index.html
   identical  publish/documentation/in-progress/precommit-glossary/index.html
   identical  publish/documentation/in-progress/precommit-buildtools/index.html
   identical  publish/documentation/in-progress/precommit-advanced/index.html
   identical  publish/documentation/in-progress/precommit-basic/index.html
   identical  publish/documentation/in-progress/precommit-patchnames/index.html
   identical  publish/documentation/in-progress/releasedocmaker/index.html
   identical  publish/documentation/in-progress/precommit-architecture/index.html
   identical  publish/documentation/in-progress/precommit-bugsystems/index.html
   identical  publish/assets/config.json
   identical  publish/documentation/in-progress/precommit-testformats/index.html
   identical  publish/documentation/in-progress/precommit-apidocs/index.html
   identical  publish/documentation/in-progress/index.html
   identical  publish/doap_yetus.rdf
   identical  publish/index.html
   identical  publish/mailinglists/index.html
{code}

> "bundle exec middleman" fails due to the lack of js runtime
> -----------------------------------------------------------
>
>                 Key: YETUS-212
>                 URL: https://issues.apache.org/jira/browse/YETUS-212
>             Project: Yetus
>          Issue Type: Bug
>          Components: website and documentation
>            Reporter: Kengo Seki
>         Attachments: YETUS-212.00.patch
>
>
> I got the following error when I built new environment (CentOS 6.7) and ran middleman:
> {code}
> [sekikn@localhost yetus]$ rvm install 2.0
> (snip)
> Install of ruby-2.0.0-p643 - #complete 
> Ruby was built without documentation, to build it run: rvm docs generate-ri
> [sekikn@localhost yetus]$ rvm use 2.0
> Using /home/sekikn/.rvm/gems/ruby-2.0.0-p643
> [sekikn@localhost yetus]$ cd asf-site-src/
> [sekikn@localhost asf-site-src]$ gem install bundler
> Fetching: bundler-1.10.6.gem (100%)
> Successfully installed bundler-1.10.6
> Parsing documentation for bundler-1.10.6
> Installing ri documentation for bundler-1.10.6
> 1 gem installed
> [sekikn@localhost asf-site-src]$ bundle install
> (snip)
> Bundle complete! 7 Gemfile dependencies, 53 gems now installed.
> (snip)
> [sekikn@localhost asf-site-src]$ bundle exec middleman build
> /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/execjs-2.6.0/lib/execjs/runtimes.rb:48:in `autodetect': Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/execjs-2.6.0/lib/execjs.rb:5:in `<module:ExecJS>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/execjs-2.6.0/lib/execjs.rb:4:in `<top (required)>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `require'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/coffee-script-2.4.1/lib/coffee_script.rb:1:in `<top (required)>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/renderers/coffee_script.rb:2:in `require'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/renderers/coffee_script.rb:2:in `<top (required)>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/core_extensions/rendering.rb:34:in `require'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/core_extensions/rendering.rb:34:in `registered'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/core_extensions/extensions.rb:78:in `register'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/application.rb:172:in `<class:Application>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/application.rb:24:in `<module:Middleman>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/application.rb:23:in `<top (required)>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/cli/build.rb:95:in `shared_instance'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/cli/build.rb:62:in `build'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/command.rb:27:in `run'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/cli.rb:72:in `method_missing'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/command.rb:29:in `run'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/command.rb:126:in `run'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/invocation.rb:126:in `invoke_command'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor.rb:359:in `dispatch'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/thor-0.19.1/lib/thor/base.rb:440:in `start'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/lib/middleman-core/cli.rb:20:in `start'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/gems/middleman-core-3.4.0/bin/middleman:18:in `<top (required)>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/bin/middleman:23:in `load'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/bin/middleman:23:in `<main>'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `eval'
> 	from /home/sekikn/.rvm/gems/ruby-2.0.0-p643/bin/ruby_executable_hooks:15:in `<main>'
> {code}
> It seems like this issue: https://github.com/middleman/middleman/issues/276



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)