# Wine and win32ole

**URL:** <https://rubytalk.org/t/wine-and-win32ole/19990>\
**Category:** ruby-talk\
**Created:** [7 August 2005 02:26 UTC](https://rubytalk.org/t/wine-and-win32ole/19990 "2005-08-07T02:26:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [7 August 2005 02:26 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/1 "2005-08-07T02:26:00Z")

</div>

any one out there thought of using wine to compile win32ole on \*nix? anyone  
done it?

i found one post on clr about it... but it was pretty old.

cheers.

-a

> **···**
>
> # --
> 
> > email :: ara [dot] t [dot] howard [at] noaa [dot] gov  
> > phone :: 303.497.6469  
> > Your life dwells amoung the causes of death Like a lamp standing in a strong breeze. --Nagarjuna
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Daniel\_Amelang](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Daniel\_Amelang](https://rubytalk.org/u/Daniel_Amelang)\
**Post date:** [8 August 2005 18:15 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/2 "2005-08-08T18:15:58Z")

</div>

I've never used wine for cross-compilation. I've always been happy  
with mingw for that purpose.

Dan

> **···**
>
> On 8/6/05, Ara.T.Howard \<Ara.T.Howard@noaa.gov\> wrote:
> 
> > any one out there thought of using wine to compile win32ole on \*nix? anyone  
> > done it?
> > 
> > i found one post on clr about it... but it was pretty old.
> > 
> > cheers.
> > 
> > # -a --
> > 
> > # \> email :: ara [dot] t [dot] howard [at] noaa [dot] gov \> phone :: 303.497.6469 \> Your life dwells amoung the causes of death \> Like a lamp standing in a strong breeze. --Nagarjuna

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [8 August 2005 18:33 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/3 "2005-08-08T18:33:22Z")

</div>

correct me if i'm wrong - but isn't this the solution for the opposite problem  
i'm trying to solve? i'm trying to use win32ole on \*nix...

cheers.

-a

> **···**
>
> On Tue, 9 Aug 2005, Daniel Amelang wrote:
> 
> > I've never used wine for cross-compilation. I've always been happy  
> > with mingw for that purpose.
> 
> # --
> 
> > email :: ara [dot] t [dot] howard [at] noaa [dot] gov  
> > phone :: 303.497.6469  
> > Your life dwells amoung the causes of death Like a lamp standing in a strong breeze. --Nagarjuna
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Daniel\_Amelang](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Daniel\_Amelang](https://rubytalk.org/u/Daniel_Amelang)\
**Post date:** [8 August 2005 19:09 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/4 "2005-08-08T19:09:41Z")

</div>

You said you were interested in 'using wine to compile win32ole on  
\*nix' (first post), which is entirely different that 'trying to use  
win32ole on \*nix' (second post).

Anyways, assuming you want to make win32ole calls in a ruby script  
running on \*nix inside a wine install (whew!)...I have had success  
with the following setup (that should be relavent to your question):

1) I installed wine (via codeweavers installer)  
2) I installed ruby windows one-click installer into the wine environment  
3) I installed windows office  
4) I was able to make win32ole calls in ruby (the wine one)

I haven't tried controlling excel via win32ole calls in this  
environment, but I have done very similiar things that lead me to  
believe that you can.

Hope that helps!

Dan

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [8 August 2005 19:35 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/5 "2005-08-08T19:35:47Z")

</div>

> You said you were interested in 'using wine to compile win32ole on  
> \*nix' (first post), which is entirely different that 'trying to use  
> win32ole on \*nix' (second post).
> 
> Anyways, assuming you want to make win32ole calls in a ruby script  
> running on \*nix inside a wine install (whew!)...I have had success  
> with the following setup (that should be relavent to your question):
> 
> 1) I installed wine (via codeweavers installer)

i compiled from the latest wine source - and reason to prefer your appoach?

> 2) I installed ruby windows one-click installer into the wine environment  
> 3) I installed windows office  
> 4) I was able to make win32ole calls in ruby (the wine one)
> 
> I haven't tried controlling excel via win32ole calls in this  
> environment, but I have done very similiar things that lead me to  
> believe that you can.
> 
> Hope that helps!

tremendously. i did not consider installing the one click under wine -  
tricky! standard ruby core dumps just loading win32ole if you call the nix  
ruby and try to load a win32ole compiled against winelib. your approach makes  
a good bit more sense! basically i'm trying to setup an environment to do  
windows filetype conversions on a bsd server. this sounds like a good  
approach. i'll ping the list if i successfully convert an excel doc this way.

many thanks!

-a

> **···**
>
> # On Tue, 9 Aug 2005, Daniel Amelang wrote: --
> 
> > email :: ara [dot] t [dot] howard [at] noaa [dot] gov  
> > phone :: 303.497.6469  
> > Your life dwells amoung the causes of death Like a lamp standing in a strong breeze. --Nagarjuna
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Daniel\_Amelang](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Daniel\_Amelang](https://rubytalk.org/u/Daniel_Amelang)\
**Post date:** [8 August 2005 22:25 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/6 "2005-08-08T22:25:49Z")

</div>

> \> 1) I installed wine (via codeweavers installer)
> 
> i compiled from the latest wine source - and reason to prefer your appoach?

