Hi All I know this is not a LPRng list but I'm trying to build the latest SRPM from http://lprng.sourceforge.net/DISTRIB/LPRng/LPRng-3.8.27-1.src.rpm so that I may use it on my CentOS 5 box, but it fails with the following errors <snip> + make MAKEPACKAGE=YES if [ "UTILS" = po ] ; then \ for i in po/Makefile* ; do \ if [ -f "$i" ] ; then \ if grep '^mkinstalldirs.*=.*case' $i ; then \ echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; \ perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' $i; \ fi \ fi \ done \ fi /bin/sh: -c: line 1: syntax error: unexpected end of file /bin/sh: line 1: for i in po/Makefile* ; do \: No such file or directory /bin/sh: line 2: if [ -f "$i" ] ; then \: command not found /bin/sh: line 3: if grep '^mkinstalldirs.*=.*case' $i ; then \: command not found /bin/sh: line 4: echo "fixing broken $i which causes wrong path to mkinstalldirs to be used"; \: command not found /bin/sh: line 5: perl -spi -e 's:^mkinstalldirs\s*=\s*.*:mkinstalldirs = \$(SHELL) \$(MKINSTALLDIRS):' $i; \: command not found /bin/sh: line 6: fi \: command not found /bin/sh: line 7: fi \: command not found /bin/sh: line 8: done \: command not found /bin/sh: -c: line 9: syntax error near unexpected token `fi' /bin/sh: -c: line 9: `fi' make: *** [UTILS] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.93721 (%build) </snip> It looked like it went through the ./configure portion OK. Any ideas? Has someone else gotta LPRng to work on CentOS 5? -- James A. Peltier Technical Director, RHCE SCIRF | GrUVi @ Simon Fraser University - Burnaby Campus Phone : 604-291-3610 Fax : 604-291-3045 Mobile : 778-840-6434 E-Mail : jpeltier at cs.sfu.ca Website : http://gruvi.cs.sfu.ca | http://scirf.cs.sfu.ca
James A. Peltier wrote: ...> It looked like it went through the ./configure portion OK. Any ideas? > Has someone else gotta LPRng to work on CentOS 5? >Yes. With difficulty. :-) This problem is fixed by: 1. installing the LPRng src rpm 2. cd /usr/src/redhat/SOURCES 3. mkdir unpack 4. cd unpack 5. tar zxf ../LPRng-3.8.27.tgz 6. vi LPRng-3.8.27/Makefile.in 7. Change line 45 from: SHELL="@SHELL@" to: SHELL=@SHELL@ 8. tar zcf ../LPRng-3.8.27.tgz LPRng-3.8.27 9. cd /usr/src/redhat/SPECS 10.rpmbuild -bb LPRng.spec There are other errors later on; I can't recall how I fixed this, maybe disabling kerberos support? Mogens -- Mogens Kjaer, Carlsberg A/S, Computer Department Gamle Carlsberg Vej 10, DK-2500 Valby, Denmark Phone: +45 33 27 53 25, Fax: +45 33 27 47 08 Email: mk at crc.dk Homepage: http://www.crc.dk
James A. Peltier wrote:> Has someone else gotta LPRng to work on CentOS 5?Sorry, I wasn't subscribed to the list when this message was posted, so my reply won't be threaded properly... Anyways, we build LPRng rpms for SME Server, which is based on CentOS. (7.x = EL4 and 8.x = EL5) The current EL5 version is here: http://mirror.contribs.org/smeserver/releases/testing/8/smeos/i386/SME/LPRng-3.8.29-3.el5.sme.i386.rpm> SCIRF | GrUVi @ Simon Fraser University - Burnaby CampusSmall world...I'm in Langley Greg