從原始碼安裝螢幕

從原始碼安裝螢幕

screen我嘗試從原始程式碼在 RedHat 上安裝該命令。但是當我運行時configure,它返回了

configure: error: !!! no tgetent - no screen

那麼有人知道如何修復它嗎?

答案1

你應該安裝套件ncurses-devel——應該透過sudo yum install ncurses-devel

答案2

這個答案非常適合需要從原始碼安裝 ncurses 的人,也在本機資料夾中:

  • 下載 ncurses:

    wget "https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.1.tar.gz"
    
  • 解壓縮並進入資料夾

    tar zvxf ncurses-6.1.tar.gz
    cd ncurses-6.1
    
  • 安裝:

    ./configure --prefix=$HOME/local  # or $HOME/.local
    make
    make install
    
  • 在對螢幕進行相同的操作之前,將其匯出為:

    export LDFLAGS='-L$HOME/local/lib'
    export CPPFLAGS='-I$HOME/local/include'
    
  • 螢幕下載並安裝:

    cd ~
    wget "https://ftp.gnu.org/gnu/screen/screen-4.8.0.tar.gz"
    tar xzvf screen-4.8.0.tar.gz
    mkdir $HOME/local/etc # for install below
    cd screen-4.8.0
    
    ./configure --prefix=$HOME/local
    # if you got tgetent error use real path instead of $HOME
    make install &&
    install -m 644 $HOME/screen-4.8.0/etc/etcscreenrc $HOME/local/etc/screenrc
    
    export PATH="$HOME/local/bin:$PATH"
    

相關:https://unix.stackexchange.com/questions/348184/can-not-find-screen-and-how-to-install-it-without-network-and-administration

來源:http://www.linuxfromscratch.org/blfs/view/svn/general/screen.html

答案3

libncurses5-dev在 Ubuntu 14.04 上安裝來解決這個問題 - 因為我收到了相同的錯誤訊息。

sudo rm -fR autom4te.cache在同一個目錄下運行,Makefile然後創建,然後一帆風順。

答案4

您需要安裝libncurses5-dev,然後再次嘗試配置 - >製作過程。

執行這個指令:

sudo apt-get install libncurses5-dev

相關內容