1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org">
<title>Installation Problems</title>
<meta name="GENERATOR" content=
"Modular DocBook HTML Stylesheet Version 1.71 ">
<link rel="HOME" title=" LPRng-HOWTO" href="index.htm">
<link rel="UP" title="Installation" href="installation.htm">
<link rel="PREVIOUS" title="Compilation and Install" href=
"x921.htm">
<link rel="NEXT" title=
"Updating Print Spooler Software and Startup Scripts" href=
"update.htm">
</head>
<body class="SECT1" bgcolor="#FFFFFF" text="#000000" link=
"#0000FF" vlink="#840084" alink="#0000FF">
<div class="NAVHEADER">
<table summary="Header navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<th colspan="3" align="center">LPRng-HOWTO: 1 Apr 2002
(For LPRng-3.8.10)</th>
</tr>
<tr>
<td width="10%" align="left" valign="bottom"><a href=
"x921.htm" accesskey="P">Prev</a></td>
<td width="80%" align="center" valign="bottom">Chapter 2.
Installation</td>
<td width="10%" align="right" valign="bottom"><a href=
"update.htm" accesskey="N">Next</a></td>
</tr>
</table>
<hr align="LEFT" width="100%">
</div>
<div class="SECT1">
<h1 class="SECT1"><a name="AEN959">2.9. Installation
Problems</a></h1>
<p>Read the notes for your OS in section <a href=
"systemspecific.htm">System-dependent notes</a> for specific
installation help (if any).</p>
<p>The following is a list of commonly encountered problems
and their solution. If these do not solve your problem, then
send mail to the <a href="maillist.htm">lprng@lprng.com</a>
mailing list. You will have to subscribe to the list in order
to post to the list.</p>
<ol type="1">
<li>
<p><b class="APPLICATION">Make</b> complains about a
malformed <tt class="FILENAME">make</tt> or <tt class=
"FILENAME">Makefile</tt> file, illegal syntax in the
file, or illegal entries in the file. You are most likely
not running GNU Make. You <i class="EMPHASIS">must</i>
use GNU <b class="APPLICATION">make</b> or you should be
a Unix Wizard able to master the mysteries of converting
GNU Makefiles to your local system <b class=
"APPLICATION">make</b>. It is easier to simply install
GNU <b class="APPLICATION">make</b>.</p>
</li>
<li>
<p>The C Compiler complains about missing files or has a
large number of errors. Use <b class=
"APPLICATION">gcc</b> instead of your vendor's C
compiler.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN978"></a>
<pre class="SCREEN">
configure --with-cc=gcc
</pre>
</div>
<br>
<br>
<p>If there are messages about missing system files, then
you most likely have an incomplete set of system <tt
class="FILENAME">include</tt> files, or the <tt class=
"FILENAME">include</tt> do not properly reference other
required include files, or the include files are located
in an <i class="EMPHASIS">unusual</i> location. If you
are using <b class="APPLICATION">gcc</b> then make sure
that the <b class="APPLICATION">gcc</b> was carried out
correctly on your system. The easiest way to assure this
is to recompile and reinstall the <b class=
"APPLICATION">gcc</b> compiler.</p>
</li>
<li>
<p>If you have checked your compiler installation and are
still missing libraries or files then the <tt class=
"FILENAME">include</tt> files may be in <tt class=
"FILENAME">/usr/local/include</tt> and libraries may be
in <tt class="FILENAME">/usr/local/include</tt> and these
directories may not searched or used by the compiler by
default. This can be fixed by using the <tt class=
"LITERAL">--with-cppopts=</tt> and <tt class=
"LITERAL">--with-ldopts=</tt> configure options.</p>
<div class="INFORMALEXAMPLE">
<a name="AEN994"></a>
<pre class="SCREEN">
configure \
--with-cppopts="-I/usr/local/include -I/usr/include/kerberosIV" \
--with-ldopts="-L/usr/local/lib -L/usr/lib/kerberosIV"
</pre>
</div>
<br>
<br>
</li>
<li>
<p>The software compiles but will not run on the system.
Make sure that you have followed your system specific
rules for compiling and installing <tt class=
"LITERAL">setuid ROOT</tt> programs on your system. You
may need to statically link your executables.</p>
</li>
<li>
<p>The software was compiled on one system and copied to
another system, but will not run on the other system. Try
compiling the software on the target system. If it
compiles and runs, then you most likely have an issue
with libraries or Operating System Versions.</p>
</li>
</ol>
<br>
<br>
<p>After you have installed the LPRng software and rebooted
your system, do the following commands:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN1002"></a>
<pre class="SCREEN">
<tt class="PROMPT">h4: {16} #</tt> <tt class=
"USERINPUT"><b>lpq</b></tt>
Printer: lp@astart
Queue: no printable jobs in queue
</pre>
</div>
<br>
<br>
<p>If you do not get status displayed, or you get some other
error message, then the following are a series of tests can
use to check that <b class="APPLICATION">LPRng</b> is
installed correctly.</p>
<p>First we will run <b class="APPLICATION">lpd</b> in the <i
class="EMPHASIS">foreground</i> and are used to make sure
that our system configuration is correct. You will need <tt
class="LITERAL">root</tt> permissions to do the following
steps. Stop the running currently running <b class=
"APPLICATION">lpd</b> process. Next, run <b class=
"APPLICATION">lpd</b> in foreground mode:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN1014"></a>
<pre class="SCREEN">
<tt class="PROMPT">h4: {17} #</tt> <tt class=
"USERINPUT"><b>ps -aux | grep lpd</b></tt>
daemon 240 0.0 0.0 1292 0 ?? IWs - 0:00.00 lpd: lpd Waiting
<tt class="PROMPT">h4: {18} #</tt> <tt class=
"USERINPUT"><b>kill 240</b></tt>
<tt class="PROMPT">h4: {19} #</tt> <tt class=
"USERINPUT"><b>checkpc -f</b></tt>
<tt class="PROMPT">h4: {20} #</tt> <tt class=
"USERINPUT"><b>/usr/local/bin/lpd -F -D1</b></tt>
Fatal error - Another print spooler is using TCP printer port
</pre>
</div>
<br>
<br>
<p>If you get the above error message, then you have either
not terminated the running <b class="APPLICATION">lpd</b>
server, there is another process using TCP/IP port 515, or
you are not starting the <b class="APPLICATION">lpd</b>
server as ROOT. See the <a href="systemspecific.htm">System
Specific Notes</a> for details on how to resolve these
issues.</p>
<p>Correct the problem and then restart the server. You
should see the output indicated below:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN1029"></a>
<pre class="SCREEN">
<tt class="PROMPT">h4: {21} #</tt> <tt class=
"USERINPUT"><b>/usr/local/bin/lpd -F -D1</b></tt>
1999-04-05-14:35:14.023 astart27 [2667] Waiting lpd: LOOP START
1999-04-05-14:35:14.024 astart27 [2667] Waiting Get_max_servers: \
getrlimit returns 256
1999-04-05-14:35:14.024 astart27 [2667] Waiting Get_max_servers: \
returning 128
1999-04-05-14:35:14.025 astart27 [2667] Waiting lpd: \
max_servers 128, active 0
1999-04-05-14:35:14.025 astart27 [2667] Waiting lpd: \
starting select timeout 'yes', 600 sec
</pre>
</div>
<br>
<br>
<p>Now from another window do the following commands:</p>
<div class="INFORMALEXAMPLE">
<a name="AEN1034"></a>
<pre class="SCREEN">
<tt class="PROMPT">h4: {22} #</tt> <tt class=
"USERINPUT"><b>lpq</b></tt>
Printer: lp@astart
Queue: no printable jobs in queue
</pre>
</div>
<br>
<br>
<p>At this point your <b class="APPLICATION">LPRng</b>
software has been installed and tested. See the <a href=
"update.htm">Updating Print Spooler Software and Startup
Scripts</a> for details on how to automatically start <b
class="APPLICATION">lpd</b> at boot time.</p>
</div>
<div class="NAVFOOTER">
<hr align="LEFT" width="100%">
<table summary="Footer navigation table" width="100%" border=
"0" cellpadding="0" cellspacing="0">
<tr>
<td width="33%" align="left" valign="top"><a href=
"x921.htm" accesskey="P">Prev</a></td>
<td width="34%" align="center" valign="top"><a href=
"index.htm" accesskey="H">Home</a></td>
<td width="33%" align="right" valign="top"><a href=
"update.htm" accesskey="N">Next</a></td>
</tr>
<tr>
<td width="33%" align="left" valign="top">Compilation and
Install</td>
<td width="34%" align="center" valign="top"><a href=
"installation.htm" accesskey="U">Up</a></td>
<td width="33%" align="right" valign="top">Updating Print
Spooler Software and Startup Scripts</td>
</tr>
</table>
</div>
</body>
</html>
|