- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Bash Shell Installation Problem
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 07:35 PM
тАО03-16-2010 07:35 PM
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.
Here is some previous comments
*bash isn't in your PATH ;)
try "whereis bash" and run it with full path (or redefine you PATH variable*
Then my actions:
# whereis bash
bash: /usr/local/man/man1/bash.1
# bash /usr/local/man/man1/bash.1
sh: bash: not found.
Sorry, but I may ask some silly questions but I'm novice in UNIX OS (HP-UX)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 07:49 PM
тАО03-16-2010 07:49 PM
Solution> bash: /usr/local/man/man1/bash.1
If the "man" page was installed under
"/usr/local", then the "bash" program
probably should have been, too.
find /usr/local -name bash
If that fails, you might try:
find /opt -name bash
Normally, I'd expect it to be
"/usr/local/bin/bash", but I don't know who
built those depots, or how.
> *bash isn't in your PATH ;)
echo $PATH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 10:45 PM
тАО03-16-2010 10:45 PM
Re: Bash Shell Installation Problem
/usr/local/bin/bash
If that works, edit /etc/PATH to add /usr/local/bin to the default PATH setting of the system. Then logout & login to make the change effective in your session.
If the user types a command without using the full pathname, the system will try to find the command binary in the directories listed in the PATH environment variable. Most shells will also have some internal commands, which can be executed without loading anything from the disk.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 10:45 PM
тАО03-16-2010 10:45 PM
Re: Bash Shell Installation Problem
# whereis bash
bash: /usr/local/bin/bash /usr/local/man/man1/bash.1 /usr/local/share/man/man1/bash.1
Then again:
# bash /usr/local/bin/bash
sh: bash: not found.
# bash /usr/local/man/man1/bash.1
sh: bash: not found.
# bash /usr/local/share/man/man1/bash.1
sh: bash: not found.
# man bash
works fine (have the description of command)
The result of find:
# find /usr/local -name bash
/usr/local/bin/bash
/usr/local/doc/bash
/usr/local/var/adm/sw/products/bash
But anyway:
# bash
sh: bash: not found.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 11:11 PM
тАО03-16-2010 11:11 PM
Re: Bash Shell Installation Problem
You should edit /etc/PATH and add at the end:
:/usr/local/bin
Save the file and logout from you shell then log back in (Or you could source again your profile in order to prevent logoff)
Horia.
Horia.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 11:32 PM
тАО03-16-2010 11:32 PM
Re: Bash Shell Installation Problem
This is elementary shells 101. If you don't want to use an absolute path, you must set $PATH to where you want to find your software.
If you don't understand this, you are doomed to always specify the absolute path to bash.
# whereis bash
bash: /usr/local/bin/bash
The proper real shell command is:
whence bash
# bash /usr/local/bin/bash
sh: bash: not found.
This means you need to do:
/usr/local/bin/bash
>The result of find: /usr/local/bin/bash
As Steven said. You need to fix your $PATH, or /etc/PATH if you want to do it for everyone.
WARNING: Do NOT set root's shell to bash! You can invoke bash to switch shells.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 11:37 PM
тАО03-16-2010 11:37 PM
Re: Bash Shell Installation Problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 11:45 PM
тАО03-16-2010 11:45 PM
Re: Bash Shell Installation Problem
sh: bash: not found.
The above command is not what I meant.
Try instead:
# /usr/local/bin/bash
If that does not work, and still causes an error message like "sh: /usr/local/bin/bash: not found", then it might be because although /usr/local/bin/bash is there, one of the libraries required by it cannot be found.
Try running:
# ldd /usr/local/bin/bash
It should list all the libraries required by bash. If it says "not found" on any of them, that is the most likely cause for your problem.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2010 11:58 PM
тАО03-16-2010 11:58 PM
Re: Bash Shell Installation Problem
I've re-edited /etc/PATH and tried /usr/local/bin/bash - it works (realised my mistake)
# ldd /usr/local/bin/bash
libtermcap.so => /usr/local/lib/hpux32/libtermcap.so
libintl.so => /usr/local/lib/hpux32/libintl.so
libdl.so.1 => /usr/lib/hpux32/libdl.so.1
libc.so.1 => /usr/lib/hpux32/libc.so.1
libiconv.so => /usr/local/lib/hpux32/libiconv.so
libc.so.1 => /usr/lib/hpux32/libc.so.1
All libraries are OK.
Thanks for promt and comprehensive answers.