In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install the bash environment under HP-UX11.31". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to install the bash environment under HP-UX11.31".
Bash default:
(1) it has command history memory function, and you can use the arrow keys to switch commands.
(2) the command is entered in a file format, which is simple to advance and retreat, and accords with people's habits.
(3) you can use the TAB key to complete the command or directory
(4) bash is designed with human experience as the center.
Sh default:
(1) there is no historical memory function by default, but it can be achieved by configuring environment variables.
(2) the command is entered in vi mode, just like we use vi to edit, I is insert, x is delete, u undo, etc.
(3) there is no command completion function. You can use the ECS key to complete the directory.
(4) it is unique in functional design.
Getting used to the bash environment, let's install the bash environment on HP-UX to do a detailed installation, as follows:
1. Check the version of HP_UX
Root@rx2660 [/] uname-a
HP-UX rx2660 B.11.31 U ia64 1544395069 unlimited-user license
2. Download the corresponding software package
Download address of the software package:
Http://hpux.connect.org.uk/hppd/cgi-bin/search?package=on&description=on&term=bash
See a brief introduction to Run-time dependencies: gettext, libiconv, libunistring, readline, termcap are dependent packages for running in the bash environment, all of which are downloaded.
3. Upload to the / bash folder of the HP-UX operating system through FTP
Root@rx2660 [/ bash] ll
Total 111440
-rw-r- 1 root sys 10557440 Jan 11 02:29 bash-4.4.012-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 26501120 Jan 11 02:29 gettext-0.19.8.1-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 3450880 Jan 11 02:29 libiconv-1.15-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 10414080 Jan 11 02:29 libunistring-0.9.7-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 550089 Jan 11 02:59 make-4.2.1-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 3481600 Jan 11 02:29 readline-7.0.003-ia64_64-11.31.depot.gz
-rw-r- 1 root sys 2078720 Jan 11 02:29 termcap-1.3.1-ia64_64-11.31.depot.gz
4. Installation
Install in the following order. It should be noted that the installation path must be an absolute path, not a relative path. If it is a relative path, the following error message will appear:
Root@rx2660 [/ bash] swinstall-s make-4.2.1-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:00:39 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0011)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
ERROR: Could not contact host "make-4.2.1-ia64_64-11.31.depot.gz".
Make sure the hostname is correct and an absolute pathname is
Specified (beginning with "/").
* Source connection failed for
Make-4.2.1-ia64_64-11.31.depot.gz:/var/spool/sw.
WARNING: More information may be found in the daemon logfile on this
Target (default location is
Make-4.2.1-ia64_64-11.31.depot.gz:/var/adm/sw/swagentd.log).
* Selection had errors.
= 01On11 EAT END swinstall SESSION 98 03:00:39 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0011)
The correct installation method:
Root@rx2660 [/ bash] swinstall-s / bash/gettext-0.19.8.1-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 02:56:17 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0009)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/gettext-0.19.8.1-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Gettext.gettext-MAN,r=0.19.8.1,a=HP-UX_B.11.31_64
Gettext.gettext-RUN,r=0.19.8.1,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0009 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 02:56:43 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0009)
Root@rx2660 [/ bash] swinstall-s / bash/termcap-1.3.1-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:04:02 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0014)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/termcap-1.3.1-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Termcap.termcap-RUN,r=1.3.1,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0014 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 03:04:06 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0014)
Root@rx2660 [/ bash] swinstall-s / bash/libiconv-1.15-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:04:36 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0015)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/libiconv-1.15-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Libiconv.libiconv-MAN,r=1.15,a=HP-UX_B.11.31_64
Libiconv.libiconv-RUN,r=1.15,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0015 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 03:04:39 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0015)
Root@rx2660 [/ bash] swinstall-s / bash/libunistring-0.9.7-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:05:22 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0016)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/libunistring-0.9.7-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Libunistring.libunistring-INC,r=0.9.7,a=HP-UX_B.11.31_64
Libunistring.libunistring-RUN,r=0.9.7,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0016 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 03:05:27 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0016)
Root@rx2660 [/ bash] swinstall-s / bash/bash-4.4.012-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:06:23 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0017)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/bash-4.4.012-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Bash.bash-RUN,r=4.4.012,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0017 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 03:06:25 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0017)
With swinstall installation interface step: http://www.thegeekstuff.com/2010/06/install-remove-depot-packages/
5. Check the installation of the software package
Root@rx2660 [/ bash] swlist
# Initializing...
# Contacting target "rx2660"...
#
# Target: rx2660:/
#
…… (n-line records are omitted here)
#
# Product (s) not contained in a Bundle:
#
OnlineJFS B.11.31 Online features of the VxFS File System
Bash 4.4.012 bash
Gettext 0.19.8.1 gettext
Libiconv 1.15 libiconv
Libunistring 0.9.7 libunistring
Termcap 1.3.1 termcap
6. Modify environment variables
Root@rx2660 [/] chmod 744 .profile
Root@rx2660 [/] vi .profile
".profile" 50 lines, 975 characters
# @ (#) B.11.31_LR
# Default (example of) super-user's .profile file
# Do not put "." In PATH; it is a potential security breach.
# Do not put "/ usr/local/bin" in PATH; it is a potential security breach.
# Example assumes / home/root exists.
Set + u
PATH=/usr/sbin:$PATH:/sbin:/home/root
# Be sure that VUE does not invoke tty commands
If [! "$VUE"]; then
# Set up the terminal:
If ["$TERM" = ""]
Then
Eval `tset-s-Q-m':? hp' `
Else
Eval `tset-s-Q`
Fi
Stty erase "^ H" kill "^ U" intr "^ C" eof "^ D"
Stty hupcl ixon ixoff
Tabs
Echo
Echo "Value of TERM has been set to\" $TERM\ ".
Export TERM
".profile" 50 lines, 975 characters
# Set up shell environment:
Set-u # error if undefined variable.
Trap "echo 'logout root'" 0 # what to do on exit.
# Set up shell variables:
MAIL=/var/mail/root
# don't export, so only login shell checks.
Echo "WARNING: YOU ARE SUPERUSER!!\ n"
Umask 027
# add the following sentence
Export PATH=$PATH:/usr/local/bin
7. Exit the session and log in again to check whether bash is available
Root@rx2660 [/] bash
/ usr/lib/hpux64/dld.so: Unable to find library 'libhistory.so'.
Killed
Run bash and the above error message appears: due to the lack of dependent packages
Solution:
Root@rx2660 [/ bash] swinstall-s / bash/readline-7.0.003-ia64_64-11.31.depot.gz\ *
= 01ax 11max 98 03:21:11 EAT BEGIN swinstall SESSION
(non-interactive) (jobid=rx2660-0019)
* Session started for user "root@rx2660".
* Beginning Selection
* Target connection succeeded for "rx2660:/".
* Source:
/ bash/readline-7.0.003-ia64_64-11.31.depot.gz
* Targets: rx2660:/
* Software selections:
Readline.readline-INC,r=7.0.003,a=HP-UX_B.11.31_64
Readline.readline-RUN,r=7.0.003,a=HP-UX_B.11.31_64
* Selection succeeded.
* Beginning Analysis and Execution
* Session selections have been saved in the file
"/ .SW / sessions/swinstall.last".
* The analysis phase succeeded for "rx2660:/".
* The execution phase succeeded for "rx2660:/".
* Analysis and Execution succeeded.
NOTE: More information may be found in the agent logfile using the
Command "swjob-a log rx2660-0019 @ rx2660:/".
= 01On11 EAT END swinstall SESSION 98 03:21:15 EAT END swinstall SESSION (non-interactive)
(jobid=rx2660-0019)
Running bash again succeeds, so you can use the tab key to complete the instruction information
Root@rx2660 [/] bash
Bash-4.4#
Bash-4.4#
Thank you for reading, the above is the content of "how to install bash environment under HP-UX11.31". After the study of this article, I believe you have a deeper understanding of how to install bash environment under HP-UX11.31, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.