[Wtr-general] Installing "pipe.so" under win32
Chris McMahon
christopher.mcmahon at gmail.com
Mon Oct 2 22:04:19 EDT 2006
On 10/2/06, Park, Chong SuhX <chong.suhx.park at intel.com> wrote:
>
> I got this win32 version of libarary from rubyforge.org and suppose ".so"
> is already pre-compiled library which I can simply drop in the sub-directory
> of ruby where many other *.so files are location however, I am getting
>
So a couple of things. You might first consider the advice of the good
ftools folks "...consider using FileUtils as it is more comprehensive"
and fileutils is included in the standard Windows distro, i.e.:
irb(main):005:0* require 'fileutils'
=> true
irb(main):006:0> mkdir('bar')
NoMethodError: undefined method `mkdir' for main:Object
from (irb):6
irb(main):007:0> FileUtils.mkdir('bar')
=> ["bar"]
irb(main):008:0>
You can do a lot with FileUtils (like copying), hopefully what you need to
do is on this list:
cd(dir, options)
cd(dir, options) {|dir| .... }
pwd()
mkdir(dir, options)
mkdir(list, options)
mkdir_p(dir, options)
mkdir_p(list, options)
rmdir(dir, options)
rmdir(list, options)
ln(old, new, options)
ln(list, destdir, options)
ln_s(old, new, options)
ln_s(list, destdir, options)
ln_sf(src, dest, options)
cp(src, dest, options)
cp(list, dir, options)
cp_r(src, dest, options)
cp_r(list, dir, options)
mv(src, dest, options)
mv(list, dir, options)
rm(list, options)
rm_r(list, options)
rm_rf(list, options)
install(src, dest, mode = <src's>, options)
chmod(mode, list, options)
chmod_R(mode, list, options)
chown(user, group, list, options)
chown_R(user, group, list, options)
http://www.ruby-doc.org/core/classes/FileUtils.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20061002/17cfaa23/attachment.html
More information about the Wtr-general
mailing list