【问题标题】:EPUB to PDF conversion using calibre giving errorEPUB 到 PDF 转换使用 calibre 给出错误
【发布时间】:2012-11-28 06:53:15
【问题描述】:

以下是我在使用代码时遇到的错误

$output = shell_exec("/usr/bin/ebook-convert test.epub mech4eck.pdf");
<br>echo $output;

我只需要使用 PHP 来运行它,所以我正在尝试执行 shell 命令。我正在使用 Ubuntu 12。

没有使用临时目录而不是 /opt/lampp/lib/libgcc_s.so.1 对 /root/.config/calibre 进行写入访问:未找到版本 GCC_4.2.0' not found (required by /usr/lib/i386-linux-gnu/libstdc++.so.6) /opt/lampp/lib/libgcc_s.so.1: versionGCC_4.2.0'(/usr/lib/ 需要i386-linux-gnu/libstdc++.so.6) 1% 正在将输入转换为 HTML... InputFormatPlugin: EPUB Input running on /opt/lampp/htdocs/test.epub 找到 HTML 封面内容/calibre_title_page.html 正在解析所有内容.. . 34% 在电子书上运行转换...合并用户指定的元数据...检测结构...扁平化 CSS 和重新映射字体大小...源基本字体大小为 12.00000pt 删除假边距...清理清单...从清单中修剪未使用的文件...创建 PDF 输出... 67% 创建 PDF 输出

【问题讨论】:

    标签: php linux cakephp-1.3 calibre


    【解决方案1】:

    我知道这里没有任何帮助,但我自己想通了。

    这就是诀窍

    Rename the file /opt/lampp/lib/libgcc_s.so.1 to /opt/lampp/lib/libgcc_s.so.1.bak
    
    Taddda it works :)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-03-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-12-01
      相关资源
      最近更新 更多