Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8570293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:31:31+00:00 2026-06-11T18:31:31+00:00

I am trying my hands for the first time in -> Apache – Perl

  • 0

I am trying my hands for the first time in -> Apache – Perl (CGI) on Ubuntu.

The Apache server is working fine in the folder /var/www for the default index.html file. But since I want to run a CGI script, I also installed (just in case) DBI, as suggested by some forums. I set the permissions for complete access to my cgi-bin folder in which the select.cgi script resides. I tried tweaking the select.cgi script multiple times redirecting the library to the Perl library, but to no avail. I modified the httpd.conf file and set the directory path to the select.cgi folder. That didn’t work. I also defined ScriptAlias, and set it to the working directory. That didn’t work either.
Does anyone have any helpful pointers. Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:31:33+00:00Added an answer on June 11, 2026 at 6:31 pm

    In a comment, you gave information that contradicts what you gave originally. The latter information appears to be more reliable, so I’ll use it.

    I believe you said the path to the module is

    /usr/lib/perl5/vendor_perl/5.8.5/foo/bar/Connection.pm
    

    and that the error message you got (with line breaks added) is:

    Can't locate foo/bar/Connection.pm in @INC (@INC contains:
       /etc/perl
       /usr/local/lib/perl/5.14.2
       /usr/local/share/perl/5.14.2
       /usr/lib/perl5
       /usr/share/perl5 
       /usr/lib/perl/5.14
       /usr/share/perl/5.14
       /usr/local/lib/site_perl
       .
       /usr/lib/perl5/vendor_perl/5.8.5/foo/bar/
    ) at ...
    

    You did something like

    use foo::bar::Connection;
    

    or

    require "foo/bar/Connection.pm";
    

    Perl looked for

    • /etc/perl/foo/bar/Connection.pm
    • /usr/local/lib/perl/5.14.2/foo/bar/Connection.pm
    • …
    • /usr/lib/perl5/vendor_perl/5.8.5/foo/bar/foo/bar/Connection.pm

    But none of those are

    /usr/lib/perl5/vendor_perl/5.8.5/foo/bar/Connection.pm
    

    It’s simple to fix. Add the following to your script:

    use lib '/usr/lib/perl5/vendor_perl/5.8.5'; 
    

    The other possible fix is to use

     use Connection;
    

    instead of

     use foo::bar::Connection;
    

    Which fix is the correct fix depends on what that package line in side the module looks like. If you find package foo::bar::Connection;, you need to modify @INC (as shown with use lib, for example). If you findpackage Connection;, you need to change theuse` directive.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying my hand at some AJAX for the first time, and am
I'm trying to develop my first XNA game by my own hands, just looking
I am trying my hands on Visual Studio 2010 (Asp.Net 4.0) for the first
I am trying to deploy my first Heroku application. Every time I git push
I'm trying to write my first Perl program. If you think that Perl is
I am trying my hand at SAS macros for the first time. My basic
I'm working with xslt for the first time. I have 2.0, but that's about
I'm trying my hand at Json for the first time and I'm not sure
Trying my hand at Mac Cocoa for the first time. Lion and XCode 4.1.
I just started trying my hands on EF4 code first this morning and I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.