I'm lazy 😛  
Codeweavers makes managing your wine install a no-brainer, and  
installing new apps is just too easy. I already get the latest  
crossover installers for free since I help support one of their apps.  
And their install includes all sorts of stuff you might otherwise need  
to track down and install yourself (in addition to the wine core),  
especially when it comes to running MS Office apps.

I'm no wine guru, but I'm pretty sure that you can get the one-click  
installer working just fine without crossover, but MS Excel might be  
harder without the codeweavers tricks. It's only a one time $30 if you  
prefer the easy route, though. It's saved me a lot of time over the  
past couple years. (end of codeweavers plug 🙂

> basically i'm trying to setup an environment to do  
> windows filetype conversions on a bsd server. this sounds like a good  
> approach. i'll ping the list if i successfully convert an excel doc this way.

Yah, I've been reading your other posts. I really think this approach  
is going to be the easiest, considering the alternatives I've heard  
you propose.

> many thanks!

No problem! Thank you for all that \_you've\_ contributed to the ruby community.

Dan

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [8 August 2005 23:49 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/7 "2005-08-08T23:49:15Z")

</div>

> > > 1) I installed wine (via codeweavers installer)
> > 
> > i compiled from the latest wine source - and reason to prefer your appoach?
> 
> I'm lazy 😛

amen brother!

> Codeweavers makes managing your wine install a no-brainer, and installing  
> new apps is just too easy. I already get the latest crossover installers for  
> free since I help support one of their apps. And their install includes all  
> sorts of stuff you might otherwise need to track down and install yourself  
> (in addition to the wine core), especially when it comes to running MS  
> Office apps.
> 
> I'm no wine guru, but I'm pretty sure that you can get the one-click  
> installer working just fine without crossover, but MS Excel might be harder  
> without the codeweavers tricks. It's only a one time $30 if you prefer the  
> easy route, though. It's saved me a lot of time over the past couple years.  
> (end of codeweavers plug 🙂

hmmm. that does sounds like it could be tough... the 30 pesos might be well  
spent...

> > basically i'm trying to setup an environment to do windows filetype  
> > conversions on a bsd server. this sounds like a good approach. i'll ping  
> > the list if i successfully convert an excel doc this way.
> 
> Yah, I've been reading your other posts. I really think this approach is  
> going to be the easiest, considering the alternatives I've heard you  
> propose.

well - the files are quite simple so a pure ruby reader has an appeal - but  
this approach would give so much more for very little effort (ideally).

> No problem! Thank you for all that \_you've\_ contributed to the ruby  
> community.

thanks for the thanks! it's only fair - this list has saved me a lot of time  
over the years.

regards.

-a

> **···**
>
> # On Tue, 9 Aug 2005, Daniel Amelang wrote: --
> 
> > email :: ara [dot] t [dot] howard [at] noaa [dot] gov  
> > phone :: 303.497.6469  
> > Your life dwells amoung the causes of death Like a lamp standing in a strong breeze. --Nagarjuna
> 
> ===============================================================================

---

<div class="post-metadata">

**Author:** ![Ara.T.Howard6](https://avatars.discourse-cdn.com/v4/letter/a/958977/32.png) [@Ara.T.Howard6](https://rubytalk.org/u/Ara.T.Howard6)\
**Post date:** [10 August 2005 14:36 UTC](https://rubytalk.org/t/wine-and-win32ole/19990/8 "2005-08-10T14:36:04Z")

</div>

i ended up going this route for testing. in installed cxoffice, the ruby one  
click installer, and then ms-office and the xls2csv code (posted in that  
thread) is working. pretty neat.

have you been making heavy use of such a system in any sort of production  
environment? it's a nice approach to be able to do windows doccument  
conversion on a \*nix box - but i wonder about robustness. any issue of  
concern is security, but i guess you at least have the standard unix  
mechanisms to protect you there - like not being able to write into system  
space, for example. any thoughts on that?

thanks for the pointers.

-a

> **···**
>
> On Tue, 9 Aug 2005, Daniel Amelang wrote:
> 
> > I'm lazy 😛
> > 
> > Codeweavers makes managing your wine install a no-brainer, and installing  
> > new apps is just too easy. I already get the latest crossover installers for  
> > free since I help support one of their apps. And their install includes all  
> > sorts of stuff you might otherwise need to track down and install yourself  
> > (in addition to the wine core), especially when it comes to running MS  
> > Office apps.
> 
> # --
> 
> > email :: ara [dot] t [dot] howard [at] noaa [dot] gov  
> > phone :: 303.497.6469  
> > Your life dwells amoung the causes of death Like a lamp standing in a strong breeze. --Nagarjuna
> 
> ===============================================================================
