what am I missing here with that working dir?
Andre Pany
andre at s-e-a-p.de
Mon Mar 18 15:44:18 UTC 2019
On Monday, 18 March 2019 at 15:39:39 UTC, Andre Pany wrote:
> On Monday, 18 March 2019 at 15:23:46 UTC, DFTW wrote:
>> On Saturday, 16 March 2019 at 07:27:43 UTC, FreeSlave wrote:
>>> [...]
>>
>> I guessed so, I've tried set the env as well:
>>
>> enum env = ["LD_LIBRARY_PATH" :
>>
>> "/path/to/wkhtmltox-0.12.4_linux-generic-i386/wkhtmltox/lib"];
>> import std.process : execute, Config;
>> auto conv = execute([app, html,pdf],
>> env,
>> Config.newEnv,
>> size_t.max,
>> workingDir);
>> but that doesn't work either.
>
> My assumption is, the issue is not related to D or the working
> dir. It is more a linux thing. Maybe you also try function
> executeShell. Also did you have a look e.g here
>
> https://www.google.com/amp/s/www.cyberciti.biz/faq/debian-ubuntu-linux-wkhtmltopdf-error-while-loading-shared-libraries-libxrender-so-1/amp/
>
> Kind regards
> Andre
Also did you try, just this command?
auto conv = execute([app, html,pdf]);
As you use absolute paths, the working directory is not relevant.
Kind regards
Andre
More information about the Digitalmars-d-learn
mailing list