Security
cancel
Showing results for 
Search instead for 
Did you mean: 

Error while starting KWDB -q4 with -p option

 
Pruthviraj HP
Occasional Advisor

Error while starting KWDB -q4 with -p option

Hi,

I wanted to have the q4 started with -p option so that I can extract my symbols using the perl script. It is giving the following error when I executed "kwdb -q4 -m -p /stand/vmunix /dev/kmem"

warning: q4 could not read $HOME/.q4rc.pl
warning: Can't exec perl without a startup script
warning: and a perl executable

I have installed perl "perl D.5.8.2.B Perl Programming Language".

any idea on what am I missing?
2 REPLIES 2
Highlighted
Don Morris_1
Honored Contributor

Re: Error while starting KWDB -q4 with -p option

The q4 perl startup script. As the warning indicates you need both the script and Perl installed -- you have Perl, now just write yourself a script named .q4rc.pl and put it in your home directory.

Here's an example script for you - but since you may have different locations for the Q4 perl libraries (and different scripts) make sure you check your locations before you use it:

# $Revision: 1.2.89.3 $ $Date: 95/04/06 18:46:59 $

# Sample Q4 startup file for use with Perl.

# Search a private per-kernel Q4 library.
push(INC, "/usr/contrib/Q4/lib/q4lib");

# Uncomment this to search a private per-user Q4 library.
#push(INC, $ENV{'HOME'}."/11i");

# Uncomment this to search a system-wide Q4 library. Specify the
# absolute path
#push(INC, "/usr/contrib/Q4");

# Pull in the main routines.
require('q4.pl');

# If you want to Include() some favorite files every time (so you don't
# have to type Q4 "include" commands at the start of every session),
# this is the place to do it. Here are two examples:

&Include('analyze.pl');
&Include('whathappened.pl');
&Include('vm_analyze.pl');

# Enter the main loop. (You'll get a prompt after initialization is
# complete.)
#
# Note: There's is no return from the main loop so this should be the
# last step in this file.
&Main();
Pruthviraj HP
Occasional Advisor

Re: Error while starting KWDB -q4 with -p option

hi,

thanks a lot for your response. On similar lines I found a script at /usr/contrib/Q4/lib/q4lib/sample.q4rc.pl. I used this as the .q4rc.pl at $HOME dir and things worked well.