源码包安装环境的构建
环境:虚拟机VMware Workstation
操作系统:Red Hat enterprises linux 5.3
yum环境已经搭建完成;(yum安装工具可以很好的解决软件的依赖关系,所以建议使用)
1.先安装gcc,yum会根据依赖关系自动去查询所需的安装包,并自动全部安装(5个包);
[root@localhost /]# yum install gcc
Dependencies Resolved
=========================================================================================
Package Arch Version Repository Size
=========================================================================================
Installing:
gcc i386 4.1.2-44.el5 rhel-server1 5.2 M
Installing for dependencies:
glibc-devel i386 2.5-34 rhel-server1 2.0 M
glibc-headers i386 2.5-34 rhel-server1 598 k
kernel-headers i386 2.6.18-128.el5 rhel-server1 912 k
libgomp i386 4.3.2-7.el5 rhel-server1 67 k
Transaction Summary
=========================================================================================
Install 5 Package(s)
2.安装make,(系统已经自动安装过,所以无需安装)
[root@localhost /]# yum install make ---告知已安装;
3.安装automake;(3个安装包)
[root@localhost /]# yum install automake
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
automake noarch 1.9.6-2.1 rhel-server1 484 k
Installing for dependencies:
autoconf noarch 2.59-12 rhel-server1 646 k
imake i386 1.0.2-3 rhel-server1 318 k
Transaction Summary
===============================================================================
Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
4.安装libX11-devel;(提醒:libX后为数字“一”小心别搞错了;5个包)
[root@localhost rdesktop-1.7.1]# yum install libX11-devel
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
libX11-devel i386 1.0.3-9.el5 rhel-server1 665 k
Installing for dependencies:
libXau-devel i386 1.0.1-3.1 rhel-server1 11 k
libXdmcp-devel i386 1.0.1-2.1 rhel-server1 7.6 k
mesa-libGL-devel i386 6.5.1-7.7.el5 rhel-server1 465 k
xorg-x11-proto-devel i386 7.1-9.fc6 rhel-server1 247 k
Transaction Summary
===============================================================================
Install 5 Package(s)
5.安装openssl-devel;(7个安装包)
[root@localhost rdesktop-1.7.1]# yum install openssl-devel
Dependencies Resolved
===============================================================================
Package Arch Version Repository Size
===============================================================================
Installing:
openssl-devel i386 0.9.8e-7.el5 rhel-server1 1.8 M
Installing for dependencies:
e2fsprogs-devel i386 1.39-20.el5 rhel-server1 572 k
keyutils-libs-devel i386 1.2-1.el5 rhel-server1 27 k
krb5-devel i386 1.6.1-31.el5 rhel-server1 1.9 M
libselinux-devel i386 1.33.4-5.1.el5 rhel-server1 143 k
libsepol-devel i386 1.15.2-1.el5 rhel-server1 189 k
zlib-devel i386 1.2.3-3 rhel-server1 100 k
Transaction Summary
===============================================================================
Install 7 Package(s)
到此为止,环境构建完成;
安装源码包的过程:
tar -zxvf rdesktop-1.7.1.tar.gz 解压缩(该源码包为linux访问win下图形界面的包)
cd rdesktop-1.7.1 切换到解压后的文件夹目录
./configure
make
make install
只需执行三步即可完成安装;
终端下执行 #rdesktop -f -a 16 ip(解释:-f全屏显示)
在win7下开启允许远程桌面后,成功控制;(win系统必须给账户设置密码才可以;)