在沒有 root 權限的 rh6 linux 上安裝 git 版本的 gnu screen

在沒有 root 權限的 rh6 linux 上安裝 git 版本的 gnu screen

我如何在沒有root權限的centos上安裝git版本的gnu screen?

我試過這個:

mkdir ~/work
cd ~/work
git clone git://git.savannah.gnu.org/screen.git
cd screen/src

./autogen.sh


autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot'
autoheader: WARNING: and `config.h.top', to define templates for `config.h.in'
autoheader: WARNING: is deprecated and discouraged.
autoheader: 
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without
autoheader: WARNING: `acconfig.h':
autoheader: 
autoheader: WARNING:   AC_DEFINE([NEED_FUNC_MAIN], 1,
autoheader:             [Define if a function `main' is needed.])
autoheader: 
autoheader: WARNING: More sophisticated templates can also be produced, see the
autoheader: WARNING: documentation.

答案1

編譯 git 版本需要更新版本的 GNU Autoconf(並且可能需要更新版本的 GNU m4)。

在我的 Scientific Linux 6.1 範例中。

cd ~/work
wget http://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.bz2
tar xjf m4-1.4.16.tar.bz2
cd m4-1.4.16 && ./configure --prefix=$HOME/local && make && make install

cd ~/work
wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.68.tar.bz2
tar xjf autoconf-2.68.tar.bz2
cd autoconf-2.68 && ./configure --prefix=$HOME/local && make && make install

現在編譯 gnu 畫面。

cd ~/work/screen/src
./autogen.sh

./configure --prefix=$HOME/local \
            --enable-pam \
            --enable-colors256 \
            --enable-rxvt_osc \
            --enable-use-locale \
            --enable-telnet
make && make install

希望這可以幫助。

相關內容