doubi6215 2013-12-22 11:49
浏览 124

php shell命令错误GLIBCXX_3.4.9未找到

Im trying to execute shell command from php to convert files to pdf but i get this error.
Could someone explain me in details how to fix it?
Im not so good in linux(
and also if i execute command straight through terminal everything works.

    /usr/lib/libreoffice/program/oosplash: /opt/lampp/lib/libstdc++.so.6:
    version `GLIBCXX_3.4.9' not found 
    (required by /usr/lib/libreoffice/program/../ure-link/lib/libuno_sal.so.3)
  • 写回答

1条回答 默认 最新

  • drqja5919276 2013-12-30 21:25
    关注

    version `GLIBCXX_3.4.9' not found

    The problem is that in this environment, you are using /opt/lampp/lib/libstdc++.so.6 which is too old, and does not define the `GLIBCXX_3.4.9' version.

    if i execute command straight through terminal everything works.

    In that case, you are likely using /usr/lib/libstdc++.so.6, which is (apparently) new enough.

    Possible solutions:

    1. Remove /opt/lampp/lib/libstdc++.so.6 and use /usr/lib/libstdc++.so.6 everywhere (libstdc++.so.6 is supposed to be backwards-compatible, so in theory there should be no reason to use older version).
    2. Un-set LD_LIBRARY_PATH in PHP before invoking oosplash, so it uses the newer library.
    评论

报告相同问题?

悬赏问题

  • ¥15 Source insight编写代码后使用CCS5.2版本import之后,代码跳到注释行里面
  • ¥50 NT4.0系统 STOP:0X0000007B
  • ¥15 想问一下stata17中这段代码哪里有问题呀
  • ¥15 flink cdc无法实时同步mysql数据
  • ¥100 有人会搭建GPT-J-6B框架吗?有偿
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组