1753954 Members
7656 Online
108811 Solutions
New Discussion юеВ

hp-ux B.11.11 U

 
Cory Thorson
New Member

hp-ux B.11.11 U

How can I install BASH on this HP-UX server?
12 REPLIES 12
Rajeev  Shukla
Honored Contributor

Re: hp-ux B.11.11 U

Here is the software you need to install
http://hpux.connect.org.uk/hppd/hpux/Shells/bash-3.2/

Cheers
Rajeev
Cory Thorson
New Member

Re: hp-ux B.11.11 U

Should installing BASH cause any problems with other shells, users, or Informix?
Bill Hassell
Honored Contributor

Re: hp-ux B.11.11 U

BASH is fine -- except root *must* always use /sbin/sh which is a full POSIX shell (like BASH) and is not the Bourne shell (/usr/old/bin/sh). Note that you should add the bash path to /etc/shells so that users that want bash can also use ftp. If /etc/shells does not exist, create it like this:

/usr/bin/sh
/usr/bin/csh
/usr/bin/ksh
/bin/sh
/bin/csh
/bin/ksh
/usr/local/bin/bash

(or wherever you locate bash) The /bin locations are redundant since /bin is not a real directory.



Bill Hassell, sysadmin
Dennis Handly
Acclaimed Contributor

Re: hp-ux B.11.11 U

>Bill: /bin locations are redundant since /bin is not a real directory.

/bin is required is that's what is in /etc/passwd. I.e. if you are sharing users with NIS over HP-UX and linux.
Bill Hassell
Honored Contributor

Re: hp-ux B.11.11 U

> Dennis: /bin is required is that's what is in /etc/passwd. I.e. if you are sharing users with NIS over HP-UX and linux.

Correct. I keep forgetting about NIS in these days of high security. And although it is hidden quite well (not in ftpd or shells man pages), the man page for getusershell provides a list of default shells when /etc/shells is not present. It too is incorrect by not defaulting the symlink /bin paths. However, it does include the restricted shells (ie, rksh, rsh). So a more complete /etc/shells might be:

/usr/bin/sh
/usr/bin/sh
/usr/bin/csh
/usr/bin/ksh
/usr/bin/sh
/usr/bin/keysh
/bin/sh
/bin/rsh
/bin/csh
/bin/ksh
/bin/rksh
/usr/bin/keysh
/usr/local/bin/bash

(does anyone use keysh anymore?)


Bill Hassell, sysadmin
Cory Thorson
New Member

Re: hp-ux B.11.11 U

I tried running bash it and I get the following error:

/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libiconv.sl
/usr/lib/dld.sl: No such file or directory

I searched your forum and found reference to this link
http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.10/
but it is a dead link.

Any suggestions?
Bill Hassell
Honored Contributor

Re: hp-ux B.11.11 U

> libiconv.sl

It sounds like you did not download all the dependencies. If you got the package from the Porting Centre, the dependent pacakges are: gettext libiconv termcap.

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


Bill Hassell, sysadmin
Torsten.
Acclaimed Contributor

Re: hp-ux B.11.11 U

I don't understand why all want to have bash ... anyway, you need this too:

http://hpux.connect.org.uk/hppd/hpux/Gnu/gettext-0.17/

http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.12/

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!   
James R. Ferguson
Acclaimed Contributor

Re: hp-ux B.11.11 U

Hi:

> Torsten: I don't understand why all want to have bash ...

I suspect it comes from those who feet also stand in Linux circles where the 'bash' is a standard. I *do* like its command history features better than our POSIX shell and I suspect too, that its devotees like the ability to use the arrow keys for command recall. A nice feature is the fact that a repeated command can be optioned to only be stored once ih the history buffer.

I find that the 'bash' shell has some very annoying differences, most notably in the way it treats 'echo' escapes [I add 'shopt -s xpg_echo' to scripts I port] and in the lack of ability to do:

# echo "a b c"|read X Y Z;echo ${Z}
c

...in HP 'sh' but *NOT* in 'bash' (yielding an empty ${Z} variable!).

Regards!

...JRF...