Operating System - HP-UX
1855198 Members
2059 Online
104109 Solutions
New Discussion

Installation of CUPS in HP-UX 11i

 
SOLVED
Go to solution
Nivi
Advisor

Installation of CUPS in HP-UX 11i

Hi,

I installed CUPS in HP-UX 11i. http://localhost:631 does not open the CUPS page. Does anyone have any idea about this. or tell me the link where i can get details.
26 REPLIES 26
Rasheed Tamton
Honored Contributor

Re: Installation of CUPS in HP-UX 11i

Hi,

What error you are getting. Is the web server already started for you to see the html pages.
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

Thanks for the reply.

I installed using
swcopy -s /tmp/cups-1.2.8/dist/cups-1.2.0-hpux-11.11-hppa.depot \* @ hostA:/tmp/sw
swinstall -s hostA:/tmp/sw

and i could see configuration file sin
/etc/cups

now i tried to open CUPS through the url://http://localhost:631. It did not open the CUPS brwser page.

If the installation procedure is wrong can you tell me the exact procedure for installation.
Thanks.
Rasheed Tamton
Honored Contributor

Re: Installation of CUPS in HP-UX 11i

what is the output of
swlist -l product|grep cup

Is the daemon for cups (cupsd) running.

ps -ef|grep cups
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

i downloaded CUPS 1.3.7 for HP-UX 11.11 PA-RISC architecture and all the dependency libraries like gcc, gettext.......

first I ma trying to install libraries. All the libraries got installed except gcc... the gcc 4.2.3 that I am tryin to install gives error and in the log it is showing "gcc.gcc-RUN,r=4.2.3 cannot be successfully resolved. You must resolve the above dependencies before operating on this fileset or change the "enforce_dependencies" to "false".

should i use gcc 4.2.1 or 4.2.3.
if i have to use gcc-4.2.1 Please provide me the link for gcc4.2.1.

If gcc-4.2.3 should be used ples help me with the procedure...

Thanks,

Dennis Handly
Acclaimed Contributor

Re: Installation of CUPS in HP-UX 11i

>it is showing "gcc.gcc-RUN,r=4.2.3 cannot be successfully resolved.

What is the dependency?
Are you trying to install these depots one at a time? It would be better to swcopy them all into one big depot and install at once. Then the dependencies are all there.
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

>it is showing "gcc.gcc-RUN,r=4.2.3 cannot be successfully resolved.

What is the dependency?
Are you trying to install these depots one at a time? It would be better to swcopy them all into one big depot and install at once. Then the dependencies are all there.

I couldn't understand what the dependency will be. I have already installed all depot's separately. only this gcc gave error.

Should i use gcc-4.2.1 or gcc 4.2.3??
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

hi,

I got answer for this. I had downloaded libgcc-4.2.3 and installed it. and ran gcc-4.2.3. It successfully ran with no errors or warnings....
Pete Randall
Outstanding Contributor

Re: Installation of CUPS in HP-UX 11i

> You installed using swcopy ???????

I'm hoping you meant to say swinstall, not swcopy.


Pete

Pete
Torsten.
Acclaimed Contributor

Re: Installation of CUPS in HP-UX 11i

Pete, read also the next line.

1) swcopy to a depot
2) swinstall from that depot

;-))

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

I used swinstall -s /path/\file.depot \* command to install libraries for CUPS.
Bart.Vermeiren
Frequent Advisor

Re: Installation of CUPS in HP-UX 11i

A question -> How did you get a depot from cups? I only found a really old one (cups 1.02) and when I try to compile I get a lot of errors.

swlist gives this

apache2 2.2.8 apache2
autoconf 2.62 autoconf
bash 3.2 bash
bison 2.3 bison
db 4.6.21 db
flex 2.5.35 flex
gawk 3.1.6 gawk
gcc 4.2.3 gcc
gdbm 1.8.3 gdbm
gettext 0.17 gettext
ghostscript 8.56.0 ghostscript
jpeg 6b jpeg
libgcc 4.2.3 libgcc
libiconv 1.12 libiconv
libpng 1.2.29 libpng
m4 1.4.11 m4
make 3.81 make
ncurses 5.6 ncurses
openssl 0.9.8h openssl
popt 1.7 popt
readline 5.2 readline
sed 4.1.5 sed
tcltk 8.5.2 tcltk
termcap 1.3.1 termcap
texinfo 4.11 texinfo
tiff 3.8.2 tiff
zlib 1.2.3 zlib
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

your answer is already there..
i downloaded CUPS 1.3.7 for HP-UX 11.11 PA-RISC architecture and all the dependency libraries like gcc, gettext.......

By the way you know the procedure for installation.

when i gave "make" command, the following error was thrown and i could not solve it.

# make
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
Using LDFLAGS=-L../cups -L../filter -Wl,+s,+b,/usr/lib:/usr/local/lib/hpux32:/usr/lib/hpux32/gss -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -D_XOPEN_SOURCE_EXTENDED -D_INCLUDE_HPUX_SOURCE -D_HPUX_SOURCE
Using LIBS=-lcups -lpthread -lsec
Making all in cups...
Linking libcups.sl.2...
/bin/ld: Can't find library for -lz
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.


Thanks,
Bart.Vermeiren
Frequent Advisor

Re: Installation of CUPS in HP-UX 11i

