1834292 Members
3436 Online
110066 Solutions
New Discussion

Re: BASH for HPUX

 
SOLVED
Go to solution
panks
Regular Advisor

BASH for HPUX

How can I install bash for HPUX ?

Thanks
11 REPLIES 11
Torsten.
Acclaimed Contributor

Re: BASH for HPUX

If you really think you need it - just like any other software:

Download and install with swinstall.

http://hpux.asknet.de/hppd/hpux/Shells/bash-3.2/

[Moderator edit: The above link is no longer valid. Please refer to https://support.hpe.com/]


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!   
Patrick Wallek
Honored Contributor

Re: BASH for HPUX

If you do install BASH on your HP-UX server, make absolutely sure that you DO NOT change the default shell for root.

root's shell MUST be /sbin/sh. If it is anything else you could render your server unbootable.
panks
Regular Advisor

Re: BASH for HPUX

No, I will not change the shell. Whenever I want to use the bash, I will type bash and will use it. Is that ok ??
Anka
Trusted Contributor

Re: BASH for HPUX

Bash is not officially supported, you will not get help from HP support if problems with it arise ;)
Patrick Wallek
Honored Contributor

Re: BASH for HPUX

Panks,

Yes, that will work.
panks
Regular Advisor

Re: BASH for HPUX

I installed the bash !! But I found that it is under path /usr/loca/bin/bash, which is not under the path of systems. So I tried to modify the .profile but then later when tried to execute it to take the new path effect it replied with that no execute permission. When I check I found that it is having read-only with bin:bin perm

-r--r--r-- 1 bin bin 964 Jun 17 14:44 .profile

Also,
-r--r--r-- 1 bin bin 2458 Jun 17 14:46 /etc/profile

So, where I can change the path variable in HPUX, b'cs I use to change in solaris and aix by modifying .profile.

One more thing when I tried to execute the bash manually it replies with

# ./bash
/usr/lib/hpux32/dld.so: Unable to find library 'libtermcap.so'.
Killed

Pls let me know !!
Torsten.
Acclaimed Contributor

Re: BASH for HPUX

Why do you want bash?

Did you logout and login again after changing the profile?

Did you install the Run-time dependencies:

gettext libiconv termcap

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!   
panks
Regular Advisor

Re: BASH for HPUX

Where I can get those run time libraries, I mean which CD ? And profile file is having the read permission, so is that ok, if i ll make a change and logout and login
Torsten.
Acclaimed Contributor
Solution

Re: BASH for HPUX

>>
Run-time dependencies:

gettext libiconv termcap

These are links on this page!

http://hpux.asknet.de/hppd/hpux/Shells/bash-3.2/

[Moderator edit: The above link is no longer valid. Please refer to https://support.hpe.com/]


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!   
panks
Regular Advisor

Re: BASH for HPUX

Thanks, I have found the solution.
Dennis Handly
Acclaimed Contributor

Re: BASH for HPUX

>When I check I found that it is having read-only with bin:bin perm
>-r--r--r-- 1 bin bin .profile

You can just change the ownership and permissions of the file.

>-r--r--r-- 1 bin bin /etc/profile

Since only root can edit this, you don't need to change the permissions.

>where I can change the path variable in HP-UX, because I use to change in solaris and aix by modifying .profile.

You can either change each user's .profile (probably not so good of an idea since they could just change their shell). Or you could just add it to root's PATH.

Or you can change /etc/PATH if you want everyone to see it.