Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Giving LDFLAGS to a module which has no configure

by adamsj (Hermit)
on Apr 26, 2012 at 13:48 UTC ( #967353=perlquestion: print w/ replies, xml ) Need Help??
adamsj has asked for the wisdom of the Perl Monks concerning the following question:

Hi, folks,

I've been mostly away from Perl work (as opposed to Perl use) the last few years, and I've hit a problem that I'm having trouble researching. I'd expected some answers in perlmod and perlmodinstall but didn't get them.

When installing modules, I'm used to passing in things like LDFLAGS via configure.

Today I'm working on installing DBD::Oracle on a machine with some unusual locations for things, and I'd like to do just that, but to my surprise, there's no configure file.

Obviously (unless I'm wrong), I'm going to have to play with Makefile.PL1, but I've yet to find out how to do so. If the answer is simply "read the damned thing", I can do that, but I assume there's some other way.

Any pointers to doing so would be gratefully received.

1Ever tried to search for information on Makefile.PL? You find information about its various locations repeatedly, but very little information about how to use it or modify it. I blame Google.

They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

Comment on Giving LDFLAGS to a module which has no configure
Re: Giving LDFLAGS to a module which has no configure
by Anonymous Monk on Apr 26, 2012 at 13:54 UTC
    export LDFLAGS=override perl Makefile.PL

    perl Makefile.PL LDFLAGS=override FOO=override

      Well, that was painfully simple. Thanks!

      Where should I have looked to learn to figure that out for myself?

      They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

      That has certainly solved my immediate issue--thanks!

      Unfortunately, I'm still having problems getting the install done. Would this be better addressed by my rejoining the dbi-users list and asking there? Or shall I continue it here?

      They laughed at Joan of Arc, but she went right ahead and built it. --Gracie Allen

        That has certainly solved my immediate issue--thanks! Unfortunately, I'm still having problems getting the install done. Would this be better addressed by my rejoining the dbi-users list and asking there? Or shall I continue it here?

        Go ahead and copy/paste the error message if you have one

        If its simple I might be able to help :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://967353]
Approved by marto
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2014-10-21 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (95 votes), past polls