Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Writing a Perl extension framework for Inkscape

by pryrt (Abbot)
on Jan 22, 2019 at 20:03 UTC ( [id://1228842]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Writing a Perl extension framework for Inkscape
in thread Writing a Perl extension framework for Inkscape

The strawberry portable-zip is a self-contained entity that can be unzipped wherever you want it, with the binaries all precompiled (you can download either the 32bit or the 64bit); you can look at the release notes for a given release to find out which modules come pre-bundled (for example, 5.28.1 64bit). It even includes the gcc toolchain necessary for building XS-based modules, or modules that come bundled with c-type libraries. I personally grab the PDL versions of the portable zipfiles: I don't much use PDL, but I like that it comes with a bunch of mathy libraries in places where it can easily find them, like GSL.

To have it run, you just need the PATH to either temporarily or permanently include a few main directories: either use portableshell.bat (as Lotus1 recommended), which sets up a few environment variables for you; or you can temporarily set the PATH to include the appropriate bin-directories (as seen in portableshell.bat); or if you're launching from another application, it could change the **env argument to add those variables; or if you want your machine to always use that version of perl, permanently set your PATH variable to include those directories.

  • Comment on Re^3: Writing a Perl extension framework for Inkscape

Replies are listed 'Best First'.
Re^4: Writing a Perl extension framework for Inkscape
by Lotus1 (Vicar) on Jan 22, 2019 at 23:22 UTC

    pryrt wrote:

    [...] or you can temporarily set the PATH to include the appropriate bin-directories (as seen in portableshell.bat); or if you're launching from another application, it could change the **env argument to add those variables;

    Hi pryrt, I wasn't sure if you realized it but portableshell.bat can be used to launch Perl scripts from other applications. You can call it in place of perl.exe to run your script without actually opening a shell. All of the command line parameters are passed through portableshell.bat to perl.exe. If you don't provide any parameters then it just opens the shell. I have used this frequently from the Windows Task Scheduler as well as from other programs where I need to launch Perl scripts.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (8)
As of 2024-04-18 11:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found