编译安装rdesktop-1.9.0 – 业余语言练习

编译安装rdesktop-1.9.0

wget https://github.com/rdesktop/rdesktop/releases/download/v1.9.0/rdesktop-1.9.0.tar.gz #下载tar包
tar -xzvf rdesktop-1.9.0.tar.gz #解压
cd rdesktop-1.9.0
./configure –prefix=/usr/local/rdesktop #编译文件到/usr/local/rdesktop位置,也就是安装位置
make
make install #编译安装
./rdesktop #如果安装成功,会出现下面的样子
rdesktop: A Remote Desktop Protocol client.
Version 1.9.0. Copyright (C) 1999–2016 Matthew Chapman et al.
See http://www.rdesktop.org/ for more information.
此时Rdesktop的安装目录在/usr/local/rdesktop,而运行目录则在rdesktop-1.9.0,
  如果需要卸载,则直接删除/usr/local/rdesktop并在rdesktop-1.9.0目录中执行make uninstall即可完整卸载。
每次轮到我编译东西就出毛病,还专门网上找不到资料,这次碰到个debug,基本上能遇到的问题就下面这么多。
问题:configure: error: no acceptable C compiler found in $PATH
原因以及解决方法:没有安装合适的GCC编译器,执行sudo yum install gcc-c++ 即可。
问题:ERROR: Could not find X Window System headers/libraries.
原因以及解决方法:没有安装libX11-devel软件包,执行yum install libX11-devel -y即可。
问题:CredSSP support requires GSSAPI, install the dependency or 
  disable the feature using --disable-credssp
此问题未解决,因为我实在是没找到关于GSSAPI怎么配置依赖,所以无奈之下执行了--disable-credssp。
问题:rdesktop requires libXcursor, install the dependency
原因以及解决方法:没有安装libXcursor、libXcursor-devel、libXrandr-devel软件包,
  执行yum install libXcursor libXcursor-devel libXrandr-devel -y 即可。
问题:rdesktop requires libtasn1. Please install the dependency
原因以及解决方法:没有安装libtasn1-devel软件包,执行yum install libtasn1-devel即可
问题:rdesktop requires Nettle. Please install the dependency
原因以及解决方法:没有安装nettle-devel软件包,执行yum install nettle-devel -y
问题:rdesktop requires GnuTLS. Please install the dependency
原因以及解决方法:没有安装gnutls-devel软件包,执行yum install gnutls-devel
问题:SmartCard support requires PCSC, install the dependency or 
  disable the feature using --disable-smartcard.
原因以及解决方法:没有安装pcsc-lite-devel软件包,执行yum install pcsc-lite-devel
Published
Categorized as linux

Leave a comment

Your email address will not be published. Required fields are marked *