Re: configuring startperl during make ?
- From: tom@xxxxxxxxxxxxxx (Tom Phoenix)
- Date: Fri, 28 Dec 2007 11:43:40 -0800
On Dec 28, 2007 12:39 AM, Mayuresh Nirhali <mayureshnirhali@xxxxxxxxx> wrote:
During DBI building, MakeMaker uses the fixin() method to write the shebang
line for all the perl scripts that will be installed.
The path on my machine is /usr/perl/5.8.4/bin/perl. I also have
/usr/perl5/bin/perl which is *currently* pointing to the same 5.8.4 perl,
but this generic version independent path helps me pointing to the latest
version all the time.
I would like to have all the shebang lines replaced to the generic
/usr/perl5/bin/perl. Now, MakeMaker's fixin method seems to be
using $Config:{startperl}. If my understanding is right, startperl is
populated during installation (correct me if I am wrong here), Is there a
way to change this parameter to point to the version independent perl path
??
The value of $Config{startperl} comes from your Config.pm file, which
in turn was built when your perl binary was built. In general, if you
want Config.pm to say something different, you should rebuild and
reinstall perl and everything that comes with it. If you've changed
some of the really important things in Config.pm, you may need to
rebuild some or all of the extra modules you've installed, too.
On the other hand, that's a lot of work considering the result. (Do
you want or need to alter the headings on scripts installed with perl
or other modules?) You'll re-install hundreds of files, but only a few
of them are only slightly changed. If you don't need to rebuild perl
for another reason, you might be able to get away with merely editing
the Config.pm file. That's not always appropriate, but in this case it
might be the right answer.
On the gripping hand, another right answer might be to hack up a
utility to munge the shebang lines. How hard could it be? Somebody is
probably making a one-liner to do that right now....
Good luck with it!
--Tom Phoenix
Stonehenge Perl Training
.
- Follow-Ups:
- Re: configuring startperl during make ?
- From: Mayuresh Nirhali
- Re: configuring startperl during make ?
- References:
- configuring startperl during make ?
- From: Mayuresh Nirhali
- configuring startperl during make ?
- Prev by Date: Re: converting text expressions (like "1+1") to values
- Next by Date: Re: configuring startperl during make ?
- Previous by thread: configuring startperl during make ?
- Next by thread: Re: configuring startperl during make ?
- Index(es):
Relevant Pages
|