[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

stuck on simple problem!

Chris Finch

2/28/2007 9:57:00 AM

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

--
Posted via http://www.ruby-....

4 Answers

Tim Becker

2/28/2007 10:08:00 AM

0

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

On 2/28/07, Chris Finch <christopher.finch@nuth.nhs.uk> 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: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
>
> --
> Posted via http://www.ruby-....
>
>

Alin Popa

2/28/2007 10:09:00 AM

0

Chris Finch 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: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

--
Posted via http://www.ruby-....

Chris Finch

2/28/2007 10:21:00 AM

0

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 Popa wrote:
> Chris Finch 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: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


--
Posted via http://www.ruby-....

Tim Becker

2/28/2007 10:38:00 AM

0

> 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/ptoo...), figure
out how to add a plattform specific dependancy and report it to the
maintainer so he can change it.