I could only install cups 1.1.23 on a HPUX 11.23 with the previously posted dependencies. I just thought that you got a depot file for HP-UX somehow.
Dennis Handly
Acclaimed Contributor

Re: Installation of CUPS in HP-UX 11i

>the following error was thrown and i could not solve it.
>ld: Can't find library for -lz

Where did you put your zlib dependency?
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

Why cups latest version is not used?
anyways the procedure i followed is
check whether all the dependencied are installed.
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

gave ./configure
gave "make"command
This make command gives error like
# make
Using ALL_CFLAGS=-I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
Using ALL_CXXFLAGS=-I.. -D_CUPS_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_THREAD_SAFE -D_REENTRANT
Using LDFLAGS=-L../cups -L../filter -Wl,+s,+b,/usr/lib:/usr/local/lib/hpux32:/usr/lib/hpux32/gss -Wall -Wno-format-y2k -fPIC -Os -g -fstack-protector -D_XOPEN_SOURCE_EXTENDED -D_INCLUDE_HPUX_SOURCE -D_HPUX_SOURCE
Using LIBS=-lcups -lpthread -lsec
Making all in cups...
Linking libcups.sl.2...
/bin/ld: Can't find library for -lz
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

please help me how to solve if you know the answer.

Thanks,
Bart.Vermeiren
Frequent Advisor

Re: Installation of CUPS in HP-UX 11i

Sollution for you: copy all the files from /usr/local/lib to /usr/lib. For some reason the install looks into /usr/lib when compiling.
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

I had already tried putting all those library files into /usr/lib and /lib... but of no use.

please let me know in case of any progression.
Thanks,
Dennis Handly
Acclaimed Contributor

Re: Installation of CUPS in HP-UX 11i

>I had already tried putting all those library files into /usr/lib and /lib

It would help to know what the ld link line has. You might try:
export LDOPTS="-v -t"
Bart.Vermeiren
Frequent Advisor

Re: Installation of CUPS in HP-UX 11i

This is what I did:
1. Install all the dependencies (look at my previous post with the swlist)
2. copy files from /usr/local/lib/ to /usr/lib/
3. Go for the next command
CFLAGS "-I/usr/local/lib" ; \
CPPFLAGS "-I/usr/local/lib" ; \
CXXFLAGS "-I/usr/local/lib" ; \
LDFLAGS="-L/usr/local/lib" ; \
DSOFLAGS="-L/usr/local/lib" ; \
./configure --prefix=/usr/local/cups
#or another directory where you want to put cups
4. vi Makedefs
"SHELL = /bin/sh" has to become "SHELL = /usr/local/bin/bash"
5. gmake all
6. gmake install
7. edit the cupsd.conf en make it like this:
LogLevel info
LogFilePerm 0600
MaxLogSize 20000

Printcap /etc/printcap

Listen cupsclient:515 #515 is for the LPD protocol
Listen cupsclient:631 #cupsclient is the server where you're installing cups on.
Listen 127.0.0.1:515
Listen 127.0.0.1:631

Browsing On
BrowseProtocols cups
BrowseAllow from All
BrowseOrder allow,deny
BrowsePoll cupsserver:631 #the cupsserver is the server you connect your printers to. With the poll you get those printers on your client too.
BrowsePort 631

DefaultEncryption Never

SystemGroup sys


AuthType None
AuthClass Anonymous
Order Allow,Deny
Allow From All



AuthType Basic
AuthClass System
Order Allow,Deny
Allow From All



AuthType Basic
AuthClass System
Order Allow,Deny
Allow From All


Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

Hi,

I gave the parameters which you have given to execute with the configure file.
Now it is giving some other error.
/usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (testhttp.o) was detected. The linked output may not run on a PA 1.x system.
/usr/ccs/bin/ld: Unrecognized argument: +init
/usr/ccs/bin/ld: Usage: /usr/ccs/bin/ld [options] [flags] files
collect2: ld returned 1 exit status
*** Error exit code 1

Stop.

since it did not recognize the init, linker has to be upgarde to a newer version! please help me in getting the latest linker by providing path and installation procedure.

Thanks,
Dennis Handly
Acclaimed Contributor
Solution

Re: Installation of CUPS in HP-UX 11i

>please help me in getting the latest linker by providing path and installation procedure.

latest linker patch: PHSS_37517
http://www.itrc.hp.com/service/patch/search.do?BC=main|&pageOsid=hpux

After you download the patch:
# sh PHSS_37517
# swinstall -s $PWD/PHSS_37517.depot \*
Dennis Handly
Acclaimed Contributor

Re: Installation of CUPS in HP-UX 11i

>After you download the patch:
># sh PHSS_37517

After this step, installation instructions are also in PHSS_37517.text.
Nivi
Advisor

Re: Installation of CUPS in HP-UX 11i

Thanks for the patch details.

It got installed. and the CUPS installation with "make" command was running for 5 mins then finally gave error as below..

/usr/include/shadow.h:42 error: conflicting types for "getspnam"
/usr/include/plot.h:650: previous declaration of "getspnam" is here
***Error exit code 1
stop

I searched in net, it is given PHCO_23702 patch will solve this error.

I downloaded the patch and installed then gave "make" command. It did not give any error. cups is found in /opt directory..

But it is not present in sbin/init.d directory.

how to start the cups?

Thanks,
Bart.Vermeiren
Frequent Advisor

Re: Installation of CUPS in HP-UX 11i

I think it would be /opt/cups/sbin/cupsd.