阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Linux下安装calibre-ebook

126次阅读
没有评论

共计 1272 个字符,预计需要花费 4 分钟才能阅读完成。

官网地址:https://calibre-ebook.com/download

官网的说法:- You need GLIBC 2.17 or higher and libstdc++.so.6.0.17 (from gcc 4.7.0) or higher to run calibre

1、Linux 下安装(其他系统请自行前往官网安装)

1
2
3
4
5
6
7
--- 安装依赖包
# 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
# sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin

2、如果安装失败需要执行卸载操作

1
2
3
4
5
6
7
8
9
10
11
12
// 卸载 calibre
# sudo 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

3、安装 sip(如果使用过程中有报错再安装)

1
2
3
4
5
6
7
8
9
# wget https://excellmedia.dl.sourceforge.net/project/pyqt/sip/sip-4.16.8/sip-4.16.8.tar.gz
# tar -xzvf sip-4.16.8.tar.gz
# cd sip-4.16.8
# python configure.py
# make
# sudo make install
# ln -s /usr/local/Python2.7.9/bin/sip /usr/bin/sip
--- 终端查看 sip 版本
# sip -V

4、PyQt5 编译安装( 如果使用过程中有报错再安装)

1
2
3
4
5
6
# wget https://excellmedia.dl.sourceforge.net/project/pyqt/PyQt5/PyQt-5.2.1/PyQt-gpl-5.2.1.tar.gz
# tar -xzvf PyQt-gpl-5.2.1.tar.gz
# cd PyQt-gpl-5.2.1
# python configure.py --sip-incdir=/usr/local/Python2.9
# make -j4
# sudo make install

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-10-11发表,共计1272字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中