Sponsored Content
Top Forums UNIX for Advanced & Expert Users perl and HP-UX : instmodsh in combination with software depot : update inventory for installed Perl Post 302624285 by bora99 on Monday 16th of April 2012 11:25:42 AM
Old 04-16-2012
perl and HP-UX : instmodsh in combination with software depot : update inventory for installed Perl

we create a HP-UX software depot with a new perl-modul. after installation of the software depot, the perl module
i can't find with instmodsh in the inventory for installed Perl modules.

- i have learned of using instmodsh command : i find out what modules are already installed on my system.

- we have following system
- at a one server we install a perl modul to a different directory (INSTALLDIRS="vendor").
- then we use HP-UX swpackage to create a software depot with the files of the perl module.
- finally we install a perl module with HP-UX "swinstall"


this system works well and the perl modul works well after installation with HP-UX "swinstall" .

but now i find out, i can't see the perl modul with "instmodsh"
when i install it interactive with "perl Makefile.PL" and "make install", i can see it with "instmodsh".

so i think, i have to start a command to update the inventory for installed Perl modules ?

i think it is a part of the created "Makefile" (with "perl Makefile.PL") ?

for update perllocal.pod i find a debug in the Makefile:

/usr/bin/perl "-MExtUtils::Command::MM" -e perllocal_install "Module" "<New-Module" "installed into" "/opt/perl_32/lib/vendor_perl/5.8.8" LINKTYPE "dynamic" VERSION "<Version>" EXE_FILES " /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/perllocal.pod"

---------- Post updated at 05:25 PM ---------- Previous update was at 11:14 AM ----------

i have news :

i have little skills of Makefile.

i can update the inventory with following sections of Makefile:

make pure_perl_install and make doc_vendor_install. but i check with Perl Module Manager | Free software downloads at SourceForge.net the inventory like /usr/bin/perlmod -f Module::Mod1 and the module exists , but no detail informations. this is the part of Makefile , which i want to extend after software depot installation:

make pure_perl_install
/usr/bin/perl -MExtUtils::Install -e 'install({@ARGV}, '\''0'\'', 0, '\''0'\'');' \
read /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1/.packlist \
write /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1/.packlist \
blib/lib /opt/perl_32/lib/5.8.8 \
blib/arch /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi \
blib/bin /opt/perl_32/bin \
blib/script /opt/perl_32/bin \
blib/man1 /opt/perl_32/man/man1 \
blib/man3 /opt/perl_32/man/man3

/usr/bin/perl "-MExtUtils::Command::MM" -e warn_if_old_packlist \
/opt/perl_32/lib/site_perl/5.8.8/IA64.ARCHREV_0-thread-multi/auto/Module/Mod1


make doc_vendor_install
/usr/bin/perl "-MExtUtils::Command" -e mkpath /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi

/usr/bin/perl "-MExtUtils::Command::MM" -e perllocal_install "Module" "Module::Mod1" "installed into" "/opt/perl_32/lib/vendor_perl/5.8.8" LINKTYPE "dynamic" VERSION "0.92" EXE_FILES " /opt/perl_32/lib/5.8.8/IA64.ARCHREV_0-thread-multi/perllocal.pod"
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Software Inventory

How can I find out what software is installed on the machine, other than ls? Is there a registry program like in Windows? The os is Sun 2.5. Thanks (1 Reply)
Discussion started by: ViperD
1 Replies

2. Shell Programming and Scripting

How to check if perl is installed?

Hi, i'm designing a unix script and i want to know if there is a shell command or a way to see if perl is installed in the system. thanks in advance! (5 Replies)
Discussion started by: kfad
5 Replies

3. Shell Programming and Scripting

Which version of perl is installed on my system?

Hi, With the command perl -v i can see the perl version, but it's like a text file.. is there a command which could give me just the perl version number? i.e.: "5.8.1" thanks!! (6 Replies)
Discussion started by: kfad
6 Replies

4. UNIX for Advanced & Expert Users

Collecting software inventory

how to obtain/ collect a list of all the applications installed in the system.. is there a configuration file(like the one which exists for hardware ) which holds all this information?? if no is there any command/shell script or utility that we can use for the same ?? I am using Red hat linux... (2 Replies)
Discussion started by: superghost
2 Replies

5. UNIX for Dummies Questions & Answers

How to know the program 'perl' is installed ?

Hi, How can I know the perl interpreter is installed in the system? When I type 'find / -name perl -print 2>/dev/null', there is 6 lines listing: /usr/local/bin/perl /usr/bin/perl /usr/lib/perl-5.8.0/bin/perl /usr/opt/IAFW310/PERL/perl /usr/opt/IAFW310/PERL/t/perl... (3 Replies)
Discussion started by: zp523444
3 Replies

6. AIX

Perl installed by default?

Hi all, I wanted to know if Perl comes installed by default on AIX 5.2 and 5.3. I know it's available through the Linux affinity toolbox, but couldn't figure out if it's installed by default along with the RPM (rpm.rte). Does anyone know for sure? Thanks, JP (4 Replies)
Discussion started by: jbeaudry
4 Replies

7. UNIX for Dummies Questions & Answers

Utilities/Scipts to Inventory Hardware and Software

Hi All, I am looking for a way to inventory the hardware and software components of many Solaris 8 servers/workstations. I would like to script this to run against a list of IP's in a text file. For Windows there are many such programs available (like Belarc) Is there anything similar for... (4 Replies)
Discussion started by: limey
4 Replies

