Operating System - HP-UX
1819997 Members
3991 Online
109608 Solutions
New Discussion юеВ

Re: HP-UX: How to Install TCL, TK, and Expect

 
SOLVED
Go to solution
Mr. Lewis Lampkin, III
Frequent Advisor

HP-UX: How to Install TCL, TK, and Expect

Hello, I need to install TCL, TK, and Expect (Needed to get the proper versions of the operating system, in order to know what I needed to download, in order to install it.)

Now, that I did the formality of finding that I need the PA-RISC version of the HP-UX software, I now have to know where to download this software, and how to get it installed.

I am NOT familiar with how I'm going to gunzip or tar these files, in order to get it installed.

I need to know the following, specifically:

(1) Where I can download the proper files.
(2) Commands I would enter to install them.
(3) Simple command I can enter to verify installation.

This will be immensely helpful to me. I did get the "Exploring Expect" book, but I'm having difficulty in getting this great tool installed.

Thanks for your help!

I will award points!
15 REPLIES 15
OldSchool
Honored Contributor

Re: HP-UX: How to Install TCL, TK, and Expect

ok...its pa-risc, but what OS version? (same commands as your other thread should provide that info)
Steven E. Protter
Exalted Contributor

Re: HP-UX: How to Install TCL, TK, and Expect

Shalom,

If your OS is still supported.

http://hpux.connect.org.uk/

Search for the applications you want.

Download the depots and all dependencies refereneced. There could be a dozen or so run and build time dependencies. You need to download them all. If you skip one, the swinstall command will still work but the application will not.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Raj D.
Honored Contributor
Solution

Re: HP-UX: How to Install TCL, TK, and Expect

instant12345,

(1) You can downlod tcl/tk and expect from :
htt://hpux.connect.org.uk


http://hpux.connect.org.uk/hppd/hpux/Tcl/tcltk-8.5.7/

http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/





(2) You can download the (gzip) or (depot) file from the site to your pc then ftp it to te server. In the server , gunzip it and you will get a file .depot .
- Install it using
# swinstall -s `pwd`/filename.depot



(3) To verify :
Once installed check using:
# swlist -l product | grep -i -e tcl -e expect

or

# swlist -l fileset -a state | grep -i -e tcl -e expect
( The filesets shuld be in configured mode)


also you can verify with,
- write a sample program in tcl or expect and verify,



Cheers,
Raj.

" If u think u can , If u think u cannot , - You are always Right . "
Raj D.
Honored Contributor

Re: HP-UX: How to Install TCL, TK, and Expect

instant1235,
Also remember that the dependeny should be met,

For both tcl/tk and expect: 11.11 ver for PA-ISC avaialbe , I hope this is your os ver,

Expect has dependecy of tcl/tk ,(i.e tcl/tk should be installed first) .
and tcl/tk got some more dependency.




Location:

TCL/TK for:: PA RISC: 11.11:
http://hpux.connect.org.uk/ftp/hpux/Tcl/tcltk-8.5.7/tcltk-8.5.7-hppa-11.11.depot.gz



Expect: for:: PA RISC: 11.11:
http://hpux.connect.org.uk/ftp/hpux/Tcl/expect-5.43/expect-5.43-hppa-11.11.depot.gz





cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

OK, here is the detailed system information. I hope this is what is required. I think that the posted tips help, can't verify until I'm into the office, thanks.


baandev:/ > uname -a
HP-UX baandev B.11.11 U 9000/800 2389949185 unlimited-user license

baandev:/ > uname -m
9000/800

baandev:/ > model
9000/800/rp7410

baandev:/ > swlist -l bundle | grep -i HPUX | grep -i OE
HPUX11i-OE-Ent B.11.11.0209 HP-UX Enterprise Operating Environment Co
mponent


Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

OK.

I had to do some trial and error.
(1) had to figure out that I had to follow instructions, and gunzip the software first.
(2) don't know, but maybe it had to be in the depot directory first? not sure, but i moved it there, after seeing the list of registered depots in the swinstall interface.
(3) i'm missing a dependency, I hope someone can decipher the output.


I have an error, while installing TCL/TK (this was expected, as all the documentation I read warns about this sort of thing.)

Thsi is the error:

