Bug 1003920 - (rails new --skip-bundle) doesn't work out of the box
Summary: (rails new --skip-bundle) doesn't work out of the box
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rubygem-rails
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Mo Morsi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-03 14:08 UTC by Miloslav Trmač
Modified: 2013-09-03 15:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-09-03 15:09:44 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Miloslav Trmač 2013-09-03 14:08:30 UTC
Description of problem:
(rails new  ... --skip-bundle) fails.  (I haven't let a non---skip-bundle run finish; that would defeat the point of using RPMs at all.)

Version-Release number of selected component (if applicable):
rubygem-actionmailer-3.2.13-1.fc19.noarch
rubygem-actionpack-3.2.13-2.fc19.noarch
rubygem-activemodel-3.2.13-1.fc19.noarch
rubygem-activerecord-3.2.13-1.fc19.noarch
rubygem-activeresource-3.2.13-1.fc19.noarch
rubygem-activesupport-3.2.13-1.fc19.noarch
rubygem-arel-3.0.2-3.fc19.noarch
rubygem-archive-tar-minitar-0.5.2-8.fc19.noarch
rubygem-bigdecimal-1.2.0-15.fc19.x86_64
rubygem-builder-3.1.4-3.fc19.noarch
rubygem-bundler-1.3.1-1.fc19.noarch
rubygem-coffee-rails-3.2.2-3.fc19.noarch
rubygem-coffee-script-source-1.6.1-1.fc19.noarch
rubygem-coffee-script-2.2.0-3.fc19.noarch
rubygem-commander-4.1.2-5.fc19.noarch
rubygem-erubis-2.7.0-3.fc19.noarch
rubygem-execjs-1.4.0-5.fc19.noarch
rubygem-highline-1.6.11-5.fc19.noarch
rubygem-hike-1.2.1-4.fc19.noarch
rubygem-httpclient-2.3.2-6.fc19.noarch
rubygem-io-console-0.4.2-15.fc19.x86_64
rubygem-i18n-0.6.1-3.fc19.noarch
rubygem-journey-1.0.4-3.fc19.noarch
rubygem-jquery-rails-2.0.2-3.fc19.noarch
rubygem-json-1.7.7-100.fc19.x86_64
rubygem-listen-0.4.7-3.fc19.noarch
rubygem-mail-2.5.3-1.fc19.noarch
rubygem-mime-types-1.19-3.fc19.noarch
rubygem-multi_json-1.7.1-1.fc19.noarch
rubygem-net-http-persistent-2.9-1.fc19.noarch
rubygem-net-ssh-2.6.6-1.fc19.noarch
rubygem-open4-1.3.0-5.fc19.noarch
rubygem-pg-0.14.1-1.fc19.x86_64
rubygem-polyglot-0.3.3-3.fc19.noarch
rubygem-psych-2.0.0-15.fc19.x86_64
rubygem-rack-cache-1.2-4.fc19.noarch
rubygem-rack-ssl-1.3.2-7.fc19.noarch
rubygem-rack-test-0.6.2-3.fc19.noarch
rubygem-rack-1.4.5-3.fc19.noarch
rubygem-rails-3.2.13-1.fc19.noarch
rubygem-railties-3.2.13-0.fc19.noarch
rubygem-rake-10.0.4-1.fc19.noarch
rubygem-rdoc-4.0.1-1.fc19.noarch
rubygem-ref-1.0.0-4.fc19.noarch
rubygem-rhc-1.12.4-1.fc19.noarch
rubygem-sass-rails-3.2.6-1.fc19.noarch
rubygem-sass-3.2.6-1.fc19.noarch
rubygem-sprockets-2.8.2-3.fc19.noarch
rubygem-sqlite3-1.3.5-4.fc19.x86_64
rubygems-2.0.3-15.fc19.noarch
rubygem-test-unit-2.5.5-1.fc19.noarch
rubygem-therubyracer-0.11.0-2.fc19.x86_64
rubygem-thor-0.17.0-1.fc19.noarch
rubygem-tilt-1.3.7-2.fc19.noarch
rubygem-treetop-1.4.12-3.fc19.noarch
rubygem-tzinfo-0.3.35-1.fc19.noarch
rubygem-uglifier-1.3.0-3.fc19.noarch
ruby-irb-2.0.0.247-15.fc19.noarch
ruby-libs-2.0.0.247-15.fc19.x86_64
rubypick-1.1.0-1.fc19.noarch
ruby-2.0.0.247-15.fc19.x86_64


Steps to Reproduce:
> rails new foo --skip-bundle 
> cd foo/
> rails server -p 4444


Actual results:
/usr/share/gems/gems/execjs-1.4.0/lib/execjs/runtimes.rb:51:in `autodetect': Could not find a JavaScript runtime. See https://github.com/sstephenson/execjs for a list of available runtimes. (ExecJS::RuntimeUnavailable)
	from /usr/share/gems/gems/execjs-1.4.0/lib/execjs.rb:5:in `<module:ExecJS>'
	from /usr/share/gems/gems/execjs-1.4.0/lib/execjs.rb:4:in `<top (required)>'
	from /usr/share/gems/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `require'
	from /usr/share/gems/gems/coffee-script-2.2.0/lib/coffee_script.rb:1:in `<top (required)>'
	from /usr/share/gems/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `require'
	from /usr/share/gems/gems/coffee-script-2.2.0/lib/coffee-script.rb:1:in `<top (required)>'
	from /usr/share/gems/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `require'
	from /usr/share/gems/gems/coffee-rails-3.2.2/lib/coffee-rails.rb:1:in `<top (required)>'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:72:in `require'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:70:in `each'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:70:in `block in require'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:59:in `each'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler/runtime.rb:59:in `require'
	from /usr/share/gems/gems/bundler-1.3.1/lib/bundler.rb:132:in `require'
	from /home/mitr/x/foo/config/application.rb:7:in `<top (required)>'
	from /usr/share/gems/gems/railties-3.2.13/lib/rails/commands.rb:53:in `require'
	from /usr/share/gems/gems/railties-3.2.13/lib/rails/commands.rb:53:in `block in <top (required)>'
	from /usr/share/gems/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
	from /usr/share/gems/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
	from script/rails:6:in `require'
	from script/rails:6:in `<main>'


Actual results:
Things working out of the box


Additional info:
This is not the only possible failure mode; the above is after a manual installation of at least rubygem-coffee-rails, perhaps other gems as well.

Comment 1 Vít Ondruch 2013-09-03 15:09:44 UTC
Yes, that is quite common issue, unsolvable without soft dependencies in RPM. You can google for the "Could not find a JavaScript runtime." and you'll find a lot of references. Here [1] is nice tutorial how to setup basic RoR application in Fedora, which covers the issue as well.


[1] http://fedora.cz/spherical-cow-on-rails/


Note You need to log in before you can comment on or make changes to this bug.