- Code: Select all
$cmdline="/usr/local/bin/dot -v -Tpng /opt/lampp/htdocs/sgi/tmp/dia/_tmp_49441291c2a0f43f3330a7bc70df2d4e -o /opt/lampp/htdocs/sgi/tmp/dia/_tmp_49441291c2a0f43f3330a7bc70df2d4e.png 2>/opt/lampp/htdocs/sgi/tmp/dia/salida";
shell_exec($cmdline);
I see that $LD_LIBRARY_PATH is set to (:/opt/lampp/lib::/opt/lampp/lib:) in xampp execution but it has no value on the terminal
The outputs of the command:
- Executing command from terminal (the image produced is fine): http://pastebin.com/JxarhhV0
- Executing command from PHP (the image produced is 0 bytes lenght): http://pastebin.com/wZgYHhHg
The issue is on the last line of the output:
- Code: Select all
/usr/local/bin/dot: symbol lookup error: /usr/lib/libcairo.so.2: undefined symbol: FT_Library_SetLcdFilter
This is the information about the platform I use
- OS: GNU/Linux Ubuntu 9.10
- Graphviz - DOT: dot - graphviz version 2.26.3 (20100126.1600). Lastest (compiled from source). But the problem occours as well with graphviz installed from repos
- Webserver: Xampp 1.7.1 (I need to use PHP 5.2.9)
- The user in apache is my system user, so I don't have permission issues
Thanks for your help