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

  • SEARCH
  • Home
  • 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 719997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:42:29+00:00 2026-05-14T05:42:29+00:00

While trying to do: perl -I’/v1/data/site_perl’ -MCPAN -e ‘install Log::Dispatch’; I continue to get

  • 0

While trying to do:

perl -I'/v1/data/site_perl' -MCPAN -e 'install Log::Dispatch';

I continue to get “Can’t locate Params/Validate.pm in @INC.” When looking at the output, /v1/data/site_perl is NOT in the @INC displayed, even though I used -I.

I am not root so I have changed my CPAN config so that:

'makepl_arg' => q[LIB=/v1/data/site_perl INSTALLSITEMAN1DIR=/v1/data/site_perl/man/man1 INSTALLSITEMAN3DIR=/v1/data/site_perl/man/man3 INSTALLMAN1DIR=/v1/data/site_perl/man/man1 INSTALLMAN3DIR=/v1/data/site_perl/man/man3]

So even LIB is set.

In a basic script I have:

use lib '/v1/data/site_perl';
use Params::Validate;

With no problems.

How do I make the Log::Dispatch use lib /v1/data/site_perl without a force install? What am I missing?

  • 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-05-14T05:42:29+00:00Added an answer on May 14, 2026 at 5:42 am

    I believe CPAN.pm likes to call a lot of sub-processes for various tasks, and these end up starting new perls, which will not inherit your -I flag. Instead, try setting a PERL5LIB environment variable, e.g.

    PERL5LIB='/v1/data/site_perl' perl -MCPAN -e 'install Log::Dispatch'
    

    Another strategy to consider is to simply build a complete Perl installation in your local directory — then use that perl’s CPAN utilities. They will already have all your own paths built-in. This is the way I tend to do it.

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

Sidebar

Related Questions

I am trying to install HTML-Parser-3.64 and I get following report while running make
While trying to profile my Perl program, I find that Math::Complex is taking up
While trying to search with id sorting (and paginating) im getting from the log:
While trying to add value into foreign key field, if same data doesn't exist
I'm trying to write a perl script than can open a dir and delete
I'm trying to get Perl/FastCGI (FCGI) running with IIS 7.5. The version of C:\Windows\System32\inetsrv\iisfcgi.dll
I am trying to insure that only one instance of a perl script can
I experience a strange behavior in Perl while trying to decode a Unicode JSON
#!/usr/bin/perl while (true) { #Obj: open dir, get flat-file which was exported from bteq
I'm trying to make a log analyser using perl. The analyser would run 24/7

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.