0

When I try below command inside a controller it gives me this error.
$process = new Process(['usr/local/bin/pdf2htmlEX --version']); I also Tried $output = exec('echo "PASSWORD" | sudo -S "usr/local/bin/pdf2htmlEX --version" 2> /dev/null'); Creating Symlink and chmod 777 doesn't help at all.

Saad
  • 11
  • 1
    At a guess, you should be passing the path and the --version argument as separate elements, ['usr/local/bin/pdf2htmlEX', '--version']. Dependant on the working directory, ou may also need to make the path absolute i.e. /usr/local rather than usr/local. – steeldriver Sep 08 '22 at 12:49
  • opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.20' not found. Tried this but no luck so far . "https://stackoverflow.com/questions/44773296/libstdc-so-6-version-glibcxx-3-4-20-not-found" – Saad Sep 09 '22 at 10:45
  • So I see you have asked a new question for that – steeldriver Sep 09 '22 at 11:00

0 Answers0