From owner-freebsd-ruby@FreeBSD.ORG Sun Mar 23 06:38:00 2014 Return-Path: Delivered-To: freebsd-ruby@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA78EDF2; Sun, 23 Mar 2014 06:38:00 +0000 (UTC) Received: from mouf.net (mouf.net [IPv6:2607:fc50:0:4400:216:3eff:fe69:33b3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 396916E8; Sun, 23 Mar 2014 06:38:00 +0000 (UTC) Received: from mouf.net (swills@mouf [199.48.129.64]) by mouf.net (8.14.5/8.14.5) with ESMTP id s2N6bltk011780 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sun, 23 Mar 2014 06:37:52 GMT (envelope-from swills@mouf.net) Received: (from swills@localhost) by mouf.net (8.14.5/8.14.5/Submit) id s2N6blO1011779; Sun, 23 Mar 2014 06:37:47 GMT (envelope-from swills) Date: Sun, 23 Mar 2014 06:37:47 +0000 From: Steve Wills To: Craig Rodrigues Subject: Re: Problems running rails app, cannot load such file -- less Message-ID: <20140323063744.GD76830@mouf.net> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.22 (2013-10-16) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (mouf.net [199.48.129.64]); Sun, 23 Mar 2014 06:37:52 +0000 (UTC) X-Spam-Status: No, score=0.0 required=4.5 tests=none autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on mouf.net X-Virus-Scanned: clamav-milter 0.98.1 at mouf.net X-Virus-Status: Clean Cc: freebsd-ruby@freebsd.org X-BeenThere: freebsd-ruby@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Ruby discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Mar 2014 06:38:00 -0000 Hi, Thanks for the report. Committed fixes for this. The main thing you'll want is the sprockets update, but the other rails updates will be good too so that it uses things from ports instead of pulling them in via gem. When testing, be sure to remove things installed via gem and github. Let me know if you run into any other issues. Steve On Sat, Mar 22, 2014 at 04:12:28PM -0700, Craig Rodrigues wrote: > Hi, > > I talked with Steve Wills about this. These problems are due to > bad interdependencies between devel/rubygem-sprocket and > devel/rubygem-tilt ports. > > I was able to work around the problem by deleting the rubygem-sprockets port, > and manually building and installing the rubygem-sprockets gem from > github: https://github.com/sstephenson/sprockets/ > > Hopefully the next official sprockets release will be soon so this > workaround will not be necessary. > > -- > Craig > > > On Sat, Mar 22, 2014 at 9:44 AM, Craig Rodrigues wrote: > > Hi, > > > > On a system with no rubygems or ruby installed, I did the following: > > > > > > pkg install www/rubygem-rails > > rails new myapp > > cd myapp > > rails server > > > > I got this: > > > > /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `require': cannot load such file -- less (LoadError) > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `block in require' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in > > `load_dependency' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `require' > > from /usr/local/lib/ruby/gems/1.9/gems/tilt-2.0.1/lib/tilt/less.rb:2:in > > `' > > from /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.10.1/lib/sprockets.rb:101:in > > `' > > from /usr/local/lib/ruby/gems/1.9/gems/sprockets-2.10.1/lib/sprockets.rb:3:in > > `' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `require' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `block in require' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:236:in > > `load_dependency' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/dependencies.rb:251:in > > `require' > > from /usr/local/lib/ruby/gems/1.9/gems/sass-rails-3.2.6/lib/sass/rails/railtie.rb:35:in > > `block in ' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:34:in > > `call' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:34:in > > `execute_hook' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:43:in > > `block in run_load_hooks' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:42:in > > `each' > > from /usr/local/lib/ruby/gems/1.9/gems/activesupport-3.2.17/lib/active_support/lazy_load_hooks.rb:42:in > > `run_load_hooks' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/application/bootstrap.rb:69:in > > `block in ' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/initializable.rb:30:in > > `instance_exec' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/initializable.rb:30:in > > `run' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/initializable.rb:55:in > > `block in run_initializers' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/initializable.rb:54:in > > `each' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/initializable.rb:54:in > > `run_initializers' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/application.rb:136:in > > `initialize!' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/railtie/configurable.rb:30:in > > `method_missing' > > from /usr/home/rodrigc/stupid2/myapp/config/environment.rb:5:in > > `' > > from /usr/home/rodrigc/stupid2/myapp/config.ru:3:in `require' > > from /usr/home/rodrigc/stupid2/myapp/config.ru:3:in `block in
' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/builder.rb:51:in > > `instance_eval' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/builder.rb:51:in > > `initialize' > > from /usr/home/rodrigc/stupid2/myapp/config.ru:in `new' > > from /usr/home/rodrigc/stupid2/myapp/config.ru:in `
' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/builder.rb:40:in > > `eval' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/builder.rb:40:in > > `parse_file' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/server.rb:200:in > > `app' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/commands/server.rb:46:in > > `app' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/server.rb:304:in > > `wrapped_app' > > from /usr/local/lib/ruby/gems/1.9/gems/rack-1.4.5/lib/rack/server.rb:254:in > > `start' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/commands/server.rb:70:in > > `start' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/commands.rb:55:in > > `block in ' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/commands.rb:50:in > > `tap' > > from /usr/local/lib/ruby/gems/1.9/gems/railties-3.2.17/lib/rails/commands.rb:50:in > > `' > > from script/rails:6:in `require' > > from script/rails:6:in `
' > > > > > > > > Looking at: /usr/local/lib/ruby/gems/1.9/gems/tilt-2.0.1/lib/tilt/less.rb > > > > I saw: > > > > require 'tilt/template' > > require 'less' > > > > I noticed that rubygem-less was not installed, so I did: > > > > pkg install www/rubygem-less > > > > I tried the above steps again, and got the same traceback. > > > > Any ideas? > > > > -- > > Craig > _______________________________________________ > freebsd-ruby@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ruby > To unsubscribe, send any mail to "freebsd-ruby-unsubscribe@freebsd.org"