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 7414275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T07:04:34+00:00 2026-05-29T07:04:34+00:00

Some Perl modules, such as DBI , need to be downloaded, compiled and installed

  • 0

Some Perl modules, such as DBI, need to be downloaded, compiled and installed.

I’m connecting to a remote production testing computer, for which I have only my local user password (no root, for obvious reasons). I’ve used wget to download some external modules that I need, such as DBI, and unpacked these resulting in directories like ~/modules/DBI-<version>.

Normally, when compiling something for Linux, you run configure to pre-configure everything before installation; and one of its switches is --prefix=<some_dir>, which controls where the compiled executable and all compiled dependencies will ultimately end up.

But for Perl modules, you don’t run configure, so my first question is:

  • Can I control where the compiled modules (e.g. DBI.pm) go when I run make? If so, how?

Failing that, I at least need to update @INC, so I can refer to the module; so my second question is:

  • How can I find out where the compiled modules went when I ran make?

I can’t issue make install after compiling, and moreover, I’ve been asked not to. (I’ve been asked to design the script so that it doesn’t rely on external modules being in the standard system path.)

  • 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-29T07:04:34+00:00Added an answer on May 29, 2026 at 7:04 am

    The installation directory is set when the makefile for the module is built. Each module comes with a Makefile.PL which must be run to build the makefile, taking into account the current Perl configuration. Makefile.PL has the option PREFIX that says where the build is going to be installed, so after unpacking the module’s distribution and cding to the unpacked directory you can say

    perl Makefile.PL PREFIX=/module/directory/path
    make test
    make install
    

    This process is described in the Perl documentation – read perldoc perlmodinstall. You could go into the CPAN shell and use the ‘o’ (lower-case) oprion that allows you to change the options passed to makefile.PL, but I think the manual build/test/install is more straightforward and gives you more control over the process.

    Remember to add

    use lib qw(/module/directory/path);
    

    to the start of your program to make sure Perl searches the new directory for modules.

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

Sidebar

Related Questions

I have some Perl modules which exports various functions. (We haven't used @EXPORT in
I installed some Perl modules in my Linux machine. If I enter perldoc perllocal
I upgraded to Ubuntu Intrepid Ibex yesterday and suddenly some of the Perl modules
I need to rewrite some Perl code in python. So I'm looking for the
In perl, I often need to run a child process, send some input to
I am trying to install some Perl modules into a non-standard location, let's call
I'm using Eclipse EPIC IDE to write some Perl CGI scripts which call some
I've written some fairly extensive Perl modules and scripts using the Perl bindings SVN::Client
I would like to ask my system administrator to install various Perl modules such
recently I was installing some perl modules on my RHEL 5 with perl version

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.