From owner-freebsd-ruby@FreeBSD.ORG Sat Mar 22 23:12:31 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 15F732B1 for ; Sat, 22 Mar 2014 23:12:31 +0000 (UTC) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8116A1B7 for ; Sat, 22 Mar 2014 23:12:30 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id b8so2687364lan.12 for ; Sat, 22 Mar 2014 16:12:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:content-type; bh=ZPWCI8jodi/xiJjvfgHnB5vB1uVbbo5pb3bhtP4DzNw=; b=UocjMsHZ5gisPwju0v+1UTAkEdHVYndP0akJjFmLzCqzq+V/PQstRrUqczb97yzE0g tDPkkAyys2HKApbZjUnzLuhxBFEF2EgkG7XECwmJG/huo/JCdD9yoPRwSAkq7jVj/R8I e9cApFdYRl9YVgQ/xDVraC2yUoGVBmZNgT4Uyo5BPEt4+rgAdSvY59sQe7zkbLSHnWsC ApFP2PpyTiq0x62llXsh/CC/l4Iqc5Suj/r9T+/oKJE9mclY6Ls7qQk38Dv8OuW7TMHF f+fglZ0j2ri4Gr8PAIWwzPCN5El5FzDhx1SEWCBJBWCDIDeXXr1jiS4XDTzmkN6oeoFc y+IA== MIME-Version: 1.0 X-Received: by 10.152.18.229 with SMTP id z5mr39574665lad.27.1395529948615; Sat, 22 Mar 2014 16:12:28 -0700 (PDT) Sender: crodr001@gmail.com Received: by 10.112.169.68 with HTTP; Sat, 22 Mar 2014 16:12:28 -0700 (PDT) In-Reply-To: References: Date: Sat, 22 Mar 2014 16:12:28 -0700 X-Google-Sender-Auth: W6Jju3uS1joULnY02zHnqC_aDOo Message-ID: Subject: Re: Problems running rails app, cannot load such file -- less From: Craig Rodrigues To: freebsd-ruby@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 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: Sat, 22 Mar 2014 23:12:31 -0000 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