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