Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^3: New-to-Perl: recommendations for windows setup? [Win10+Cygwin+Perlbrew+...]

by kcott (Bishop)
on Feb 17, 2021 at 08:36 UTC ( #11128488=note: print w/replies, xml ) Need Help??

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

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

Replies are listed 'Best First'.
Re^4: New-to-Perl: recommendations for windows setup? [Win10+Cygwin+Perlbrew+...]
by bliako (Prior) on Feb 17, 2021 at 10:09 UTC

    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

        I meant whether an X-Server package needed to be additionally installed on the windows machine. I am not sure if Tk still needs it in Windows or now can use native widgets and wm-calls, and if that distinction is transparent.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2021-04-16 09:41 GMT
Find Nodes?
    Voting Booth?

    No recent polls found