[ https://issues.apache.org/jira/browse/YETUS-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15052826#comment-15052826 ]
Kengo Seki commented on YETUS-212: ---------------------------------- Thanks! I'll commit the patch. As additional information, installing node.js enabled {{bundle exec middleman}} in my environment. I guess some js runtime is also installed in your environment. {code} [sekikn@localhost asf-site-src]$ sudo yum -y install nodejs (snip) Installed: nodejs.x86_64 0:0.10.36-3.el6 Dependency Installed: c-ares19.x86_64 0:1.9.1-5.el6.3 http-parser.x86_64 0:2.0-4.20121128gitcd01361.el6 libuv.x86_64 1:0.10.34-1.el6 v8.x86_64 1:3.14.5.10-17.el6 Complete! [sekikn@localhost asf-site-src]$ bundle exec middleman build create publish/assets/css/bootstrap-theme.css create publish/assets/css/font-awesome.css create publish/assets/css/bootstrap.css create publish/assets/css/bootstrap.min.css create publish/assets/css/bootstrap-theme.min.css create publish/assets/css/font-awesome.min.css create publish/assets/img/yetus_logo.png create publish/assets/fonts/fontawesome-webfont.svg create publish/assets/fonts/glyphicons-halflings-regular.svg create publish/assets/img/favicon.ico create publish/assets/fonts/fontawesome-webfont.woff create publish/assets/fonts/glyphicons-halflings-regular.woff create publish/assets/fonts/fontawesome-webfont.woff2 create publish/assets/fonts/glyphicons-halflings-regular.woff2 create publish/assets/fonts/FontAwesome.otf create publish/assets/fonts/fontawesome-webfont.ttf create publish/assets/fonts/glyphicons-halflings-regular.ttf create publish/assets/fonts/fontawesome-webfont.eot create publish/assets/fonts/glyphicons-halflings-regular.eot create publish/assets/js/jquery-2.1.4.min.js create publish/assets/js/bootstrap.min.js create publish/assets/js/bootstrap.js create publish/downloads/index.html create publish/documentation/in-progress/index.html create publish/documentation/in-progress/precommit-apidocs/index.html create publish/documentation/in-progress/precommit-testformats/index.html create publish/documentation/in-progress/precommit-bugsystems/index.html create publish/documentation/in-progress/precommit-architecture/index.html create publish/documentation/in-progress/releasedocmaker/index.html create publish/documentation/in-progress/precommit-patchnames/index.html create publish/documentation/in-progress/precommit-basic/index.html create publish/documentation/in-progress/precommit-advanced/index.html create publish/documentation/in-progress/precommit-buildtools/index.html create publish/documentation/in-progress/precommit-glossary/index.html create publish/documentation/in-progress/precommit-smart-apply-patch/index.html create publish/documentation/in-progress/precommit-apidocs/core/index.html create publish/documentation/in-progress/precommit-apidocs/smart-apply-patch/index.html create publish/documentation/in-progress/precommit-apidocs/test-patch/index.html create publish/documentation/in-progress/precommit-apidocs/plugins/index.html create publish/contribute/index.html create publish/assets/css/bootstrap-theme.css.map create publish/assets/css/bootstrap.css.map create publish/assets/config.json create publish/doap_yetus.rdf create publish/index.html create publish/mailinglists/index.html [sekikn@localhost asf-site-src]$ cat Gemfile # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # # If you do not have OpenSSL installed, update # the following line to use "http://" instead source 'https://rubygems.org' gem "middleman", "~>3.4.0" # Live-reloading plugin gem "middleman-livereload", "~> 3.1.0" gem 'middleman-syntax', github: 'middleman/middleman-syntax' # For faster file watcher updates on Windows: gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw] # Windows does not come with time zone data gem "tzinfo-data", platforms: [:mswin, :mingw, :jruby] gem 'redcarpet', github: 'vmg/redcarpet' gem 'rake', '10.3.1' [sekikn@localhost asf-site-src]$ {code} So, for the users who have not installed any js runtime, I'll add therubyracer to the Gemfile. > "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 > Assignee: 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)