[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

has 'ping' been dropped from 1.9.1?

John Maclean

3/14/2009 10:35:00 PM

=begin
RUBY_REVISION
=> 21895
=end

require 'ping'
LoadError: no such file to load -- ping
from (irb):1:in `require'
from (irb):1


--
John Maclean
07739 171 531
MSc (DIC)

Timezone: GMT

3 Answers

Michael Linfield

3/15/2009 2:12:00 AM

0

> require 'ping'
> LoadError: no such file to load -- ping
> from (irb):1:in `require'
> from (irb):1
>

if you desperately need it (though yes it seems it wasn't included in
the source package) just move it over from 1.8 or download it
separately.

mv /usr/lib/ruby/1.8/ping.rb /usr/lib/ruby/1.9.1/

Not the best solution but work with wut yuh got!

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

Ken Bloom

3/15/2009 3:51:00 PM

0

On Sat, 14 Mar 2009 21:12:24 -0500, Michael Linfield wrote:

>> require 'ping'
>> LoadError: no such file to load -- ping
>> from (irb):1:in `require'
>> from (irb):1
>>
>>
> if you desperately need it (though yes it seems it wasn't included in
> the source package) just move it over from 1.8 or download it
> separately.
>
> mv /usr/lib/ruby/1.8/ping.rb /usr/lib/ruby/1.9.1/
>
> Not the best solution but work with wut yuh got!
>
> - Mac

That's a horrible idea. If the 1.8 version works, include it in your
project, but don't go modifying your standard library.



--
Chanoch (Ken) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu...

Michael Linfield

3/15/2009 6:08:00 PM

0

> That's a horrible idea. If the 1.8 version works, include it in your
> project, but don't go modifying your standard library.

Hence "not the best solution". And it wouldn't be modifying the
'standard' library because ping wasn't included in the standard library;
therefore it isn't standard. I would agree with you if I was replacing
Find or something with a 1.8 distro file, a file that was already
included in the standard library.

If ping is re-added in a future release, the 1.8v of ping will be
overwritten.

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