在AIX中安裝gnu screen

denglt發表於2012-01-13
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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章