stuck on simple problem!

C

Chris Finch

Can anyone please tell me how to resolve this error? I just want to use
ptools but can't?? Why doesn't require 'ptools' work?

gem install ptools

Attempting local installation of 'ptools'
Local gem file not found: ptools*.gem
Attempting remote installation of 'ptools'
Successfully installed ptools-1.1.1
Installing RDoc documentation for ptools-1.1.1...
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ptools'
LoadError: no such file to load -- win32/file/stat
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):2
 
A

Alin Popa

Chris said:
Can anyone please tell me how to resolve this error? I just want to use
ptools but can't?? Why doesn't require 'ptools' work?



Attempting local installation of 'ptools'
Local gem file not found: ptools*.gem
Attempting remote installation of 'ptools'
Successfully installed ptools-1.1.1
Installing RDoc documentation for ptools-1.1.1...

irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'ptools'
LoadError: no such file to load -- win32/file/stat
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require__'
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
from
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1
from
C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`require'
from (irb):2

Hi Chris,

Which kind of OS are you using ? (UNIX like / MS Win / etc. )
I hope you got the idea that the files that you are missing are in MS
Windows OS.

Best regards,
Alin
 
C

Chris Finch

Thanks guys,
(Alin I'm using Windows XP.)

I done
gem install win32-file-stat
and it works now.

Is it odd that win32-file-stat is not included as a dependency for
ptools? After all, it depends on it to work?!

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top