https://www.calibre-ebook.com/download_linux
# 安装依赖包
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make xdg-utils wget qt4 qt4-devel qt4-x11 libpcap-devel xz-devel -y
cd /usr/bin
ln -s qmake-qt4 qmake
qmake -v
cd /opt
# 安装GLIBC_2.19和libstdc++.so
https://abc.htmltoo.com/thread-45860.htm
# 安装calibre3 https://download.calibre-ebook.com/
cd /opt
mkdir -p /opt/calibre
wget https://download.calibre-ebook.com/3.48.0/calibre-3.48.0-x86_64.txz
tar xvf calibre-3.48.0-x86_64.txz -C /opt/calibre
/opt/calibre/calibre_postinstall
rm -rf /tmp/calibre-installer-cache
============================
# 4.11.2 异常
wget https://download.calibre-ebook.com/4.11.2/calibre-4.11.2-x86_64.txz
tar xvf calibre-4.11.2-x86_64.txz -C /opt/calibre
ebook-convert --version
echo "Hello BookStack" > test.txt
ebook-convert test.txt test.pdf
============================
============================
wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()";
# Run "calibre" to start calibre
calibre
=========异常, 升级, 重装, 记得清理===================
# 如果安装失败需要执行卸载操作
# 卸载calibre
rm -rf /opt/calibre/*
# 清除失效的软连接
cd /usr/bin/
rm -rf ./calibre*
rm -rf ./ebook*
rm -rf fetch-ebook-metadata
rm -rf lrf2lrs
rm -rf lrfviewer
rm -rf lrs2lrf
rm -rf markdown-calibre
rm -rf web2disk
cd /opt
# 查看版本
ebook-convert --version
# 卸载
/usr/bin/calibre-uninstall