On Jun 14, 2006, at 5:13 PM, Marek Stepanek wrote:

On 13.06.2006 22:12, "Sherm Pendley" <[EMAIL PROTECTED]> wrote:


A better option is to install and use the latest CPAN.pm module,
which allows you to supply an alternative to the final "make install"
command. You can configure it to use "sudo make" instead of just
"make" for that step, so that you no longer have to run the CPAN
shell itself with sudo. That, in turn, means that *only* the install
step will be run as root; the download, build, and test steps will be
run as your normal user login.

The second option is more work, but it reduces the amount of stuff
that's running as root - which is always a good idea.

sherm--


Which bundle exactly you suggest, that I install ? Sorry for this dump
question, but making

cpan> i /cpan/

issues 317 answers. Nothing with a pure cpan.pm ...

Probably you mean Bundle::CPAN or Bundle::CPANPLUS ? or something else ?

When you use //s with i, CPAN uses a regex match. If you know the exact name of the module you want, and simply want to check the version, you can narrow the search by a *lot* with:

        i CPAN

But you mentioned earlier that you're using Perl 5.8.8, right? That's only a couple of months old, so you probably have a recent-enough CPAN already. What do you get when you enter this:

        o conf make_install_make_command

If you get "unknown configuration variable" you'll need to upgrade CPAN. But if you get something like this:

        make_install_make_command [make]

If you get something like that, then you can just assign that config variable a new value. Start CPAN with sudo, and change the config variable like this:

        sudo perl -MCPAN -e shell

... in CPAN ...

        o conf make_install_make_command "sudo make"
        o conf commit

Then exit the CPAN shell. You'll need to fix up the .cpan directory and its contents now - since you've been running the CPAN shell as root, all of those files are owned by root. You can fix that with this:

        sudo chown -R mareklaptop ~/.cpan

Now, you should be able to start CPAN without sudo:

        perl -MCPAN -e shell

sherm--

Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org

Reply via email to