Loading ...
Sorry, an error occurred while loading the content.

@INC

Expand Messages
  • Nikolay Melekhin
    I have made upgrade to Perl 5.8.0 and have installed new package in the new dir (specific for 5.8.0). Apache::ASP installed under 5.6.1 My @INC include old
    Message 1 of 3 , Oct 1, 2002
    • 0 Attachment
      I have made upgrade to Perl 5.8.0 and have installed new package in
      the new dir (specific for 5.8.0).
      Apache::ASP installed under 5.6.1
      My @INC include old path (for 5.6.1 installation) and new path (for 5.8.0 installation).
      But Apache::ASP does not see changes in @INC. ASP can't find installed
      package in the new dir.

      --
      Best regards, Nikolay Melekhin mailto:nikolay_melehin@...


      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • Josh Chamas
      ... You probably need to rebuild your mod_perl to use perl 5.8.0. Your mod_perl is probably using your old perl still. Regards, Josh
      Message 2 of 3 , Oct 1, 2002
      • 0 Attachment
        Nikolay Melekhin wrote:
        > I have made upgrade to Perl 5.8.0 and have installed new package in
        > the new dir (specific for 5.8.0).
        > Apache::ASP installed under 5.6.1
        > My @INC include old path (for 5.6.1 installation) and new path (for 5.8.0 installation).
        > But Apache::ASP does not see changes in @INC. ASP can't find installed
        > package in the new dir.
        >

        You probably need to rebuild your mod_perl to use perl 5.8.0.
        Your mod_perl is probably using your old perl still.

        Regards,

        Josh
        ________________________________________________________________
        Josh Chamas, Founder phone:925-552-0128
        Chamas Enterprises Inc. http://www.chamas.com
        NodeWorks Link Checking http://www.nodeworks.com


        ---------------------------------------------------------------------
        To unsubscribe, e-mail: asp-unsubscribe@...
        For additional commands, e-mail: asp-help@...
      • Dr. Helmut Zeilinger
        Hi all, i have a problem concerning Apache::ASP and the @INC Array: (Apache 2.0.52, MP 1.999.21) httpd.conf: .. PerlRequire /www/hmdb-lifa/conf/startup.pl ..
        Message 3 of 3 , Jan 24, 2005
        • 0 Attachment
          Hi all,

          i have a problem concerning Apache::ASP and the @INC Array:

          (Apache 2.0.52, MP 1.999.21)

          httpd.conf:
          ..
          PerlRequire /www/hmdb-lifa/conf/startup.pl
          ..

          startup.pl:

          #!/usr/bin/perl
          use Apache2;
          ..print @INC to file..
          1;

          @INC (at server startup) contains:

          /usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi/Apache2
          /usr/lib/perl5/5.9.1/i686-linux-thread-multi
          /usr/lib/perl5/5.9.1
          /usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi
          /usr/lib/perl5/site_perl/5.9.1
          /usr/lib/perl5/site_perl
          .
          /usr/local/apache2

          just what one expected.

          After adding the line "use Apache::ASP" to startup.pl, @INC contains:

          /usr/lib/perl5/site_perl/5.9.1//i686-linux-thread-multi
          /usr/lib/perl5/site_perl/5.9.1/
          /usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi/Apache2
          /usr/lib/perl5/5.9.1/i686-linux-thread-multi
          /usr/lib/perl5/5.9.1
          /usr/lib/perl5/site_perl/5.9.1/i686-linux-thread-multi
          /usr/lib/perl5/site_perl/5.9.1
          /usr/lib/perl5/site_perl
          .
          /usr/local/apache2

          Obviously the first two lines were added.

          Problems:

          - why are there double slashes in the first line?

          - why adding paths, which allready exist?

          - the main problem however is, when you have "use Apache::ASP" in your
          startup.pl
          or an "PerlOptions Autoload" in your httpd.conf,
          the Apache::ASP handler is loaded at server startup and adjusts the @INC
          array
          in a manner that not the Apache2 path comes first.

          This can cause wrong (non Apache2) modules being loaded at startup (if
          there are any -
          like at my machine) , so that the server
          wouldn't start at all because of version mismatches of modules.

          The problem does not exist, if you have only an "PerlModule Apache::ASP",
          because then
          the Apache::ASP module is loaded later where the handler is involked (at
          least that's what i
          read in the modperl docus).

          To make things confusing, this problem first happend, when i upgraded to
          mod_perl-2.0.0-RC4 (from RC1).

          Anyway, could it be a solution to add the additional INC-pathes at server
          startup behind the original ones and
          not before them?

          (The additional document-root path, that is added at handler runtime,
          however should stay in front
          of the other paths)




          Helmut


          ---------------------------------------------------------------------
          To unsubscribe, e-mail: asp-unsubscribe@...
          For additional commands, e-mail: asp-help@...
        Your message has been successfully submitted and would be delivered to recipients shortly.