solaris 8 sparc,bind9.4.1pl1升级到9.4.2的问题
solaris 8 sparc,bind9.4.1pl1升级到9.4.2,
“ pkgadd -d bind-9.4.2-sol8-sparc-local
The following packages are available:
1 SMCbind bind
(sparc) 9.4.2
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance
bind
(sparc) 9.4.2
Current administration requires that a unique instance of the
instances of the package which may be supported at one time on the
same system has already been met.
No changes were made to the system.”
不能安装这个包?如何解决?
Q:例如我安装了gcc-3.4.2-sol9-sparc-local这个包,那用pkgrm怎么卸载?
A:先找出与GCC相关的包
pkginfo | grep -i gcc
然后删除,例如
pkgrm SFWgcc34 SFWgcc34l
”
大概如此吧,还没试,有些麻烦,别出问题才好。
# pkginfo |grep -i bind
application SMCbind bind
有这个结果。
从9.4.1pl1升级到9.4.2就是这个步骤,已升级完成:
1:pkginfo | grep -i bind
application SMCbind bind
2:停止当前bind 9.4.1pl1的进程
3:pkgrm SMCbind
4:pkgadd -d bind-9.4.2-sol8-sparc-local
pkgadd -d gcc-3.4.6-sol8-sparc-local
The following packages are available:
1 SMCgcc gcc
(sparc) 3.4.6
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance
gcc
(sparc) 3.4.6
FSF
Using as the package base directory.
## Processing package information.
## Processing system information.
8 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
The following files are already installed on the system and are being
used by another package:
/usr/local/lib/libiberty.a
Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.
Installing gcc as
# ls -l
total 544130
-rw-r--r-- 1 root other 35445248 Jul 24 10:13 bind-9.5.0p1-sol8-sparc-local
-rw-r--r-- 1 root other 76079104 Jun 9 2003 bind.tar
-rw-r--r-- 1 root other 88840192 Jul 24 10:28 gcc-3.4.6-sol8-sparc-local
-rw-r--r-- 1 root other 4236800 Jul 24 13:01 libgcc-3.4.6-sol8-sparc-local
-rw-r--r-- 1 root other 2562560 Jul 24 10:19 libiconv-1.11-sol8-sparc-local
-rw-r--r-- 1 root other 505856 Jul 24 10:23 libintl-3.4.0-sol8-sparc-local
-rw-r--r-- 1 root other 21907968 Jul 24 10:24 libxml2-2.6.31-sol8-sparc-local
-rw-r--r-- 1 root other 11517440 Jul 24 10:17 openssl-0.9.8h-sol8-sparc-local
-rw-r--r-- 1 root other 425472 Jul 24 10:24 zip-2.32-sol8-sparc-local
-rw-r--r-- 1 root other 1497088 Jul 24 13:58 zlib-1.2.3-sol8-sparc-local
运行named出错
# ./named
ld.so.1: ./named: fatal: libz.so: open failed: No such file or directory
Killed
# find / -name ld.so.1
/usr/lib/sparcv9/ld.so.1
/usr/lib/ld.so.1
/etc/lib/ld.so.1
查看
/usr/local/sbin
# ls
dnssec-keygen named named-compilezone
dnssec-signzone named-checkconf rndc
lwresd named-checkzone rndc-confgen
# ldd named
libcrypto.so.0.9.8 => /usr/local/ssl/lib/libcrypto.so.0.9.8
libnsl.so.1 => /usr/lib/libnsl.so.1
libsocket.so.1 => /usr/lib/libsocket.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libthread.so.1 => /usr/lib/libthread.so.1
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libz.so => (file not found)
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libm.so.1 => /usr/lib/libm.so.1
libc.so.1 => /usr/lib/libc.so.1
libdl.so.1 => /usr/lib/libdl.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libmp.so.2 => /usr/lib/libmp.so.2
libz.so => (file not found)
/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
在找到的libz发现还是比较旧,再到www.sunfreeware.com下载
wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/8/zlib-1.2.3-sol8-sparc-local.gz
下载后安装
# gunzip zlib-1.2.3-sol8-sparc-local.gz
# pkgadd -d zlib-1.2.3-sol8-sparc-local
The following packages are available:
1 SMCzlib zlib
(sparc) 1.2.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance
zlib
(sparc) 1.2.3
Jean-loup Gailly
Using as the package base directory.
## Processing package information.
## Processing system information.
。。。
/usr/local/lib/libz.a
/usr/local/lib/libz.so
/usr/local/lib/libz.so.1
/usr/local/lib/libz.so.1.2.3
/usr/local/man/man3/zlib.3
[ verifying class
Installation of
安装后再次测试可用了
在/usr/local/sbin
# ./rndc-confgen
# Start of rndc.conf
key "rndc-key" {
algorithm hmac-md5;
secret "dfggy7J04Eh/q5sSqqm3ww==";
};
options {
default-key "rndc-key";
default-server 127.0.0.1;
default-port 953;
};
# End of rndc.conf
# Use with the following in named.conf, adjusting the allow list as needed:
# key "rndc-key" {
# algorithm hmac-md5;
# secret "dfggy7J04Eh/q5sSqqm3ww==";
# };
#
# controls {
# inet 127.0.0.1 port 953
# allow { 127.0.0.1; } keys { "rndc-key"; };
# };
# End of named.conf