[billing_dx@bmcs1 screen-4.2.1]$ ./configure --prefix="/account/work/ymm/usr/local" #指定安装目录 this is screen version 4.2.1 …… Now please check the pathnames in the Makefile and in the user configuration section in config.h. Then type 'make' to make screen. Good luck. [billing_dx@bmcs1 screen-4.2.1]$ make #编译 CPP="gcc -E -DETCSCREENRC='"/account/work/ymm/usr/local/etc/screenrc"' -DSCREENENCODINGS='"/account/work/ymm/usr/local/share/screen/utf8encodings"'" srcdir=. sh ./osdef.sh AWK=gawk CC="gcc -g -O2 -D_GNU_SOURCE" srcdir=. sh ./comm.sh AWK=gawk srcdir=. sh ./term.sh …… gcc -o screen screen.o ansi.o fileio.o mark.o misc.o resize.o socket.o search.o tty.o term.o window.o utmp.o loadav.o putenv.o help.o termcap.o input.o attacher.o pty.o process.o display.o comm.o kmapdef.o acls.o braille.o braille_tsi.o logfile.o layer.o list_generic.o list_display.o list_window.o sched.o teln.o nethack.o encoding.o canvas.o layout.o viewport.o -lcurses -lelf -lcrypt [billing_dx@bmcs1 screen-4.2.1]$ make install #安装 ./etc/mkinstalldirs /account/work/ymm/usr/local/bin /account/work/ymm/usr/local/share/screen/utf8encodings …… termcap entry (./terminfo/screencap) should be installed manually. You may also want to install ./etc/etcscreenrc in /account/work/ymm/usr/local/etc/screenrc [billing_dx@bmcs1 screen-4.2.1]$ls /account/work/ymm/usr/local/bin/ #查看生成的文件 screen screen-4.2.1
-S sessionname When creating a new session, this option can be used to specify a meaningful name for the session. This name identifies the session for "screen -list" and "screen -r" actions. It substitutes the default [tty.host] suffix. #-S 创建一个新的session -x Attach to a not detached screen session. (Multi display mode). #-x连接指定的session
[billing_dx@bmcs1 screen-4.2.1]$man screen Cannot open the message catalog "man" for locale "utf-8" (NLSPATH="/usr/share/locale/%l/LC_MESSAGES/%N") No manual entry for screen [billing_dx@bmcs1 screen-4.2.1
[billing_dx@bmcs1 screen-4.2.1]$man man -M path Specify the list of directories to search for man pages. Separate the directories with colons. An empty list is the same as not specifying -M at all. See SEARCH PATH FOR MANUAL PAGES.
[billing_dx@bmcs1 screen-4.2.1]$ls /account/work/ymm/usr/local bin share [billing_dx@bmcs1 screen-4.2.1]$ls /account/work/ymm/usr/local/share/ info man screen [billing_dx@bmcs1 screen-4.2.1]$ls /account/work/ymm/usr/local/share/man man1 [billing_dx@bmcs1 screen-4.2.1]$
[billing_dx@bmcs1 screen-4.2.1]$man -M /account/work/ymm/usr/local/share/man screen SCREEN(1) SCREEN(1) NAME screen - screen manager with VT100/ANSI terminal emulation SYNOPSIS screen [ -options ] [ cmd [ args ] ] screen -r [[pid.]tty[.host]] screen -r sessionowner/[[pid.]tty[.host]] DESCRIPTION ……
[billing_dx@bmcs1 screen-4.2.1]$ll /etc/man.config -rw-r--r--. 1 root root 4940 Apr 3 2012 /etc/man.config [billing_dx@bmcs1 screen-4.2.1]$
[billing_dx@bmcs1 screen-4.2.1]$man screen Cannot open the message catalog "man" for locale "utf-8" (NLSPATH="/usr/share/locale/%l/LC_MESSAGES/%N") No manual entry for screen [billing_dx@bmcs1 screen-4.2.1]$ export PATH=$PATH:/account/work/ymm/usr/local/share/man [billing_dx@bmcs1 screen-4.2.1]$man screen SCREEN(1) SCREEN(1) NAME screen - screen manager with VT100/ANSI terminal emulation SYNOPSIS screen [ -options ] [ cmd [ args ] ] screen -r [[pid.]tty[.host]] screen -r sessionowner/[[pid.]tty[.host]] DESCRIPTION
开源软件之screen的第一次使用,布布扣,bubuko.com
原文地址:http://blog.csdn.net/yang15225094594/article/details/26472953