问题背景
环境:CentOS 7.5
本打算使用checkinstall来打包spice-server,奈何CentOS7.5下没法yum install checkinstall
遂去网上找rpm包安装,然后总是报error:
/xx/xx/libxxx.so is not a directory
怀疑是版本问题,然后去 git clone http://checkinstall.izto.org/checkinstall.git
手动装最新版本,结果还是报error:
Building file list… FAILED!
cat: /var/tmp/tmp.wHtVtWP0YZ/newfiles: No such file or directory
自带的log显示:
error: line 11: Unknown tag: Recommends:
查了半天也没解决,没办法了只能想别的办法
rpmbuild 和 dpkg-buildpackage的操作太麻烦,暂不考虑
查到个新玩意儿,FPM
看起来很好吃很好用的样子,哈哈
安装FPM
#安装rugy、gem:
yum -y install ruby rubygems ruby-devel
gem source -l
#添加国内aliyun的源:
gem sources -a http://mirrors.aliyun.com/rubygems/
#移除原生官方源:
gem sources --remove https://rubygems.org/
#更新源:
gem source -u
#安装fpm:
gem install fpm
编译spice-server并打包
获取、修改源码
wget https://www.spice-space.org/download/releases/spice-server/spice-0.14.1.tar.bz2
install deps && config && make,缺啥包你们自己补吧
yum install spice-protocol
yum install glib2 glib2-devel
yum install pixman pixman-devel
yum install celt051 celt051-devel
yum install openssl openssl-devel
yum install libjpeg-turbo libjpeg-turbo-devel
yum install opus opus-devel
yum install cyrus-sasl cyrus-sasl-devel lz4 lz4-devel usbredir*
./configure --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --enable-gtk-doc-pdf=no --enable-gtk-doc-html=no --enable-celt051