如果我尝试使用PHP的shell_exec()函数执行Nodejs,则会返回错误

时间:2019-04-17 17:13:20

标签: javascript php node.js linux xampp

我正在将Arch Linux与XAMPP一起使用,并且尝试使用php执行nodejs脚本:

$ret = shell_exec($command .' 2>&1');
die($ret);

$ command包含JS-Skript的名称

我得到以下输出:

node: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node) 
node: /opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node) 
node: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node) 
node: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/libicui18n.so.64) 
node: /opt/lampp/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib/libicuuc.so.64) 

有人可以帮助我吗? gcc-libs已安装

GLIBCXX_3.4.9 not found when running ffmpeg from php in lampp server中那样将/opt/lampp/lib/libstdc++.so.6重命名为/opt/lampp/lib/libstdc++.so.6.orig无效

0 个答案:

没有答案