Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

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

by kcott (Archbishop)
on Feb 18, 2021 at 06:06 UTC ( [id://11128509]=note: print w/replies, xml ) Need Help??


in reply to Re^4: New-to-Perl: recommendations for windows setup? [Win10+Cygwin+Perlbrew+...]
in thread New-to-Perl: recommendations for windows setup?

"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

  • Comment on Re^5: New-to-Perl: recommendations for windows setup? [Win10+Cygwin+Perlbrew+...]
  • Download Code

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

    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.

      For ActiveState Perl or Strawberry, you don't need it. For cygwin Perl, you do.

      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

        thanks, that's useful to know and as kcott says for cygwin it's a behind-the-scenes process.

      It's been a while now, so I don't recall the exact specifics; however, I didn't need to do anything special.

      The "Cygwin XLaunch" (and other X Server applications) were installed as part of the initial Cygwin setup; I did not need to specify anything in particular for X. There were no additional installation requirements that I needed to perform on the Win10 side; e.g. no extra downloads of libraries, no x_for_cygwin.msi (or similar) to run, etc.

      Please note that I'm not trying to fiercely promote Cygwin; I just wanted to put your mind at ease if you do choose it. It does everything I need in both the professional and personal arenas. My preferences and requirements may not align with yours.

      Another thing that could make a difference is the OS and hardware. I've specified Win10 throughout (it's 64-bit). Briefly, my basic hardware is: 6 core/12 logical 3.2GHz CPUs; 32GB RAM; RTX 2080 Ti GPU; 2 x 2TB SSDs. All my comments are based on this setup; depending on what you have available, YMMV.

      — Ken

        thanks! that's clear.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-18 18:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found