# Ptools gem problem

**URL:** <https://www.ruby-forum.com/t/ptools-gem-problem/87146>\
**Category:** Ruby\
**Created:** [February 28, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/ptools-gem-problem/87146 "2007-02-28T14:58:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Post date:** [February 28, 2007, 2:58pm UTC](https://www.ruby-forum.com/t/ptools-gem-problem/87146/1 "2007-02-28T14:58:29Z")

</div>

i tried ptools gem and after install win-file-stat and win-pr i get this  
error in irb…

> require ‘ptools’  
> untimeError: GetProcAddress: GetVolumePathNamesForVolumeName or  
> GetVolumePathNa  
> esForVolumeNameA

```
   from

```

c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu  
e.rb:26:in `initialize' from c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu e.rb:26:in`new’  
from  
c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu  
e.rb:26  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
require\_\_’  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
require’  
from  
c:/ruby182/lib/ruby/gems/1.8/gems/win32-file-stat-1.2.4/lib/win32/f  
le/stat.rb:9  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:24:in  
require\_\_’  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:24:in  
require’  
from  
c:/ruby182/lib/ruby/gems/1.8/gems/ptools-1.1.1/lib/ptools.rb:1  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:24:in  
require\_\_’  
from  
c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:24:in  
require’  
from (irb):1

> require ‘purple’  
> oadError: No such file to load – purple  
> from  
> c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
> require\_\_’  
> from  
> c:/ruby182/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:18:in  
> require’  
> from (irb):2  
> File.which(“ruby”)  
> oMethodError: undefined method `which’ for File:Class  
> from (irb):3

i have a Win2000 srvc pak 4 with just a C drive labeled IBM\_PRELOAD

---

<div class="post-metadata">

**Author:** ![bitsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Post date:** [February 28, 2007, 6:35pm UTC](https://www.ruby-forum.com/t/ptools-gem-problem/87146/2 "2007-02-28T18:35:33Z")

</div>

On Feb 28, 6:58 am, Dave R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> i tried ptools gem and after install win-file-stat and win-pr i get this  
> error in irb…\> require ‘ptools’
> 
> untimeError: GetProcAddress: GetVolumePathNamesForVolumeName or  
> GetVolumePathNa  
> esForVolumeNameA
> 
> ```
> from
> 
> ```
> 
> c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu  
> e.rb:26:in `initialize’

Oh, drat, it seems that method is for Windows XP or later only. I’ll  
need to fix volume.rb (and check the other methods as well). I’ve got  
some other stuff in the pipe for windows-pr 0.6.4, so now is as good a  
time as any to do another release. I’ll try to get it out tonight.

If you can’t wait then I recommend installing windows-pr manually, and  
commenting out the offending lines in volume.rb directly (you won’t  
need them for ptools).

Thanks for the report.

Dan

---

<div class="post-metadata">

**Author:** ![bitsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Post date:** [February 28, 2007, 8:35pm UTC](https://www.ruby-forum.com/t/ptools-gem-problem/87146/3 "2007-02-28T20:35:32Z")

</div>

Daniel B. wrote:

> > untimeError: GetProcAddress: GetVolumePathNamesForVolumeName or  
> > GetVolumePathNa  
> > esForVolumeNameA
> > 
> > ```
> > from
> > 
> > ```
> > 
> > c:/ruby182/lib/ruby/gems/1.8/gems/windows-pr-0.6.3/lib/windows/volu  
> > e.rb:26:in `initialize’

> Oh, drat, it seems that method is for Windows XP or later only. I’ll  
> need to fix volume.rb (and check the other methods as well). I’ve got  
> some other stuff in the pipe for windows-pr 0.6.4, so now is as good a  
> time as any to do another release. I’ll try to get it out tonight.
> 
> If you can’t wait then I recommend installing windows-pr manually, and  
> commenting out the offending lines in volume.rb directly (you won’t  
> need them for ptools).
> 
> Thanks for the report.
> 
> Dan

…thanx …dan…no real hurry…i’ll watch for it…a big thanx in  
advance for your efforts…dave

---

<div class="post-metadata">

**Author:** ![bitsmith](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/9de053/32.png) [@bitsmith](https://www.ruby-forum.com/u/bitsmith)\
**Post date:** [February 28, 2007, 8:50pm UTC](https://www.ruby-forum.com/t/ptools-gem-problem/87146/4 "2007-02-28T20:50:55Z")

</div>

On Feb 28, 12:35 pm, Dave R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> > some other stuff in the pipe for windows-pr 0.6.4, so now is as good a  
> > .thanx …dan…no real hurry…i’ll watch for it…a big thanx in  
> > advance for your efforts…dave

I went ahead and released 0.6.4, so it should be available by now, or  
in the next hour or so.

Regards,

Dan
