Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem to execute from PHP (Ubuntu, XAMPP) #353

Closed
janmottl opened this issue Aug 11, 2016 · 1 comment
Closed

Problem to execute from PHP (Ubuntu, XAMPP) #353

janmottl opened this issue Aug 11, 2016 · 1 comment

Comments

@janmottl
Copy link

Hi @dagwieers,
thanks for your tool. I use it on Win10 (OpenOffice) and it works fine.

I am newbee in Unix. My environment is:

  • Ubuntu 16.04 LTS
  • LibreOffice Version: 5.1.4.2
  • XAMPP for Linux 5.6.20

Following command runs fine when I start it from terminal:
UNO_PATH=/usr/lib/libreoffice/program /opt/lampp/htdocs/tbstest/unoconv -f pdf /opt/lampp/htdocs/tbstest/test-result.ods

But I get exception when I start it from php (XAMPP):
Fatal error: Uncaught exception 'Exception' with message '"failed to load pyuno: '/opt/lampp/lib/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by /usr/lib/libreoffice/program/libpyuno.so)'; Aborted (core dumped)"' in /opt/lampp/htdocs/tbstest/test.php:83 Stack trace: #0 {main} thrown in /opt/lampp/htdocs/tbstest/test.php on line 83

Do you have an idea where is the problem? Thanks

Jan


@janmottl
Copy link
Author

Calling as sudo resolved this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant