From: Michaile Wirachmat Date: 2011-04-19T10:47:22+09:00 Subject: Re: Using the win32api/Open file --_e1be0ad7-dccf-4985-8a58-e9441c36bfcd_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Daer=2C Mr.David Willey=3B Mr. David I dont know what can i do ? I have Ruby on rails V 1.7.2 =2C and = my friend referencing for me using Win32 Ole and then i find your list. > Date: Tue=2C 19 Apr 2011 05:40:33 +0900 > From: luislavena@gmail.com > Subject: Re: Using the win32api > To: ruby-talk@ruby-lang.org >=20 > On Apr 18=2C 8:13 am=2C antoine crouzi wrote: > > Hi all=2C > > > > I'm trying to use the win32api=2C in the Sketchup ruby API. then loadin= g > > the package with > > > > require "win32api" > > > > I get the following error : > > > > no such file to load -- win32api > > > > I'm using this page as a reference :http://www.ruby-doc.org/docs/Progra= mmingRuby/html/lib_windows.html. > > > > Am I doing something wrong ? do I need to install a gem before using th= e > > api ? > > > > I'm on windows with ruby 1.8.6=2C installed via the windows binary > > package. I think it might be a problem with the ruby paths. > > > > I have search for a file called win32api in the ruby installation > > directory=2C there is a .so file=2C but no .rb file. > > >=20 > SketchUp provides it's own version of Ruby that you can't replace or > mix with a another installation. >=20 > win32api is a Ruby C-extension and its file extension is ".so" so that > part is correct=2C you will find it on any installation of > RubyInstaller. >=20 > However=2C if that file is missing from sketchup=2C you could try placing > in the valid Ruby paths of the tool=2C but I recommend not to=2C speciall= y > since things could explode on your face. >=20 > AFAIK SketchUp uses an old version of Ruby and RubyInstaller has been > provided for modern versions=2C mixing them could lead to issues. >=20 > -- > Luis Lavena >=20 My Nane : Cici WirachmatSignature powered by WiseStamp = --_e1be0ad7-dccf-4985-8a58-e9441c36bfcd_--