mindoc-org / mindoc

Golang实现的基于beego框架的接口在线文档管理系统
https://mindoc.com.cn/docs/mindochelp
Apache License 2.0
7.28k stars 1.9k forks source link

mindoc导出问题以及解决方案 #688

Open niaier opened 3 years ago

niaier commented 3 years ago
  1. 你当前使用的是哪个版本的 MinDoc(godoc_linux_amd64 version)? v2.0

  2. 你当前使用的是什么操作系统? centos7

  3. 你是如何操作的? 安装指定版本的calibre如3.48,高版本不支持 安装相关依赖

    yum -y install mesa-libGL.x86_64
    yum -y install ImageMagick
    yum install openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc gcc-c++ openssl-devel
    yum install Xcb
    yum -y install qt5*

首先下好3.48的包

部署软件包

mkdir -p /opt/calibre
rm -rf /opt/calibre/*
cd ~
tar -xf calibre-4.13.0-x86_64.txz -C /opt/calibre/

安装

/opt/calibre/calibre_postinstall

测试运行 calibre

qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, wayland-egl, wayland, wayland-xcomposite-egl, wayland-xcomposite-glx, xcb.

Aborted (core dumped)

如上报错则

echo "export QT_QPA_PLATFORM='offscreen'" | tee /etc/profile.d/QT_QPA.sh
source /etc/profile

查看版本 calibre --version ctrl+z退出

  1. 你期望得到什么结果?

  2. 当前遇到的是什么结果? 等待服务器打包文件,等待后成功获取文件 成功后日志 2021/06/09 10:13:24.322 [I] [BookResult.go:485] 文档转换完成:ENB

lovebetterworld commented 2 years ago

我........................我特么特么特么,最后无语了。

搞了N久,还是特么报错,绝了。 [E] [BookResult.go:498] 转换文件错误:开发文档 -> exit status 1

非常崩溃。