No changes were made to the system
需要给solaris 10 安装上screen 。安装包已经上传到/tmp/scre下。
root@db4 # pwd
/tmp/scre
root@db4 # gunzip screen-4.0.3-sol10-sparc-local.gz
root@db4 # pkgtrans screen-4.0.3-sol10-sparc-local . #注意这里有个小数点
root@db4 # pkgadd -d ./
The following packages are available:
1 SMCscrn screen
(sparc) 4.0.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: #按照默认回车即可
Processing package instance <SMCscrn> from </tmp/scre>
screen(sparc) 4.0.3
FSF
Current administration requires that a unique instance of the
<SMCscrn> package be created. However, the maximum number of
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.
装了几次,一直报上面的错误。装不上。
后来想了想,昨天第一次安装的时候用的包错了,用了screen-4.0.3-sol10-x86-local.gz 。
检查下包的信息:
root@db4 #
root@db4 #pkginfo |grep scree
application SMCscrn screen
GNOME2 SUNWgnome-a11y-gok GNOME On-screen Keyboard
............. ............... 省略部分
system SUNWxscreensaver-hacks-gl XScreenSaver OpenGL display mode modules
root@db4 #
root@db4 # pkginfo -l SMCscrn
PKGINST: SMCscrn
NAME: screen
CATEGORY: application
ARCH: x86 #注意这里是x86,感觉到不对了。
VERSION: 4.0.3
BASEDIR: /usr/local
VENDOR: FSF
PSTAMP: Steve Christensen
INSTDATE: May 21 2012 12:34
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 76 installed pathnames
4 shared pathnames
11 directories
7 executables
3503 blocks used (approx)
跟安装的top对比一下:
root@db4 #
root@db4 #
root@db4 #pkginfo |grep top
application SMCtop top
APOC SUNWapbas Sun Java(tm) Desktop System Configuration Shared Libraries
APOC SUNWapcj Sun Java(tm) Desktop System Configuration Adapter for Java Preferences
APOC SUNWapdc Sun Java(tm) Desktop System Configuration Agent Wizard
............. ............. 省略部分
JDS3 SUNWjdsrm Java Desktop System Upgrade Package Remove
JDS3 SUNWjdsver Version Info for Java Desktop System
system SUNWsadmi Solstice Enterprise Agents 1.0.3 Desktop Management Interface
application SUNWstaroffice-menuintegration Desktop integration for StarOffice (usr)
root@db4 #
root@db4 #
root@db4 #
root@db4 #pkginfo -l SMCtop
PKGINST: SMCtop
NAME: top
CATEGORY: application
ARCH: sparc #这个才是对的,因为CPU是sparc 的。
VERSION: 3.6.1
BASEDIR: /usr/local
VENDOR: LeFebvre et al
PSTAMP: Steve Christensen
INSTDATE: May 17 2012 14:15
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 17 installed pathnames
4 shared pathnames
7 directories
3 executables
466 blocks used (approx)
跟安装的top对比一下,看到果然是安错包的原因。
那么就好办了,把错误的包删除,安装正确的包。
root@db4 #
root@db4 # pkgrm -s /tmp/scre SMCscrn
The following package is currently spooled:
SMCscrn screen
(sparc) 4.0.3
Do you want to remove this package? [y,n,?,q] y
Removing spooled package instance <SMCscrn>
root@db4 #
root@db4 # pkginfo |grep scree
application SMCscrn screen
GNOME2 SUNWgnome-a11y-gok GNOME On-screen Keyboard
................ ..................省略部分
system SUNWxscreensaver-hacks XScreenSaver display mode modules
system SUNWxscreensaver-hacks-gl XScreenSaver OpenGL display mode modules
root@db4 # pkginfo -l SMCscrn
PKGINST: SMCscrn
NAME: screen
CATEGORY: application
ARCH: x86
VERSION: 4.0.3
BASEDIR: /usr/local
VENDOR: FSF
PSTAMP: Steve Christensen
INSTDATE: May 21 2012 12:34
EMAIL: steve@smc.vnet.net
STATUS: completely installed
FILES: 76 installed pathnames
4 shared pathnames
11 directories
7 executables
3503 blocks used (approx)
还得继续删。
root@db4 #
root@db4 # pkgrm SMCscrn
The following package is currently installed:
SMCscrn screen
(x86) 4.0.3
Do you want to remove this package? [y,n,?,q] y
## Removing installed package instance <SMCscrn>
## Verifying package <SMCscrn> dependencies in global zone
## Processing package information.
## Removing pathnames in class <none>
/usr/local/share/screen/utf8encodings/d6
................省略部分
/usr/local/doc <shared pathname not removed>
/usr/local/bin <shared pathname not removed>
## Updating system information.
Removal of <SMCscrn> was successful.
root@db4 #
root@db4 # pkginfo |grep scree
GNOME2 SUNWgnome-a11y-gok GNOME On-screen Keyboard
.............. ............
system SUNWxscreensaver-hacks XScreenSaver display mode modules
system SUNWxscreensaver-hacks-gl XScreenSaver OpenGL display mode modules
删除。
root@db4 #
root@db4 #pwd
/tmp/scre
root@db4 #ls
screen-4.0.3-sol10-sparc-local
root@db4 #
root@db4 # pkgtrans screen-4.0.3-sol10-sparc-local .
The following packages are available:
1 SMCscrn screen
(sparc) 4.0.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Transferring <SMCscrn> package instance
root@db4 # ls -al
total 3632
drwxr-xr-x 3 root root 268 May 22 17:37 .
drwxrwxrwt 11 root sys 1083 May 22 16:04 ..
drwxr-xr-x 3 root root 306 May 22 17:37 SMCscrn
-rwxr-xr-x 1 root root 1831424 May 22 15:57 screen-4.0.3-sol10-sparc-local
root@db4 #
root@db4 # pkgadd -d ./
The following packages are available:
1 SMCscrn screen
(sparc) 4.0.3
Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:
Processing package instance <SMCscrn> from </tmp/scre>
screen(sparc) 4.0.3
FSF
Using </usr/local> as the package base directory.
## Processing package information.
## Processing system information.
4 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.
Installing screen as <SMCscrn>
## Installing part 1 of 1.
/usr/local/bin/screen <symbolic link>
/usr/local/bin/screen-4.0.3
..............................
/usr/local/share/screen/utf8encodings/d6
[ verifying class <none> ]
Installation of <SMCscrn> was successful.
root@db4 #
root@db4 # which screen
no screen in /usr/sbin /usr/bin /usr/ccs/bin /usr/openwin/bin /usr/dt/bin /usr/platform/SUNW,SPARC-Enterprise/sbin /opt/sun/bin /usr/cluster/bin /usr/cluster/lib/sc /opt/SUNWexplo/bin /opt/SUNWsneep/bin
root@db4 #
root@db4 #
root@db4 # cd /usr/local/bin/
root@db4 # ls -al
total 768
drwxr-xr-x 4 bin bin 512 May 22 17:37 .
drwxr-xr-x 7 root root 512 May 22 17:37 ..
-rwxr-xr-x 1 ora10 root 2857 Aug 11 2009 coraenv
-rwxr-xr-x 1 ora10 root 2428 Aug 11 2009 dbhome
-rwxr-xr-x 1 ora10 root 2560 Aug 11 2009 oraenv
lrwxrwxrwx 1 root root 12 May 22 17:37 screen -> screen-4.0.3
-rwxr-xr-x 1 bin bin 359328 Sep 28 2009 screen-4.0.3
drwxr-xr-x 2 bin bin 512 Apr 29 2011 sparcv7
drwxr-xr-x 2 bin bin 512 Apr 29 2011 sparcv9
-rwxr-xr-x 1 bin bin 10044 May 28 2007 top
root@db4 #
root@db4 # cd /usr/bin/
root@db4 # ln -s /usr/local/bin/screen screen #做个软连接
root@db4 # ls -al scre*
lrwxrwxrwx 1 root root 21 May 22 17:38 screen -> /usr/local/bin/screen
-rwxr-xr-x 1 root bin 988 Dec 16 2004 screensaver-properties-capplet
root@db4 #
root@db4 #
root@db4 #
root@db4 # screen
Screen version 4.00.03 (FAU) 23-Oct-06
Copyright (c) 1993-2002 Juergen Weigert, Michael Schroeder
Copyright (c) 1987 Oliver Laumann
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see the file COPYING); if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
[Press Space or Return to end.]
root@db4 # exit
[screen is terminating]
root@db4 #
root@db4 #
root@db4 #
ok