Stuck on simple problem!

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
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:inrequire’
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

It looks like you might need to install this dependancy:
http://raa.ruby-lang.org/project/win32-file-stat/

Chris F. wrote:

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
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:inrequire’
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

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

Only on Windows. Have a look at the gemspec for the project
(http://raa.ruby-lang.org/gonzui/markup/ptools/ptools.gemspec), figure
out how to add a plattform specific dependancy and report it to the
maintainer so he can change it.

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

Alin P. wrote:

Chris F. wrote:

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
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:inrequire’
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