在AIX中安装gnu screen

http://ftp.gnu.org/gnu/screen/下载最新源代码
 screen-4.0.3.tar.gz
http://www.perzl.org/aix/index.php?n=Main.Screen
下载AIX上安装的rpm包
 
 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博客 ” ,链接:http://blog.itpub.net/195110/viewspace-714900/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/195110/viewspace-714900/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值