<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: PERL @INC error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099726#M311693</link>
    <description>I think your difficulties arise from that your script use-es modules from disparate Perl installations.&lt;BR /&gt;Apparently, you seem to have a Perl 5.6.1 whose interpreter is either first found in your $PATH or which is referred to in your script's shebang.&lt;BR /&gt;Then you have a newer Perl 5.8.6 which already provides Time::HiRes, FindBin and other (formerly supplementary) modules in its core installation which your script might require,&lt;BR /&gt;as Merijn has proved to you.&lt;BR /&gt;I think it would run if you either changed your $PATH to find the Perl 5.8 interpreter first,&lt;BR /&gt;or replaced the symlink /usr/bin/perl to point to /opt/perl5.8.6/bin/perl,&lt;BR /&gt;or changed your script's shebang accordingly.&lt;BR /&gt;If however you wish to stick to Perl 5.6.1&lt;BR /&gt;you need to install the missing modules Time::HiRes and others first.</description>
    <pubDate>Fri, 09 Nov 2007 04:10:30 GMT</pubDate>
    <dc:creator>Ralph Grothe</dc:creator>
    <dc:date>2007-11-09T04:10:30Z</dc:date>
    <item>
      <title>PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099720#M311687</link>
      <description>Hello Admins,&lt;BR /&gt;&lt;BR /&gt;When i run a perl script i am getting the following error&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Can't locate Time/HiRes.pm in @INC (@INC contains: $FindBin::Bin /var/opt/OV/bin/instrumentation /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/5.6.1 /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi /opt/perl/lib/site_perl/5.6.1 /opt/perl/lib/site_perl .) at /usr/local/bin/itoup line 46.&lt;BR /&gt;&lt;BR /&gt;BEGIN failed--compilation aborted at /usr/local/bin/itoup line 46.&lt;BR /&gt;&lt;BR /&gt;The file are available in &lt;BR /&gt;&lt;BR /&gt;/opt/perl5.8.6/lib/perl5/5.8.6/PA-RISC2.0/auto/Time/HiRes&lt;BR /&gt;&lt;BR /&gt;How can i update this Perl include path @INC to have the correct path?..&lt;BR /&gt;&lt;BR /&gt;#Perl -V end shows&lt;BR /&gt;&lt;BR /&gt; @INC:&lt;BR /&gt;    /opt/perl/lib/5.6.1/PA-RISC1.1-thread-multi&lt;BR /&gt;    /opt/perl/lib/5.6.1&lt;BR /&gt;    /opt/perl/lib/site_perl/5.6.1/PA-RISC1.1-thread-multi&lt;BR /&gt;    /opt/perl/lib/site_perl/5.6.1&lt;BR /&gt;    /opt/perl/lib/site_perl&lt;BR /&gt;    .&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Nov 2007 23:11:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099720#M311687</guid>
      <dc:creator>George Chechakunnil</dc:creator>
      <dc:date>2007-11-08T23:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099721#M311688</link>
      <description>Sounds like a problem with your perl install. I guess the system was upgraded from 5.6.1 to 5.8.6?&lt;BR /&gt;&lt;BR /&gt;Looks like you are still activating the 5.6.1 image.&lt;BR /&gt;&lt;BR /&gt;What is the output for : perl -v&lt;BR /&gt;Where does 'which perl' take you?&lt;BR /&gt;&lt;BR /&gt;Google 'perl inc' will give good pointers.&lt;BR /&gt;For example, a reminder that a simple way to print the INC array is:&lt;BR /&gt;&lt;BR /&gt;perl -e "print join(\"\n\", @INC);"&lt;BR /&gt;&lt;BR /&gt;Just to try to use the known library you could add it to @INC using:&lt;BR /&gt;&lt;BR /&gt;1. Add the directory to the PERL5LIB environment variable.&lt;BR /&gt;2. Add use lib 'directory'; in your Perl script.&lt;BR /&gt;3. push @INC/opt/perl5.8.6/lib/perl5/5.8.6/PA-RISC2.0";&lt;BR /&gt;&lt;BR /&gt;But I suspect that will just be the begining of the end.&lt;BR /&gt;Ditto for moving the libraries around... it probably will create more confusion.&lt;BR /&gt;&lt;BR /&gt;Check that install!&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Nov 2007 00:15:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099721#M311688</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-11-09T00:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099722#M311689</link>
      <description>1. Which perl&lt;BR /&gt;&lt;BR /&gt; /opt/perl5/bin/perl&lt;BR /&gt;&lt;BR /&gt;2. Attached is the perl -V output &lt;BR /&gt;&lt;BR /&gt;Please help</description>
      <pubDate>Fri, 09 Nov 2007 00:23:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099722#M311689</guid>
      <dc:creator>George Chechakunnil</dc:creator>
      <dc:date>2007-11-09T00:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099723#M311690</link>
      <description>So that's an old perl.&lt;BR /&gt;&lt;BR /&gt;You have to check with the person responsible for the perl instal whether this is the expected version or whether 5.8.6 was supposed to be available for use.&lt;BR /&gt;&lt;BR /&gt;Look around in the /opt/perl5.8.6 tree.&lt;BR /&gt;Does it look like a complete install?&lt;BR /&gt;Is there an other, more recent perl executable in there?&lt;BR /&gt;&lt;BR /&gt;Maybe someone tried the 'help' by providing libraries form 5.8.6 on this 5.6.1 install.&lt;BR /&gt;I feel bad about that, but if you want to try, then use one of the steps outlined above to point perl to those libraries.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 09 Nov 2007 01:05:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099723#M311690</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-11-09T01:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099724#M311691</link>
      <description># corelist Time::HiRes&lt;BR /&gt;&lt;BR /&gt;Time::HiRes was first released with perl 5.007003&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This very useful module was put in the core with release 5.7.3, and thus with 5.8.x&lt;BR /&gt;It is not a CORE module in 5.6.x and earlier, but can be installed from CPAN:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://search.cpan.org/~jhi/Time-HiRes-1.9708/" target="_blank"&gt;http://search.cpan.org/~jhi/Time-HiRes-1.9708/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;For the curious, 'corelist' will be shipped with 5.10.0, but is also already available on CPAN. Here's a full list for Time::HiRes:&lt;BR /&gt;&lt;BR /&gt;# corelist -a Time::HiRes&lt;BR /&gt;&lt;BR /&gt;Time::HiRes was first released with perl 5.007003&lt;BR /&gt;  5.007003   1.20_00&lt;BR /&gt;  5.008      1.20_00&lt;BR /&gt;  5.008001   1.51&lt;BR /&gt;  5.008002   1.52&lt;BR /&gt;  5.008003   1.52&lt;BR /&gt;  5.008004   1.59&lt;BR /&gt;  5.008005   1.59&lt;BR /&gt;  5.008006   1.65&lt;BR /&gt;  5.008007   1.66&lt;BR /&gt;  5.008008   1.86&lt;BR /&gt;  5.009      1.51&lt;BR /&gt;  5.009001   1.56&lt;BR /&gt;  5.009002   1.66&lt;BR /&gt;  5.009003   1.86&lt;BR /&gt;  5.009004   1.87&lt;BR /&gt;  5.009005   1.9707&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 09 Nov 2007 02:38:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099724#M311691</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2007-11-09T02:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099725#M311692</link>
      <description>Thanks but i think my problem is more than Time::HiRes,&lt;BR /&gt;&lt;BR /&gt;I am unable to load any of the modules. Somewhere some path setting is messsed up i guess</description>
      <pubDate>Fri, 09 Nov 2007 02:50:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099725#M311692</guid>
      <dc:creator>George Chechakunnil</dc:creator>
      <dc:date>2007-11-09T02:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099726#M311693</link>
      <description>I think your difficulties arise from that your script use-es modules from disparate Perl installations.&lt;BR /&gt;Apparently, you seem to have a Perl 5.6.1 whose interpreter is either first found in your $PATH or which is referred to in your script's shebang.&lt;BR /&gt;Then you have a newer Perl 5.8.6 which already provides Time::HiRes, FindBin and other (formerly supplementary) modules in its core installation which your script might require,&lt;BR /&gt;as Merijn has proved to you.&lt;BR /&gt;I think it would run if you either changed your $PATH to find the Perl 5.8 interpreter first,&lt;BR /&gt;or replaced the symlink /usr/bin/perl to point to /opt/perl5.8.6/bin/perl,&lt;BR /&gt;or changed your script's shebang accordingly.&lt;BR /&gt;If however you wish to stick to Perl 5.6.1&lt;BR /&gt;you need to install the missing modules Time::HiRes and others first.</description>
      <pubDate>Fri, 09 Nov 2007 04:10:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099726#M311693</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-11-09T04:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: PERL @INC error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099727#M311694</link>
      <description>Why are you using the ActivePerl version for HP-UX? This 5.6.1 is not only rather old, but there are much better builds than this one.&lt;BR /&gt;&lt;BR /&gt;I suggest you install one of ...&lt;BR /&gt;* the official HP build from the application CD/DVD's or from &lt;A href="http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL" target="_blank"&gt;http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=PERL&lt;/A&gt;&lt;BR /&gt;* perl from the HP porting center at &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.8/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Languages/perl-5.8.8/&lt;/A&gt;&lt;BR /&gt;* one of my builds at &lt;A href="http://mirrors.develooper.com/hpux/#Perl" target="_blank"&gt;http://mirrors.develooper.com/hpux/#Perl&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;All of these are recent 5.8.x builds.&lt;BR /&gt;&lt;BR /&gt;Also check if you have environment veriables like $PERL5LIb, which is in effect when perl starts. It is like $PATH for your command, and determines where perl will look for it's modules.&lt;BR /&gt;&lt;BR /&gt;From the information you posted, we cannot deduce what system you are on. What OS release, what architecture and so.&lt;BR /&gt;Choose wisely. If you are going to use DBD::Oracle on an Oracle-64bit, you will need a 64bit perl build. If you want to add XS modules, you need a build that was created with the same type of C-compiler that you have on your system: GNU gcc or HP C-ANSI-C).&lt;BR /&gt;&lt;BR /&gt;Enjoy, Have FUN! H.Merijn</description>
      <pubDate>Fri, 09 Nov 2007 05:09:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/perl-inc-error/m-p/4099727#M311694</guid>
      <dc:creator>H.Merijn Brand (procura</dc:creator>
      <dc:date>2007-11-09T05:09:40Z</dc:date>
    </item>
  </channel>
</rss>

