CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Beginner:
funny behaviour and the question _ root or not?



May 6, 2018, 4:05 AM

Post #1 of 1 (3443 views)
funny behaviour and the question _ root or not? Can't Post

helllo dear Experts

does it make a difference if i install / work with perl on

- root (i.e. logged in as root) or
- as a ordinary user on the machine.

i just wanted to approach my perl environment to see which modules are installed - and i did this as a ordinary user - ( not as root) and i got back the following...: #

martin@linux-3645:~> cpan
Sorry, we have to rerun the configuration dialog for due to
some missing parameters. Configuration will be written to
<</home/martin/.cpan/CPAN/>> requires configuration, but most of it can be done automatically.
If you answer 'no' below, you will enter an interactive dialog for each
configuration option instead.

Would you like to configure as much as possible automatically? [yes] y

Use of uninitialized value $what in concatenation (.) or string at /usr/lib/perl5/5.18.2/App/ line 564, <STDIN> line 1.

Warning: You do not have write permission for Perl library directories.

To install modules, you need to configure a local Perl library directory or
escalate your privileges. CPAN can help you by bootstrapping the local::lib
module or by configuring itself to use 'sudo' (if available). You may also
resolve this problem manually if you need to customize your setup.

What approach do you want? (Choose 'local::lib', 'sudo' or 'manual')
[local::lib] ^C


question: what goes wrong here. ..!?

in other words: what woud you do!?

and subesquently - the question: should i configure the perl on

a root or
b on a other user.

::: note: i want to get an overview on all installed modules

so the quetion is: Aside from trying

perldoc <module name>

well - individually for any CPAN module is going through the file system and looking at the directories i have no idea what modules we have installed.

question: What's the easiest way to just get a big list of every CPAN module installed? From the command line or otherwise.

well - i also have found some ideas in the the Perl FAQ, the answer which can be quickly found with perldoc -q installed. In short, it comes down to using ExtUtils::Installed or using File::Find, variants of both of which have been covered previously in this thread.

another method is:

cpan -l first entry in perldoc -q installed command.

look forward to hear from you


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives