yacoubean has asked for the wisdom of the Perl Monks concerning the following question:

I have spent a couple of hours scouring google and PerlMonks to no avail. Sorry if this seems like a noob question.

I am just trying to run Bugzilla's install-module.pl on a RHEL 5 linux box, but the script doesn't do anything. I type in the command, hit enter, and nothing happens. No errors, no warnings, no screen output, and I don't even get my command prompt back (I have to hit ctrl+c.) Yesterday the script was working fine, so I think I must have a hung perl process getting in the way. I've looked at the 'top' output, but I don't see anything suspicious in there. I've also scoured the 'ps' process list (and even grepped for 'install' or 'perl'), but I can't find any hung processes in there either. I even waited for an hour or two to see if something would eventually happen, but still nothing.

How can I see any old still running perl scripts, and kill them (assuming that is the problem here?)

Here is the command I'm running:
./install-module.pl --all

--------------
My home on the web: http://www.techfeed.net/

Replies are listed 'Best First'.
Re: Bugzilla's install-module.pl hangs
by Eliya (Vicar) on Aug 23, 2011 at 16:05 UTC
    I type in the command, hit enter, and nothing happens.

    Running the command under strace might give you a clue as to what it's doing or waiting for (unless the script is hanging in some endless loop that doesn't involve OS calls).

    $ strace -f ./install-module.pl --all
      strace showed me that running install-module.pl with sudo was not working (for some reason.) So I did sudo -i and then ran it as "root" (I don't have access to the root account on this box). It ran fine like that. Weird, but oh well. :)
Re: Bugzilla's install-module.pl hangs
by Khen1950fx (Canon) on Aug 23, 2011 at 16:26 UTC
    Try this instead:
    ./install-module --upgrade-all
Re: Bugzilla's install-module.pl hangs
by ig (Vicar) on Aug 23, 2011 at 18:06 UTC

    update: ignore this first idea - I wasn't paying attention to you having to hit ^C...

    Is it possible that it doesn't do anything because all the modules Bugzilla needs are already installed?

    Perl scripts are usually interpreted by the perl program. If one is running, the ps command can list it. You can try:

    ps -ef | grep perl

    If that doesn't show anything other than 'grep perl', then you don't have any hung perl processes.

    update: maybe checksetup.pl --verbose would help?

      I've tried ps grepping for perl...nothing. Checksetup shows me a bunch of required modules that are still missing, and that is why I'm trying to run install-module.pl. :\
      --------------
      My home on the web: http://www.techfeed.net/
Re: Bugzilla's install-module.pl hangs
by Anonymous Monk on Aug 24, 2011 at 03:39 UTC

    I am just trying to run Bugzilla's install-module.pl on a RHEL 5 linux box, but the script doesn't do anything. I type in the

    Bugzilla has support forums, they'll know their own product better than we might :)

    I'm sure, even they will ask, what version of the prerequisites you have installed, and what version of bugzilla you're trying to install

      I actually asked this question on the official bugzilla mailing list, but I didn't get much help from them. Strangely, you monks were a lot more helpful than that mailing list was (even though one would expect better results from over there.)