* The corequisite "libXft.libXft-RUN" for fileset "tcltk.tcltk-RUN,r=8.5.7" cannot be successfully resolved.
* The dependencies for fileset "tcltk.tcltk-RUN,r=8.5.7" cannot be resolved (see previous lines.
* You must resolve the above dependencies before operating on this fileset or change the enforce_dependencies option to false.


- output omitted-
error : exclude tcltk.tcltk-RUN, r-8.5.7
1 of 3 filesets ahd errors
2 of 3 filesets had no errors or warnings
the analysis phase had errors. see the above output for details.

****

If you need more of the output, please let me know. This appears to be the pertinent error, about the dependency missing.

Thanks for your help!
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Closing this thread, my problem is different from the nature of this thread.
James R. Ferguson
Acclaimed Contributor

Re: HP-UX: How to Install TCL, TK, and Expect

Hi:

> The corequisite "libXft.libXft-RUN" for fileset "tcltk.tcltk-RUN,r=8.5.7" cannot be successfully resolved.

I believe that you need to fetch and install:

http://hpux.connect.org.uk/hppd/hpux/X11/Core/libXft-2.1.13/

And, of course, don't forget this one's _dependencies_!

Regards!

...JRF...
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Thanks! Such a quick response. I'll update with the status later.
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Ok, it worked, it's installed now.

My steps:

1. Download tcl/tk:('http://hpux.connect.org.uk/hppd/hpux/Tcl/tcltk-8.5.7/')
2. Download expect: ('http://hpux.connect.org.uk/hppd/hpux/Tcl/expect-5.43/')
3. gunzip tcltk-8.5.7-hppa-11.11.depot.gz
4. gunzip expect-5.43-hppa-11.11.depot.gz
5. swinstall -s tcltk-8.5.7-hppa-11.11.depot
6. error: dependency
7. download libXft: ('http://hpux.connect.org.uk/hppd/hpux/X11/Core/libXft-2.1.13/')
8. gunzip libXft-2.1.13-hppa-11.11.depot.gz
9. swinstall libxft-2.1.13-hppa-11.11.depot
10. swinstall -s tcltk-8.5.7-hppa-11.11.depot
11. swinstall -s expect5.43-hppa-11.11.depot
12. swlist -l product | grep -i -e tcl -e expect
13. swlist -l fileset -a state | grep -i -e tcl -e expect

Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Error above:

9. swinstall libxft-2.1.13-hppa-11.11.depot

Should be:

9. swinstall -s libXft-2.1.13-hppa-11.11.depot

Of course, if you do this often enough, you begin to figure this sort of thing out.

Thanks for everyone's help!
susan.derose
Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Hey guys,
IS there anything out there that contain all these dependencies in a bundle? It sure would be nice if someone could create that for EXPECT app.
It is almost nightmerish to install one dependencies after another and hoping that there will be nothing missing while trying to install this..
Thanks,

Sue
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

I know what you mean. I wound up going with the windows-based telnet scripting tool to solve my problem, as I didn't know enough about HP-UX to know what I was doing here, and our company is going away from it eventually, so I decided not to invest any more time into learning something that I won't be able to use in the future.
Torsten.
Acclaimed Contributor

Re: HP-UX: How to Install TCL, TK, and Expect

Learning TCL is not a waste of time at all. I really like this language and it runs almost everywhere.

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!   
Mr. Lewis Lampkin, III
Frequent Advisor

Re: HP-UX: How to Install TCL, TK, and Expect

Torsten:

Thanks for your input.

I didn't mean that the tool itself was a waste of time. I meant that the amount of time that I was investing in something I did not completely understand, was a waste of my own time.

For the specific thing that I was trying to do, I found a tool to handle it that I could understand and use more quickly than expect.

Now, I actually would prefer to use expect, but I'm not even sure if it is installed correctly, even with all of the checks that I did earlier in this thread.

I did learn something in this thread, as I have never installed anything in HP-UX before coming into this thread.

Also, I want to use the TCL, as it can be leveraged in both windowed and command line environments, but like I say, I'm struggling at the installation stage. I can actually understand the simple command syntaxes of using expect, but without it installed, I can't do anything with it.

I lack sufficient skill with HP-UX to get the tool installed. That is the root of my problem, so I went with something that I could more easily do in Windows.

Now, if I'd had 9 years of HP-UX experience, instead of Windows, it would undoubtedly be much easier to install the tool, and I probably would not have had to resort to posting here, just to try to get it installed (and still not know how to set everything up).