在centos7下spice代码编译
目标还是两个spice的包:spice-protocol和spice-gtk
rpm -q xxx(查询 已安装的rpm包)
rpm -e –nodeps xxx
由于yum安装和移除都会处理依赖关系,所以移除原有老版本的spice包的时候,需要用rpm
rpm -e –nodeps xxx
配置的时候,需要增加几个选项,适应centos的风格
$ ./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64
spice-protocol spice spice-gtk都是从git上clone来的。
1)安装virt-manager
yum install virt-manager
相关的包会安装好,而且可以运行
2)spice-protocol
rpm -e –nodeps spice-protocol
./autogen
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64
make
make install
3)spice
rpm -e –nodeps spice-server-0.12.4-20.el7_3.x86_64
yum install glib2-devel pixman-devel celt051-devel openssl-devel libjpeg-turbo-devel cyrus-sasl-devel alsa-lib-devel libcacard-devel
yum install gstreamer1 gstreamer1-plugins-base-devel gstreamer1-plugins-bad-free gstreamer1-plugins-bad-free-devel gstreamer1-plugins-base-tools
yum install epel-release
yum install lz4 lz4-devel
yum install gstream1-plugins-ugly gstream1-libav
(然后加nux的repo,直接安装gstream1-plugins-ugly和gstream1-libav)
./configure –prefix=/usr –localstatedir=/var –sysconfdir=/etc –libdir=/usr/lib64
make
make install
(git clone下来的spice编译出错,还是下载0.13.3)
不建议编译代码,要涉及很多codec。
(
另外在centos中,没有gstreame