screen-4.0.3.tar.gz的安装方法
1) gunzip screen-4.0.3.tar.gz
2) tar -xvf screen-4.0.3.tar
3)解压目录下 ./configure --prefix=/opt/screen
this is screen version 4.0.3
checking for gcc... no
checking for cc... cc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether cc accepts -g... yes
checking for cc option to accept ANSI C... none needed
checking how to run the C preprocessor... cc -E
。。。
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.
4)make
CPP="cc -E " srcdir=. sh ./osdef.sh
AWK=nawk CC="cc -O" srcdir=. sh ./comm.sh
AWK=nawk srcdir=. sh ./term.sh
cc -c -I. -I. -O screen.c
1500-030: (I) INFORMATION: main: Additional optimization may be attained by recompiling and specifying MAXMEM option
with a value greater than 8192.
cc -c -I. -I. -O ansi.c
......
5)make install
./etc/mkinstalldirs /opt/screen/bin `sed < config.h -n -e '/define SCREENENCODINGS/s/^.*"\([^"]*\)"/\1/p'`
mkdir /opt/screen/bin
mkdir /opt/screen/share
mkdir /opt/screen/share/screen
mkdir /opt/screen/share/screen/utf8encodings
cd doc ; make installdirs
./../etc/mkinstalldirs /opt/screen/man/man1 /opt/screen/info
mkdir /opt/screen/man
mkdir /opt/screen/man/man1
mkdir /opt/screen/info
6)ln -s /opt/screen/bin/screen /usr/bin/screen
编译安装软件的方法;
大多以tar.gz 和tar.bz2打包软件,大多是通过 ./configure ;make ;make install 来安装的;有的软件是直接make;make install ; 我
们可以通过./configure --help 来查看配置软件的功能;大多软件是提供./configure 配置软件的功能的;少数的也没有,如果没有的就不
用./configure ;直接make;make install 就行了; ./configure 比较重要的一个参数是 --prefix ,用--prefix 参数,我们可以指定软件
安装目录;当我们不需要这个软件时,直接删除软件的目录就行了;
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/195110/viewspace-714900/
,如需转载,请注明出处,否则将追究法律责任。