简体   繁体   English

如何使用源代码在CentOS 7中正确安装spice-server?

[英]How to install spice-server correctly in CentOS 7 with the source codes?

I met a problem when I try to install QEMU with spice support. 尝试安装具有香料支持的QEMU时遇到问题。

It works well if I install spice-server with yum . 如果我用yum安装spice-server,它将很好地工作。 In this case when I type ./configure --enable-spice in root directory of QEMU's source codes, the spice-server can be detected correctly. 在这种情况下,当我在QEMU源代码的根目录中键入./configure --enable-spice ,可以正确检测到spice-server。

But now I want to install spice-server by compiling its source codes, cause I have some work to do with it. 但是现在我想通过编译spice-server的源代码来安装它,因为我需要做一些工作。

I tried ./configure; make; make install 我尝试过./configure; make; make install ./configure; make; make install ./configure; make; make install and ./configure --prefix=/usr; make; make install ./configure; make; make install./configure --prefix=/usr; make; make install ./configure --prefix=/usr; make; make install ./configure --prefix=/usr; make; make install . ./configure --prefix=/usr; make; make install QEMU couldn't find spice-server installed in neither way. QEMU找不到以两种方式都未安装的spice-server。 I just got 我刚得到

ERROR: User requested feature spice configure was not able to find it. 错误:用户请求的功能香料配置无法找到它。 Install spice-server(>=0.12.0) and spice-protocol(>=0.12.3) devel 安装spice-server(> = 0.12.0)和spice-protocol(> = 0.12.3)开发

returned. 回来。

I don't have this problem in ubuntu, I don't know how to fix it in a CentOS server. 我在ubuntu中没有这个问题,我也不知道如何在CentOS服务器中修复它。 Does anybody have a solution? 有人有解决方案吗?

I guess you are trying to build qemu with spice from source code. 我猜您正在尝试使用源代码中的香料构建qemu。

That involves many dependences and configurations. 这涉及许多依赖性和配置。 Especially while you have system-installed 'qemu' running. 特别是在系统安装的“ qemu”运行时。

Maybe https://github.com/grizzlybears/sqb can help you. 也许https://github.com/grizzlybears/sqb可以为您提供帮助。

It is a set of helper scripts to automatically do the follwing: 它是一组自动执行以下帮助程序的脚本:

  1. Install build depend. 安装构建依赖。
  2. Get code from offical repository 从官方存储库获取代码
  3. Get 'fedora base cloud image' as test image 获取“ fedora基础云映像”作为测试映像
  4. Autogen/configure/build qemu with spice in local dir, touch nothing in system 5.Run test VM using our hand-made 'qemu' 使用本地目录中的香料自动生成/配置/构建qemu,在系统5中保持不变。使用我们手工制作的“ qemu”运行测试VM
  5. Open spice console to the VM, if you have 'spice-gtk-tools' installed 如果已安装“ spice-gtk-tools”,则打开虚拟机的spice控制台

您应该首先手动克隆spice-protocol并执行./autogen.sh && ./configure &&make &&make install并导出PKG_CONFIG_PATH export PKG_CONFIG_PATH={your pkg config path}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM