O Monks,

I have a Perl/Tk app that I designed to be multiplatform, and that used to run fine on both Linux and Windows. However, it got to be a hassle supporting Windows users, since I didn't have a Windows box for testing, so I switched to only supporting Linux. Recently it occurred to me that it might be fun to see if I could get it running in Wine.

Has anyone tried running strawberry perl (SP) inside wine? I ran the installer, and was able to run hello_world.pl from inside wine. However, I'm stymied so far by how to install CPAN modules. SP installs a CPAN item in the Start Menu, and the strings command reports that this seems to be a link to C:\strawberry\perl\bin\cpan.bat. To run a .bat file in wine, googling shows lots of stuff about wcmd, but I don't seem to have anything called wcmd on my wine install. Apparently there is also something called wineconsole which emulates a DOS console. I did "wineconsole cmd," which gave me a DOS prompt, and then when I typed cpan, I got "Cannot open $CONOUT for write at ...CPAN.pm line 248", where line 248 is $term = Term::ReadLine->new('CPAN Monitor');.

Anyone have any suggestions?

TIA!

Update: I tried writing a perl script that did "use CPAN; install 'Tk'". The result was that it tried to connect to cpan.strawberryperl.com via ftp, but failed because it couldn't find an ftp program.


In reply to strawberry perl in wine? by bcrowell2

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.