Skip to content
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.

problem building doodle.js #1

Closed
furtivefelon opened this issue Jan 11, 2010 · 2 comments
Closed

problem building doodle.js #1

furtivefelon opened this issue Jan 11, 2010 · 2 comments

Comments

@furtivefelon
Copy link

Hi,

I'm new to ruby, so i'm not sure where the problem lies. When i try to build doodle.js, i get this:
[javascript/doodle.js]$ /var/lib/gems/1.8/bin/rake build --trace
(in /home/jason/sources/javascript/doodle.js)
rake aborted!
undefined method path' for File:Class /home/jason/sources/javascript/doodle.js/Rakefile:3 /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:inload'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in raw_load_rakefile' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:inload_rakefile'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in standard_exception_handling' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:inload_rakefile'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in run' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_exception_handling'
/home/jason/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in run' /home/jason/.gem/ruby/1.8/gems/rake-0.8.7/bin/rake:31 /var/lib/gems/1.8/bin/rake:19:inload'
/var/lib/gems/1.8/bin/rake:19

If i try to call File.path in irb, i also get the same error:
[javascript/doodle.js]$ irb
irb(main):001:0> File.path
NoMethodError: undefined method `path' for File:Class
from (irb):1

If there is any help you can provide, it would be much appreciated!

@lamberta
Copy link
Owner

Hi.
I'm not much of a ruby guy either but I found rake a better build environment to make.

I think the issue is that you may need to use Ruby 1.9:
http://ruby-doc.org/ruby-1.9/classes/File.html#M000278

But looking at the Ruby 1.8 docs, it looks like if you add: require 'ftools' - then that will bring in the File.path method.
http://ruby-doc.org/core/classes/File.html

Hopefully that helps.

@furtivefelon
Copy link
Author

Upgrading to 1.9 sidesteps this problem completely. Although the 1.8 tip did not work for me, it still gives me wierd errors.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants