ANSI / C Compiler for HP-UX 11.11

Good Day

I downloaded Server Evaluation copy of C/ANSI compiler, but when I try to compile a file with it, it gives me following error - (for HP-UX 11.11 v1 PA-RISC)
Internal Error: Codeword file /opt/ansic/newconfig/ansic.cwd missing or empty.

Detailed Errors are as follows
Internal Error: Codeword file(s) missing or empty.
> > Internal Error: Codeword file(s) missing or empty.
> > cc: 487: warning : Possibly incorrect message catalog.
> > Internal Error: Codeword file(s) missing or empty.
> > cob32: error(s) in C compilation: rts1serl.c
> > Rename rts1.SCR to rts1

I have followed the detailed installation instructions and put the 26 character license file in /opt/ansic/newconfig/ansic.cwd. With was no success.
I have tried to reinstall the application also with no results,I have generated 3 different evaluation licenses with the same results.
I have contacted HP Licensing with no joy.

Has anybody experienced the same problem and how did you fix it??

Kind Regards

Shawn

For the record I just went through this procedure for the C++ compiler.

(An "emergency" install of a c++ evaluation compiler that must happen Sunday night...cannot wait until Monday morning! And now the developer seems to have gone home. :()

My main trouble was that HP's site was slow as molassas in January. Once I got the compiler downloaded, it was still a rocky path. The instructions said to "swinstall -d xxx.depot B3913DB", but that was not in the depot. Poking around inside the depot I found that it really was B3913DBEVAL. Then I had about 1,455 errors apparrently caused due to the fact that EVAL compiler is stripped down. I tried to compile a hello-world but it complained about the .lic file. I installed that and now it is running.

The only thing I can think of is the op is more literal than even I am. That .lic file actually needs a 27th character which is a new-line.

Hi

I managed to sort this issue out,HP Documentation is terrible and sent them the update info

You need to copy the license file as follows

/opt/ansic/newconfig/ansic.cwd

as well as

/etc/opt/softbench/lib/softbench.cwd
/opt/aCC/newconfig/aCC.cwd

even though they are the same file,i just renamed it.

Cheers

Although it seems you have worked it out
I thought you might be interested to hear about my experience
with installing codeword protected HP-UX SW.
However, I have to admit that I never fumbled with a trial license.

Usually if you posses a codeword and customer ID
installation would be done by swinstall like this

# swinstall -v -x customer_id=XXXXXXXXX -x codeword=XXXXXXXXX -x mount_all_filesystems=false -s /path/to/sw.depot \*

This should install all filesets of such a depot.

Sometimes depots need a reboot (certainly not the ANSI C compiler)
if for instance a new kernel needs to be built and booted.
You can check in advance if a depot requires a reboot by issueing

# swlist -l fileset -a is_reboot -s /path/to/sw.depot

and it show either false or true.
For such a depot that requires a reboot the above swinstall would be aborted
after the analysis phase because the autoreboot flag is per default set to false.
To change this include in the above swinstall command another -x option of
-x autoreboot=true
swinstall would also abort if the filesystem size check would detect that the space
in the target filesystems wouldn't suffice.
In such a case you should check the ERROR lines from the output that are also
logged to /var/adm/sw/swagent.log which filesystems were deemed insufficient.
To check how much space would be required for a depot to install you could run

# swlist -l fileset -a size -s /path/to/sw.depot

and to see what files would be where installed you can issue

# swlist -l file -s /path/to/sw.depot \* | more

After the codeword protected depot has been installed you usually find your codeword
and customer ID being stored in this file

# cat /var/adm/sw/.codewords

As for the HP-UX ANSI C compiler its depot is on the application set of
CDs that appear at least twice a year.
You need to mount any of the CDs and inspect a file in the root of the CD
which usually is called CD_TABLE_OF_CONTENTS.
There you search for ANSI C where it reads the name of the depot
(something like B?????) and also tells you the install size.
Then page backwards up until you reach the CD delimiter that tells you
on which of the 4-6 CDs the depot is located.
To mount your CD you of course need to know the device file to access.
You can find out by

# ioscan -knfCdisk | more

Then

# mkdir /cdrom && mount /dev/dsk/c?t?d? /cdrom

and find your depot

# swlist -s /cdrom B?????

You could either directly swinstall from CD

# swinstall -x codeword=XXXXXX -x customer_id=XXXXXX -s /cdrom B?????

or first move the depot from CD to some filesystem on your box
so that you also could install over your LAN via RPC on other boxes

e.g.

# swcopy -x codeword=XXXXXX -x customer_id=XXXXXX -x enforce_dependencies=false -s /cdrom B????? @ /some/dir/on/your/box

Then you could install from another box on your LAN

# swinstall -x codeword=XXXXXX -x customer_id=XXXXXX -s your_depot_host:/some/dir/thereon B?????

N.B. the official website to get a codeword would be here

http://licensing.hp.com/welcome.slm

Very important, you need to specify the ID of the CD from where you would install
the depot (as been read from CD_TABLE_OF_CONTENTS)

HTH