Re^2: How start an application on Linux
by GUIfriend (Sexton) on Jan 17, 2014 at 17:39 UTC
|
Thank you for your reply.
Concluding from what happens on Windows with ActivePerl versus Strawberry Perl, it might be
perl /path/to/your/perl/bin/sudokutrainer.pl
or
perl /path/to/your/perl/site/bin/sudokutrainer.pl
I don't have access to Linux, so I cannot try out (using an already installed application) what will be correct. Hopefully you happen to know the answer. | [reply] [d/l] [select] |
|
|
If you have a windows box, you can boot to Linux from an Ubuntu image on a thumb drive, or run it in Virtual Box, or set up dual-boot, or any of a number of other options. You might actually like it. ;)
| [reply] |
|
|
I presume that you are talking about a Ubuntu live system on a USB stick. That should be fine, provided that it can share data with Windows on the HDD, maybe via a small fat-formatted partition. I will try to find out whether my PC can boot from a USB device. Many thanks for this advice.
Once I had created a dual-boot config, with Grub as the boot mgr, but not residing in the MBR, to protect the MBR from getting destroyed. It worked for a good while, but then ... I swore to never dare this adventure again.
| [reply] |
|
|
|
|
|
|
A matter of taste ;-) But i think it should be installed in /usr/local/bin or perhaps /opt/bin.
Keep in mind that it is always good practice to leave system Perl untouched.
And IMHO you should have access to a Linux box and test the install routine also there.
Please see also Filesystem_Hierarchy_Standard.
Update:
The paths you mentioned should be in the PATH environment variable under normal circumstances, as well as the ones i mentioned. So the user can say sudokutrainer.pl in his terminal and the app should launch.
Best regards, Karl
«The Crux of the Biscuit is the Apostrophe»
| [reply] [d/l] [select] |
|
|
Forcing your code to install in particular directories is a Very Bad Idea Indeed.
Do *not* see the "filesystem hierarchy standard". It is Linux-specific, but in any case it is unnecessary. Just rely on perl (via Module::Build or ExtUtils::MakeMaker) to know where to install it.
| [reply] |
|
|
|
|
|
|
Yes you do. Everyone has access to Linux
Go here and download Virtual Box. Virtual Box will allow you to run an operating system inside of Windows without affecting the parent operating system.
Once you have downloaded Virtual Box, you will need a Linux distribution. For a beginner I would recommend Ubuntu, but any flavor of Linux will work.
Here's a few links to download Linux
I've ordered them from lowest to highest learning curve. You should be able to plug the Ubuntu ISO into VBox and run it, while ArchLinux will require more work (there's no "installer" per se, and you'll need to set everything up manually).
VirtualBox Documentation can be found here. You can probably just skip to Creating your first virtual machine
| [reply] |
|
|
| [reply] |