Installation of CUPS in HP-UX 11i

Bernd Krumböck b.krumboeck at universalnet.at
Tue May 27 02:47:23 PDT 2008


Compile and install procedure for a single machine:


1) See if you have all necessary dependencies installed:
xxxxxx:/> swlist -l fileset libiconv gettext zlib libpng jpeg tiff gcc ghostscript
# Initializing...
# Contacting target "xxxxxxx"...
#
# Target:  auts1p13:/
#

# gcc                           4.2.1          gcc
  gcc.gcc-INC
  gcc.gcc-MAN
  gcc.gcc-RUN
# gettext                       0.17           gettext
  gettext.gettext-MAN
  gettext.gettext-RUN
# ghostscript                   8.56.0         ghostscript
  ghostscript.ghostscript-MAN
  ghostscript.ghostscript-RUN
# jpeg                          6b             jpeg
  jpeg.jpeg-RUN
# libiconv                      1.11           libiconv
  libiconv.libiconv-RUN
# libpng                        1.2.18         libpng
  libpng.libpng-RUN
# tiff                          3.8.2          tiff
  tiff.tiff-MAN
  tiff.tiff-RUN
# zlib                          1.2.3          zlib
  zlib.zlib-RUN


2) Download and install all missing dependencies:

You only need to install if you miss. Another version of a package will also work.

Donwload links:
http://hpux.connect.org.uk/ftp/hpux/Gnu/gcc-4.2.3/gcc-4.2.3-hppa-11.11.depot.gz
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.12/
http://hpux.connect.org.uk/ftp/hpux/Gnu/gettext-0.17/gettext-0.17-hppa-11.11.depot.gz

http://hpux.connect.org.uk/ftp/hpux/Misc/zlib-1.2.3/zlib-1.2.3-hppa-11.11.depot.gz
http://hpux.connect.org.uk/ftp/hpux/X11/Graphics/libpng-1.2.29/libpng-1.2.29-hppa-11.11.depot.gz
http://hpux.connect.org.uk/ftp/hpux/X11/Graphics/jpeg-6b/jpeg-6b-hppa-11.11.depot.gz
http://hpux.connect.org.uk/ftp/hpux/X11/Graphics/tiff-3.8.2/tiff-3.8.2-hppa-11.11.depot.gz

http://hpux.connect.org.uk/ftp/hpux/PostScript/ghostscript-8.56.0/ghostscript-8.56.0-hppa-11.11.depot.gz (optional)

Install procedure for above depots:
gunzip file.depot.gz
swinstall -s $PWD\file.depot \*


3) Download, build and install cups:

Download cups-1.3.7-source.tar.gz from http://www.cups.org/software.php

Patch your configure file:
(--- START PATCH -------------------------------------)
*** configure.old       Tue Feb 27 11:28:19 2007
--- configure   Tue Feb 27 11:29:49 2007
***************
*** 8131,8148 ****
                        # HP-UX needs the path, even for /usr/lib...
                        case "$uarch" in
                                ia64)
!                                       DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
!                                       DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS"
!                                       DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS"
                                        ;;
                                *)
!                                       DSOFLAGS="+s +b $libdir $DSOFLAGS"
!                                       DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS"
!                                       DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS"
                                        ;;
                        esac
!                       LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
!                       EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
                        ;;
                  SunOS*)
                        # Solaris...
--- 8131,8148 ----
                        # HP-UX needs the path, even for /usr/lib...
                        case "$uarch" in
                                ia64)
!                                       DSOFLAGS="-Wl,+s,+b,$libdir:/usr/local/lib/hpux32:/usr/lib/hpux32/gss $DSOFLAGS"
!                                       DSO32FLAGS="-Wl,+s,+b,$LIB32DIR:/usr/local/lib/hpux32:/usr/lib/hpux32/gss $DSO32FLAGS"
!                                       DSO64FLAGS="-Wl,+s,+b,$LIB64DIR:/usr/local/lib/hpux64:/usr/lib/hpux64/gss $DSO64FLAGS"
                                        ;;
                                *)
!                                       DSOFLAGS="+s +b $libdir:/usr/local/lib/hpux32:/usr/lib/hpux32/gss $DSOFLAGS"
!                                       DSO32FLAGS="+s +b $LIB32DIR:/usr/local/lib/hpux32:/usr/lib/hpux32/gss $DSO32FLAGS"
!                                       DSO64FLAGS="+s +b $LIB64DIR:/usr/local/lib/hpux64:/usr/lib/hpux64/gss $DSO64FLAGS"
                                        ;;
                        esac
!                       LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir:/usr/local/lib/hpux32:/usr/lib/hpux32/gss"
!                       EXPORT_LDFLAGS="-Wl,+s,+b,$libdir:/usr/local/lib/hpux32:/usr/lib/hpux32/gss"
                        ;;
                  SunOS*)
                        # Solaris...
(--- END PATCH -------------------------------------)


Use "3a" if you want to replace lpsched with cups. Use "3b" if you want to install CUPS in /opt/cups without replacing lpsched.


3a)
*) Configure:
INSTALL="`pwd`/install-sh -c" LDFLAGS="-L/usr/local/lib -L/usr/lib/gss -L/opt/zlib/lib" DSOFLAGS="-L/usr/local/lib -L/usr/lib/gss -L/opt/zlib/lib" CPPFLAGS="-I/opt/zlib/include" ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib --with-rclevels="2" --with-rcstart="380" --with-rcstop="620" --with-rcdir="/sbin" --with-rclevels="2"

*) Build:
make

*) Remove lpsched:
swremove -xenforce_dependencies=false PrinterMgmt

*) Install cups:
make install


3b)
*) Configure:
INSTALL="`pwd`/install-sh -c" LDFLAGS="-L/usr/local/lib -L/usr/lib/gss -L/opt/zlib/lib" DSOFLAGS="-L/usr/local/lib -L/usr/lib/gss -L/opt/zlib/lib" CPPFLAGS="-I/opt/zlib/include" ./configure --prefix=/opt/cups --sysconfdir=/etc --localstatedir=/var --with-rclevels="2" --with-rcstart="380" --with-rcstop="620" --with-rcdir="/sbin" --with-rclevels="2"

*) Build:
make

*) Install cups:
make install


4) Start/Stop CUPS with /sbin/init.d/cups start/stop


PS: I can't guarantee for anything. Do this procedure at your own risk.

regards!
Bernd



> Thanks for the reply.
> I am using 11i v1 ... 11.11 (PA-RISC) architecture.
>
>
> http://hpux.connect.org.uk/hppd/hpux/Sysadmin/cups-1.0.2/
> >> I installed from this site. It did not open that CUPS site.
>
> May be the procedure is different.
>
>
> Can you help me with the procedure of installation CUPS.
> could not follow the procedure given in this link because the configuration files are different.
> http://ve2dmn.blogspot.com/2007/04/installing-cups-on-hp-ux.html
>
> Thanks,
> Meera
>





More information about the cups mailing list