How to change configuration on installed Perl ?

Y

Yan

Hi !

I wonder if there is a command for changing config info (stored in Config.pm
and others...) on an installed version of Perl (5.8.6) whithout reinstalling
it fully.
My Perl is working fine for most tasks, but if I want to install a new
module or use scripts like pod2html, it won't work because of wrong paths in
config files (my perl was built in /users/user1 and I want to copy it in
/users/user2 on another machine).
I have tried to replace /users/user1 with /users/user2 in Config.pm and it
seems to work, but I would prefer a built-in "reconfig" command, if there is
any...

Best Regards,
Yannick
 
A

Anno Siegel

Yan said:
Hi !

I wonder if there is a command for changing config info (stored in Config.pm
and others...) on an installed version of Perl (5.8.6) whithout reinstalling
it fully.
My Perl is working fine for most tasks, but if I want to install a new
module or use scripts like pod2html, it won't work because of wrong paths in
config files (my perl was built in /users/user1 and I want to copy it in
/users/user2 on another machine).
I have tried to replace /users/user1 with /users/user2 in Config.pm and it
seems to work, but I would prefer a built-in "reconfig" command, if there is
any...

There isn't, and the only way to do this right is to recompile. Parts of
the configuration is compiled into the perl binary, so there's no guarantee
that changing something in Config.pm makes perl use the new value.

Of course, you can install modules and executables anywhere, not only the
default location, so if you remember to do that, or teach it to CPAN.pm,
you don't have to recompile.

For a hack, you may be able to install one or more symlinks in the place(s)
perl expects and point them to where you want them to go.

Anno


Anno
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,163
Latest member
Sasha15427
Top