Ask a Question related to PERL Miscellaneous, Design and Development.
-
Jonathan Gowland #1
Which Perl files (other than modules) are used by a script?
I'm writing a software installer (in Perl, of course) which is
intended to run from a CD. Because it may be used on customer systems
where they don't have Perl installed (shame on them, I know, but they
pay the bills), I need to put enough of the Perl runtime environment
on the CD to allow the installer program to run. And because the
installer program is likely to be enhanced in future, with the use of
extra modules, I want to be able to generate the list of supporting
files (.pm files, shared libraries, etc.) automatically. Although I
can test (and have tested) things by temporarily renaming the
directory holding the system's Perl libraries, we support around six
different UNIX and Linux systems, so I'm after a method that can tell
me what needs to go onto the CD before I test it.
Using %INC, I can determine the list of module files nicely. To find
out which shared libraries are needed, I thought I could use
@DynaLoader::dl_modules, but on some platforms (e.g. Linux with Perl
5.6.1) this array is empty. (Any ideas?) So as a fallback, I look
under $Config{archlibexp} for any shared libraries whose name matches
a module in %INC. This seems to work for all platforms except one.
On Solaris 7 with Perl 5.005_03, when I run using the cut-down
environment, I get:
Can't locate auto/DynaLoader/dl_findfile.al in @INC (@INC contains
...
So is there a better way to determine which shared library and other
non-module files are needed by a script?
Jonathan Gowland Guest
-
Loading Perl Modules from same directory as script
Well, after only 6 hours of hacking around trying to do something that should be obvious in perl - but isn't - i seem to have found two solutions :... -
Newbie: Bundling Perl script and modules in a Mac OS X app?
Is it possible to bundle a Mac OS X application with a Perl script and a number of required modules, stored in the application package (folder... -
Perl modules on Mac OS X
Hi fellows, I have a funny problem: When installing my OS (Mac OS 10.3), I did not realize that the 'make' utility was part of the developer tools... -
Re : Installing CPAN Perl Modules with Activestate Perl 5. v5.8
Hi, In the process of trying to get perl modules installed, I downloaded over 300 Activestate specific perl modules and they work fine (of the ones... -
How Can I Install PERL Modules w/o Upgrading PERL?
Shalom! I absolutely hate it when I install a required module for one piece of software or another, and suddenly it begins installing the... -
Tina Mueller #2
Re: Which Perl files (other than modules) are used by a script?
Jonathan Gowland wrote:
you might want to have a look at the PAR-module (available on> I'm writing a software installer (in Perl, of course) which is
> intended to run from a CD. Because it may be used on customer systems
> where they don't have Perl installed (shame on them, I know, but they
> pay the bills), I need to put enough of the Perl runtime environment
> on the CD to allow the installer program to run.
CPAN). it packs your program and all needed files into an
executable (or in an extra .par-file).
hth, tina
--
[url]http://www.tinita.de/[/url] \ enter__| |__the___ _ _ ___
[url]http://Movies.tinita.de/[/url] \ / _` / _ \/ _ \ '_(_-< of
[url]http://www.perlquotes.de/[/url] \ \ _,_\ __/\ __/_| /__/ perception
- the above mail address expires end of december 2003 -
Tina Mueller Guest



Reply With Quote

