Operating System - HP-UX
1748197 Members
2554 Online
108759 Solutions
New Discussion юеВ

Unable to use bash for ia machine(11.23)

 
SOLVED
Go to solution
amit mehta_2
Regular Advisor

Unable to use bash for ia machine(11.23)

Hi,

My machine(11.23) had bash for PA arch and when i tried to install(as i couldn't get the bash binary for ia machine on any of my machines) bash for ia,it failed giving error message:
/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'.
Killed

downloaded from:
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/

root@testia07// $ file /usr/bin/bash
/usr/bin/bash: PA-RISC1.1 shared executable dynamically linked -not stripped dynamically linked
root@testia07// $ model
ia64 hp server rx464

root@testia07/var/ $ uname -a
HP-UX testia07 B.11.23 U ia64 1691467044 unlimited-user license
root@testia07/var/ $ gunzip bash-3.2-ia64-11.23.depot.gz
root@testia07/var/ $ swinstall -s /var/bash-3.2-ia64-11.23.depot \*

======= 04/13/07 15:33:08 IST BEGIN swinstall SESSION
(non-interactive) (jobid=testia07-0575)

* Session started for user "root@testia07".

* Beginning Selection
* Target connection succeeded for "testia07:/".
* Source: /var/bash-3.2-ia64-11.23.depot
* Targets: testia07:/
* Software selections:
bash.bash-RUN,r=3.2,a=HP-UX_B.11.23_64
* Selection succeeded.


* Beginning Analysis and Execution
* Session selections have been saved in the file
"/.sw/sessions/swinstall.last".
* The analysis phase succeeded for "testia07:/".
* The execution phase succeeded for "testia07:/".
* Analysis and Execution succeeded.


NOTE: More information may be found in the agent logfile using the
command "swjob -a log testia07-0575 @ testia07:/".

======= 04/13/07 15:33:32 IST END swinstall SESSION (non-interactive)
(jobid=testia07-0575)

root@testia07/var/ $ /usr/local/bin/bash
/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'.
Killed

this(libtermcap.so) shared library is indeed not present on my machine :-(
so what should be done ?

Thanks,
~amit
10 REPLIES 10
Steven E. Protter
Exalted Contributor

Re: Unable to use bash for ia machine(11.23)

Shalom,

You can't use PA-RISC software on an Itanium system.

Take the source code and compile it if you can't find a version for 11.23 Itanium.

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
Peter Godron
Honored Contributor

Re: Unable to use bash for ia machine(11.23)

Amit,
PA-RISC and Itanium are different processor architecture, so code will not run, unless it is recompiled AND takes into consideration any processor specific instructions.

You wouldn't expect to be able to run a windows product on a native HP platform ?
Patrick Wallek
Honored Contributor
Solution

Re: Unable to use bash for ia machine(11.23)

OK guys, so what is the ARIES emulator for then? ARIES on Itanium machines is designed to ALLOW you to run HP-UX PA-RISC programs in HP-UX Itanium machines.

The biggest problem here is that LIBTERMCAP is not installed. You need to find it and install it.

If you go to the bash download page here:
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/

You will see a list of "Run time dependencies"
Run-time dependencies: gettext libiconv termcap

These must all be installed in order for BASH to work.
amit mehta_2
Regular Advisor

Re: Unable to use bash for ia machine(11.23)

Hi steven/Peter,

That's what i'm trying to do.
The machine(testia07) is an IA machine so i've downloaded
bash for ia(bash-3.2-ia64-11.23.depot.gz).

The bash executable currently on my machine is for PA and i'm trying to replace it with correct bash.
Am i missing something ?

~amit
Torsten.
Acclaimed Contributor

Re: Unable to use bash for ia machine(11.23)

If you downloaded the correct link, it should work:
http://hpux.connect.org.uk/ftp/hpux/Shells/bash-3.2/bash-3.2-ia64-11.23.depot.gz

But take care of this:

Run-time dependencies:
gettext libiconv termcap

Do you read termcap too?

Check if you have all Run-time dependencies met.

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!   
Torsten.
Acclaimed Contributor

Re: Unable to use bash for ia machine(11.23)

Patrick was faster, but check this:

http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/termcap-1.3.1/

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!   
amit mehta_2
Regular Advisor

Re: Unable to use bash for ia machine(11.23)

Thanks a lot Patrick for pointing me to those runtime dependencies.
After installing all of those(gettext libiconv termcap)it seems to be working fine.

A follow up querry here:
what all problems a different bash(PA bash on IA machine and vice-versa) can cause ?

Thanks,
~amit
Patrick Wallek
Honored Contributor

Re: Unable to use bash for ia machine(11.23)

The one thing you ABSOLUTELY DO NOT want to do is modify root's default shell in /etc/passwd. That MUST ABSOLUTELY remain /sbin/sh. If you change this, you may wind up with an unbootable machine.

If you want to use bash while logged in as root, just switch to the bash shell after logging in by doing an 'exec bash' or 'bash'.

That being said, I don't know if it will cause you any problems or not. I wouldn't think so, but then again I don't have any IA boxes and I don't see the point of running bash on HP-UX when the POSIX shell is perfectly good.
Pete Randall
Outstanding Contributor

Re: Unable to use bash for ia machine(11.23)

The main problem, and the reason I cringe every time I see somebody wanting to use bash, is when they change root's shell from /sbin/sh to bash and end up with a broken system.


Pete

Pete