sh 尝试编译Subsurface并将其捆绑为CentOS 6上的AppImage

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 尝试编译Subsurface并将其捆绑为CentOS 6上的AppImage相关的知识,希望对你有一定的参考价值。

Moved to https://github.com/probonopd/AppImages/blob/master/recipes/subsurface.centos6.sh
# THIS DOES NOT WORK, uSE THE ONE AT https://github.com/probonopd/AppImages/blob/master/recipes/subsurface.centos6.sh

# Cannot use CentOS-5.6-x86_64-LiveCD.iso since it uses squashfs3 which 
# cannot easily be mounted by later systems.
# So I have tried the following, but it seems like a lot of work is required
# to make Subsurface build on CentOS 5.

sudo su

mkdir -p /tmp/unionfs/rw
mkdir -p /tmp/union

apt-get -y install rinse
rinse --distribution  centos-5 --arch amd64 --directory /tmp/unionfs/root
# or
# mock -v -r epel-6-x86_64 --init

unionfs-fuse -o allow_other,use_ino,suid,dev,nonempty -ocow,chroot=/tmp/unionfs/,max_files=32768 /rw=RW:/root=RO /tmp/union

mount -t proc proc /tmp/union/proc
mount --bind /var/lib/dbus /tmp/union/var/lib/dbus
touch /tmp/union/etc/resolv.conf || echo ""
mount --bind /etc/resolv.conf /tmp/union/etc/resolv.conf
xhost local: >/dev/null 2>&1 # otherwise "cannot open display: :0.0"

# cat /etc/*release
# CentOS release 5.11 (Final)

yum -y install epel-release
yum -y install wget keyutils-libs git sudo tar gzip which p7zip make autoconf automake

# Fake sudo so that scripts using it can run
echo "" > /usr/bin/sudo

===

wget https://gist.githubusercontent.com/probonopd/46cca5eeb65e7560f43e/raw/b66e0314b7281121c1433b7e06cf8459810aad85/build-centos-6.5.sh --no-check-certificate
bash -ex build-centos-6.5.sh amd64

===

set +e
umount -l /tmp/union/var/lib/dbus 2>/dev/null
umount -l /tmp/union/etc/resolv.conf 2>/dev/null
umount -l /tmp/union/proc 2>/dev/null
umount -l /tmp/union/opt 2>/dev/null
umount -l /tmp/union 2>/dev/null
umount -l /tmp/unionfs/root 2>/dev/null
sudo killall unionfs-fuse 2>/dev/null

以上是关于sh 尝试编译Subsurface并将其捆绑为CentOS 6上的AppImage的主要内容,如果未能解决你的问题,请参考以下文章

无效的捆绑包。捆绑包 xxx 不支持最低操作系统版本 (2020)

sh 将stdin转换为其他语言并将其保存为输出路径为.json文件

SQL 到 SQL CE:如何读取 SQL 或 Access 数据库并将其写为 SQL CE 数据库?

如何将整个 Vue 应用程序捆绑为单个 UMD 模块

sh jenkins-cli.jar包装。自动下载jenkins-cli.jar并将其包装为命令。

如何在 Linux 中编译 ISPC 代码并将其与普通 cpp 文件链接?