8. HP-UX

DEPOT software

I am using SAM and it is asking for the location of the DEPOT software. I don't know what the DEPOT software is. Can anyone explain and tell me where the default location for the software is? Thanks in advance (3 Replies)
Discussion started by: Randydog
3 Replies

9. HP-UX

Good acl for remote depot software

This is the situation On hpux2.domain.com i have set a depot source,copying various depots on /var/spool/sw I can install from hpux2,but i want to do a remote access to other hosts,i have tried this swacl -l global_product_template -M host:hpux3.domain.com:crw-t swacl -l depot -M... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies

10. UNIX for Advanced & Expert Users

Server inventory software

Hi, do you know any good server inventory open source products? I want information like, server hostnames, ram, cpu, os, filesystems, volume groups, disks, adapters, installed software versions, firmware levels and so on os: aix, solaris, linux, hpux data should be kept in a database, web... (7 Replies)
Discussion started by: funksen
7 Replies
Module::Build::Compat(3pm)				 Perl Programmers Reference Guide				Module::Build::Compat(3pm)

NAME
Module::Build::Compat - Compatibility with ExtUtils::MakeMaker SYNOPSIS
# In a Build.PL : use Module::Build; my $build = Module::Build->new ( module_name => 'Foo::Bar', license => 'perl', create_makefile_pl => 'traditional' ); ... DESCRIPTION
Because "ExtUtils::MakeMaker" has been the standard way to distribute modules for a long time, many tools (CPAN.pm, or your system administrator) may expect to find a working Makefile.PL in every distribution they download from CPAN. If you want to throw them a bone, you can use "Module::Build::Compat" to automatically generate a Makefile.PL for you, in one of several different styles. "Module::Build::Compat" also provides some code that helps out the Makefile.PL at runtime. METHODS
create_makefile_pl($style, $build) Creates a Makefile.PL in the current directory in one of several styles, based on the supplied "Module::Build" object $build. This is typically controlled by passing the desired style as the "create_makefile_pl" parameter to "Module::Build"'s "new()" method; the Makefile.PL will then be automatically created during the "distdir" action. The currently supported styles are: traditional A Makefile.PL will be created in the "traditional" style, i.e. it will use "ExtUtils::MakeMaker" and won't rely on "Module::Build" at all. In order to create the Makefile.PL, we'll include the "requires" and "build_requires" dependencies as the "PREREQ_PM" parameter. You don't want to use this style if during the "perl Build.PL" stage you ask the user questions, or do some auto-sensing about the user's environment, or if you subclass "Module::Build" to do some customization, because the vanilla Makefile.PL won't do any of that. small A small Makefile.PL will be created that passes all functionality through to the Build.PL script in the same directory. The user must already have "Module::Build" installed in order to use this, or else they'll get a module-not-found error. passthrough (DEPRECATED) This is just like the "small" option above, but if "Module::Build" is not already installed on the user's system, the script will offer to use "CPAN.pm" to download it and install it before continuing with the build. This option has been deprecated and may be removed in a future version of Module::Build. Modern CPAN.pm and CPANPLUS will recognize the "configure_requires" metadata property and install Module::Build before running Build.PL if Module::Build is listed and Module::Build now adds itself to configure_requires by default. Perl 5.10.1 includes "configure_requires" support. In the future, when "configure_requires" support is deemed sufficiently widespread, the "passthrough" style will be removed. run_build_pl(args => @ARGV) This method runs the Build.PL script, passing it any arguments the user may have supplied to the "perl Makefile.PL" command. Because "ExtUtils::MakeMaker" and "Module::Build" accept different arguments, this method also performs some translation between the two. "run_build_pl()" accepts the following named parameters: args The "args" parameter specifies the parameters that would usually appear on the command line of the "perl Makefile.PL" command - typically you'll just pass a reference to @ARGV. script This is the filename of the script to run - it defaults to "Build.PL". write_makefile() This method writes a 'dummy' Makefile that will pass all commands through to the corresponding "Module::Build" actions. "write_makefile()" accepts the following named parameters: makefile The name of the file to write - defaults to the string "Makefile". SCENARIOS
So, some common scenarios are: 1. Just include a Build.PL script (without a Makefile.PL script), and give installation directions in a README or INSTALL document explaining how to install the module. In particular, explain that the user must install "Module::Build" before installing your module. Note that if you do this, you may make things easier for yourself, but harder for people with older versions of CPAN or CPANPLUS on their system, because those tools generally only understand the Makefile.PL/"ExtUtils::MakeMaker" way of doing things. 2. Include a Build.PL script and a "traditional" Makefile.PL, created either manually or with "create_makefile_pl()". Users won't ever have to install "Module::Build" if they use the Makefile.PL, but they won't get to take advantage of "Module::Build"'s extra features either. For good measure, of course, test both the Makefile.PL and the Build.PL before shipping. 3. Include a Build.PL script and a "pass-through" Makefile.PL built using "Module::Build::Compat". This will mean that people can continue to use the "old" installation commands, and they may never notice that it's actually doing something else behind the scenes. It will also mean that your installation process is compatible with older versions of tools like CPAN and CPANPLUS. AUTHOR
Ken Williams <kwilliams@cpan.org> COPYRIGHT
Copyright (c) 2001-2006 Ken Williams. All rights reserved. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Module::Build(3), ExtUtils::MakeMaker(3) perl v5.12.1 2010-04-26 Module::Build::Compat(3pm)
All times are GMT -4. The time now is 02:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy