cancel
Showing results for 
Search instead for 
Did you mean: 

BASH Shell Installation

SOLVED
Go to solution
Sarwan
Frequent Advisor

BASH Shell Installation

Hi Experts,

I am having some issues in installing bash shell.
I have a HP-UX box with version 11.23 PARISC.
I have downloaded bash shell depot from site http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.0.033/
Installation goes fine and once i finish this installation and type bash it throughs an error

*****************************************************************************************************
root#bash
/usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libintl.sl
/usr/lib/dld.sl: No such file or directory
Abort(coredump)

root#swlist -l bundle|grep -i shell
BashBundle B.11.23.20.02 Bourne-Again SHell
T1471AA A.04.40.007 HP-UX Secure Shell
*****************************************************************************************************

then I tried installing depot for lib from link http://hpux.connect.org.uk/hppd/hpux/Development/Libraries/libiconv-1.13.1/
even after doing that issue is the same.

I have also reffered to previous forum but most of the link in that are not working.

please find me a solution for this
23 REPLIES
Robert-Jan Goossens
Honored Contributor

Re: BASH Shell Installation

Hi Sarwan,

You will also need to install the Run-time dependencies gettext, libiconv and termcap.

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

Regards,
Robert-Jan
Sarwan
Frequent Advisor

Re: BASH Shell Installation

Hi Robert,

i tried installating runtime dependicies as you have mentioned but still it is failling.
I get the same error
Robert-Jan Goossens
Honored Contributor

Re: BASH Shell Installation

Hi,

And the libintl.sl library is in /usr/local/lib/ ?

# ll /usr/local/lib/libintl.sl

Anything strange in the permissions of the /usr/local and /usr/local/lib directories?

Regards,
Robert-Jan
Sarwan
Frequent Advisor

Re: BASH Shell Installation

I don't see anything as libintl.sl
that under /usr/local/lib

root#pwd
/usr/local/lib
root#ls
charset.alias libXpm.sl* libcharset.sl* libexpat.sl@ libiconv.a libtermcap.a
core libcharset.a libexpat.a libexpat.sl.1@ libiconv.la libtermcap.sl*
dq/ libcharset.la libexpat.la* libexpat.sl.1.0* libiconv.sl*
saber_lahlib
Occasional Advisor

Re: BASH Shell Installation

Hello,

You can use find for seach this lib:

#find / -name libintl.sl

ah check the permission for /usr/local/lib
Robert-Jan Goossens
Honored Contributor

Re: BASH Shell Installation

Hi again,

/usr/local/lib/libintl.sl is part of gettext

http://hpux.connect.org.uk/ftp/hpux/Gnu/gettext-0.17/gettext-0.17-ia64-11.23.depot.gz

And you did install gettext?
Sarwan
Frequent Advisor

Re: BASH Shell Installation

Yes i installed that
Steven E. Protter
Exalted Contributor

Re: BASH Shell Installation

Shalom,

The site offering the shell lists two things:

build time dependencies
run time dependencies.

All need to be satisfied.

Further, the dependencies have dependencies.

These too must be satisfied.

Best bet is to download them all and make a single software depot with swcopy.

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

Re: BASH Shell Installation

.

... all this work just for making the arrow keys working ... :-/


Each product page is listing *all* the dependencies, so just get them and install them all:

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!   

Re: BASH Shell Installation

Hi sarwan,

These are the versions of dependencies required for bash in 11.23.Pls install the following and see...
bash 4.0.024 bash
gettext 0.17 gettext
libiconv 1.13.1 libiconv
termcap 1.3.1 termcap


Cheers,
Ranoop
Viktor Balogh
Honored Contributor

Re: BASH Shell Installation

>> ... all this work just for making the arrow keys working

if the reason you want bash is the arrow keys working then instead of installing you can use the arrow keys in ksh this way:

1.) define these aliases:

$ cat -v .kshrc
alias __A='^P'
alias __B='^N'
alias __C='^F'
alias __D='^B'
alias __H='^A'
alias __P='^D'

2.) be sure you're in emacs mode, not in vi mode
(ok, i hate emacs mode, it just far more slower than vi mode, but if you want it...)
****
Unix operates with beer.
Sarwan
Frequent Advisor

Re: BASH Shell Installation

I am able to install bash, can anyone tell me how to put all the depots in a single depot.
For eg i have

root#cd /tmp/SHELL
root#ls -l
File1.depot
File2.depot
File3.depot
file4.depot

I want to convert all these depots into a single depot as FILE.depot under /tmp/SHELL/ so that i can use swinstall to install all at a time.
Please provide me the exact command to do that

Thanks in advance
Viktor Balogh
Honored Contributor

Re: BASH Shell Installation


>I want to convert all these depots into a >single depot as FILE.depot under /tmp/SHELL/
>Please provide me the exact command to do that

you can use swcopy for this task:

root# cd /tmp/SHELL
root# swcopy -x enforce_dependencies=false -s /tmp/SHELL/*.depot @ /path/to/depot
****
Unix operates with beer.
Sarwan
Frequent Advisor

Re: BASH Shell Installation

viktor,

When i try doing that it says

ERROR: Could not apply the software selection
"/tmp/SHELL/libiconv-1.13.1-hppa-11.23.depot"; it is
not available from depot or root

* Software selection failed
Dennis Handly
Acclaimed Contributor
Solution

Re: BASH Shell Installation

>ERROR: Could not apply the software selection

You need a for-loop:
for depot in /tmp/SHELL/*.depot; do
swcopy -x enforce_dependencies=false -s $depot \* @ /path/to/depot
done
Sarwan
Frequent Advisor

Re: BASH Shell Installation

Hi Dennis,

Thanks for your input. It worked fine. I gave a location directory. I tried to do swinstall and it was fine as well.
Is there any way that i can convert the directory into .depot format, so that it is not a directory instead it is .depot
Dennis Handly
Acclaimed Contributor

Re: BASH Shell Installation

>Is there any way that I can convert the directory into .depot format, so that it is not a directory instead it is .depot

swcopy creates directory depots. If you want a tape depot, you need to use swpackage:
swpackage -s /path/to/dir-depot -x media_type=tape @ tape.depot

http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1381649
Dauren
Occasional Advisor

Re: BASH Shell Installation

Hi I've HP-UX 11.23 IA-64

I've installed:

- bash-4.0.033-ia64-11.23.depot
- gettext-0.17-ia64-11.23.depot
- libiconv-1.13.1-ia64-11.23.depot
- termcap-1.3.1-ia64-11.23.depot

But the result is:
# bash
sh: bash: not found.

Who knows how to solve this problem?
Pete Randall
Outstanding Contributor

Re: BASH Shell Installation

Who knows how to open their own question rather than tagging on to someone else's where they can't even properly award responses by assigning points?


Pete

Pete
Viktor Balogh
Honored Contributor

Re: BASH Shell Installation

Dauren, welcome on board!

firstly:

http://forums13.itrc.hp.com/service/forums/helptips.do?#7

and a hint regarding your question:

bash isn't in your PATH ;)
try "whereis bash" and run it with full path (or redefine you PATH variable)

...and next time please open a new thread to your question.
****
Unix operates with beer.
Dauren
Occasional Advisor

Re: BASH Shell Installation

Here is the result:

# whereis bash
bash: /usr/local/man/man1/bash.1

# bash /usr/local/man/man1/bash.1
sh: bash: not found.

Why should I open a new thread? I think my question is relevant to this thread.

PS: I'm a novice both in this forum and UNIX OS (HP-UX).
Johnson Punniyalingam
Honored Contributor

Re: BASH Shell Installation

>>>>>Why should I open a new thread? I think my question is relevant to this thread.<<<<

Good Questions, to be honest with you
Answers :- Because "we not paid for what we are posting suggestion here.we have been awarded by points only,


so based on our generosity to help each other and share knowledge among all people who working has technical professionals.

so if you are hacking into some one thread and posting looks like your are contributing to Authors thread, that doesn't make sense to all of us in general

Open your Own thread. and assign points for people who help suggestion & resolve your problem,doubts. It hurt One, But it encourage allot.

Check below links will explains how to assign points

http://forums1.itrc.hp.com/service/forums/helptips.do?#33


PS: I'm a novice both in this forum and UNIX OS (HP-UX).<<<<<

Congrats, Best of Luck !!!

Problems are common to all, but attitude makes the difference
Steven Schweda
Honored Contributor

Re: BASH Shell Installation

> Why should I open a new thread? I think my
> question is relevant to this thread.

Why would you think that? The original
complaint in this thread was:

> root#bash
> /usr/lib/dld.sl: Can't open shared library: /usr/local/lib/libintl.sl
> /usr/lib/dld.sl: No such file or directory
> Abort(coredump)

Your complaint was:

> # bash
> sh: bash: not found.

Both mention "bash", but that's about the
only thing they share.

If this thread was so relevant, then it
probably contains your answer. Did you find
it? If not, then you should start your own
thread, where you should describe what you
did, on your system.