Operating System - HP-UX
1834497 Members
2839 Online
110067 Solutions
New Discussion

swinstall problem using jre122.depot

 
SOLVED
Go to solution
Jason Miñoza
Advisor

swinstall problem using jre122.depot

anyone,

i have the jre depot file copied to /tmp...
i have the Source Depot Type changed to "local directory"
i have the Source Depot path changed to /tmp...
now why the hell can't the swinstall locate the depot file?

more to follow,
json
friends get u places
20 REPLIES 20
eran maor
Honored Contributor

Re: swinstall problem using jre122.depot

Hi Jason

can you tell which command are you using ?

the command that i will use is :
swinstall -s /tmp/rje.depot

if this command doesnt work can you give the command that you are using and the error code ?
love computers
Sachin Patel
Honored Contributor

Re: swinstall problem using jre122.depot

Hi jason,
Try
#swinstall -s /tmp/jrs.depot

or may be this. I don't think it is important but give it a try
swinstall -s /tmp/jrs.depot -x reinstall_files=true

Sachin
Is photography a hobby or another way to spend $
linuxfan
Honored Contributor

Re: swinstall problem using jre122.depot

Hi Jascon,

First see if the depot is ok
swlist -s /tmp/jre122.depot

and then try
swinstall -s /tmp/jre122.depot

what kind of errors are you seeing?

-Regards
I am RU
They think they know but don't. At least I know I don't know - Socrates
Praveen Bezawada
Respected Contributor

Re: swinstall problem using jre122.depot

Hi
From your question it's not clear, but have you entered /tmp/jre122.depot in the source depot path or just /tmp. It will not work if you just say /tmp
If still it can find it try installing from prompt
using swinstall -s /tmp/jre122.depot

...BPK...
Sridhar Bhaskarla
Honored Contributor

Re: swinstall problem using jre122.depot

swinstall -s /tmp/jre.depot should work.

If you want the system to find it, you can do

swreg -l depot /tmp/jre.depot

Other work around is

1) cd /tmp; tar xvf jre.depot
2) cd depo_dir/catalog; touch swlock
3) swreg -lk depot /tmp/depo_dir

This depo can be used from other systems on the network.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sridhar Bhaskarla
Honored Contributor

Re: swinstall problem using jre122.depot

swinstall -s /tmp/jre.depot should work.

If you want the system to find it, you can do

swreg -l depot /tmp/jre.depot

Other work around is

1) cd /tmp; tar xvf jre.depot
2) cd depo_dir/catalog; touch swlock
3) swreg -l depot /tmp/depo_dir

This depo can be used from other systems on the network.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Jim Turner
HPE Pro

Re: swinstall problem using jre122.depot

Hi Jason,

If installing on the local machine:
swinstall -s /tmp/jre.depot \*
#no depot registration necessary

If installing on a remote machine:
#on local machine...
swcopy -s /tmp/jre.depot \* @/tmp/mydepot
#then on remote machine...
swinstall -s hostname:/tmp/mydepot \*
#where hostname is the name of the machine where the depot resides.

The swcopy both registers a depot and gets the depot out of tape format so that it can be used remotely. Note also that the escaped splat selects all products in the depot so that a GUI/TUI doesn't start and swinstall runs non-interactively.

All the best,
Jim
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

k guys i got the swinstall running...but..
installation was suspended....
error: tar: /tmp/jre122.depot : this doesn't look like a tar archive
error: tar: /tmp/jre122.depot : shipping to next file .....
error: internal error : the directory "/opt/java1.2/jre/lib/PA_RISC/hotspot" is missing from the source media.
..errors following this are "The file ..bla bla bla was not loaded because it is missing from the source media"
friends get u places
eran maor
Honored Contributor

Re: swinstall problem using jre122.depot

Hi Jason

Generally, this error is a result of having downloaded or ftp'd the file in
ascii mode rather than in binary mode, thus corrupting the depot.

Download the file again, and, if ftp'ing it to a UNIX box from a PC, do so in
binary mode.

To test the downloaded file, run cksum on it and verify that the cksum value is
what the web page indicates it should be
love computers
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

eran

got that, guess ihave 2 copy the file again...
how do i copy a cd file with xtension jre122.dep;1...
what cp option should i use to copy this kind of file?
friends get u places
eran maor
Honored Contributor

Re: swinstall problem using jre122.depot

i thing that the cd that you mount is a cd that
was burn in a p.c .

if it is not an orig. cd you need to mount the cd with this command :

mount -o cdcase /dev/device_file /cdrom
and then copy the file with cp

but use this command only if the cd was burn with isso formant ( if you can see it in the unix i guess it is esso )

then you will be able to install it ( i hope )
love computers
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

have successfully installed jre122...
but i can't get java executed!
was hoping i could get java version 1.2.2 using java -version after this setup but instead got /usr/sbin java: not found...
btw, target installation was @ root (/)..is that ok?
friends get u places
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

almost done,

what environment variables or paths do have to modify for the "java -version" command to function?...user root

json
friends get u places
eran maor
Honored Contributor

Re: swinstall problem using jre122.depot

Hi

If the java wrapper is in your path simply type:

java -version

If not, then type:

$(JAVA_HOME)/bin/java -version

Where JAVA_HOME is the directory where java is located (typically /opt/java for
all java 1.1x versions and /opt/java1.2 for 1.2x versions)

Note: if you type java or $(HOME_JAVA)/bin/java with no arguments, the java
command usage will be displayed.
love computers
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

eran

files are located at /opt/java1.2/jre/bin including the java wrapper..
i've tried already and got following message:sh: /opt/java/jre/bin/java: not found.
friends get u places
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

eran

got it but how do i run it on root directory,
do i have to put the Path in the .profile of the root user?
orig: PATH=/usr/sbin:$PATH:/sbin:/home/root
sol? should i insert another line with
PATH=/opt/java1.2/jre/bin?
friends get u places
eran maor
Honored Contributor

Re: swinstall problem using jre122.depot

Hi jacon

leave the line PATH=/usr/sbin:$PATH:/sbin:/home/root

but add in the end of the file

export PATH=$PATH:=/opt/java1.2/jre/bin
to add it in the PATH of the user .

you will also need to disconnect and login again.
love computers
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

its not working, i still get this message:
/sbin/sh: java: not found.
friends get u places
eran maor
Honored Contributor
Solution

Re: swinstall problem using jre122.depot

Hi Jason

sorry , it was my mistake .

you need to add in the end of the .profile this
export PATH=$PATH:/opt/java1.2/jre/bin

and not what i wrote .
love computers
Jason Miñoza
Advisor

Re: swinstall problem using jre122.depot

got it! many tnx to all..
talk to u guys n gals again during our apache setup!
tnx again!
friends get u places