Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: New-to-Perl: recommendations for windows setup?

by bliako (Prior)
on Feb 16, 2021 at 20:26 UTC ( #11128468=note: print w/replies, xml ) Need Help??


in reply to Re: New-to-Perl: recommendations for windows setup?
in thread New-to-Perl: recommendations for windows setup?

I remember trying to install cygwin a year ago in some other machine but something failed while compiling things: I think at linking it was looking for .so files instead of .dll. And I quickly gave up since it was just an experiment. Thanks for the suggestion. If it eventually works, a bash-like windows terminal sounds great.

  • Comment on Re^2: New-to-Perl: recommendations for windows setup?

Replies are listed 'Best First'.
Re^3: New-to-Perl: recommendations for windows setup? [Win10+Cygwin+Perlbrew+...]
by kcott (Bishop) on Feb 17, 2021 at 08:36 UTC

    G'day bliako,

    I went through this process about 18 months ago. I asked similar questions to you and, like you, I got a lot of replies. It ended up a rather long thread; read it all if you want; here's my three main posts:

    Here's a brief, non-exhaustive, overview of features:

    • The Win10+Cygwin provides a Unix environment. It's not substantially different from the Linux (OpenSUSE) machine I use for $work.
    • I run bash on a mintty xterm (Cygwin64 Console). It provides a vi interface on the command line (set -o vi in ~/.bashrc). It has all the usual Unix commands and utilities.
    • I have Perlbrew installed. I initially used this to install Perl 5.30.0; I subsequently used the same to upgrade to 5.32.0 and later to 5.33.5.
    • I run an X Server with Cygwin XLaunch. Perl Tk programs work fine with this. (There's actually 16 X Servers available.)
    • I access many open source applications via aliases: soffice file.docx (LibreOffice); foxit file.pdf (Foxit); and so on.
    • I have an Apache webserver set up. Other webservers that are started by Perl web frameworks, e.g. Dancer2, also work without any problems.
    • I run network-related utilities, such as ssh and git, almost every day.
    • ... and so on ...

    In the main, I've had no trouble installing Perl modules. One issue I had, took me a while to sort out: "cpan: Terminal does not support AddHistory.". With another, I needed help from fellow monks: "Update XML::LibXML - can't find "xlocale.h"".

    There's a number of open source applications that I access directly from Win10: Firefox; Thunderbird; Vlc; and others.

    I use this setup five days a week for $work; and seven days a week for my own projects. Overall, I'm very happy with what I have.

    I felt this was getting overly long; I could've written a lot more. Please ask if you have any specific questions about things I haven't touched on, or areas where you'd like further details.

    — Ken

      kcott thanks for sharing your homework! And you do introduce another iceberg: Tk and X-server.

        "And you do introduce another iceberg: Tk and X-server."

        I'm not sure what you mean. A daunting heap of problems in front of you; and an even greater mass, hidden from sight, waiting to sink your ship? :-)

        I write a lot of Tk programs: many posted here; many more for personal use. I don't have any problems with the setup I described above.

        I do have this file, in my home directory, which might help with some of your problems.

        # .bash_vars # To be sourced by .bash_profile. # Use for potentially volatile environment variables. # Saves having to make repeated edits to .bash_profile. # Also, can be sourced independently. set -a # For X11 DISPLAY=:0 LIBGL_ALWAYS_INDIRECT=1 # ... irrelevant personal variables ... # For Tk XFT=1 # For Git SSH_ASKPASS= set +a

        — Ken

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11128468]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2021-04-16 12:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?