what am I missing here with that working dir?
DFTW
jckj33 at gmail.com
Mon Mar 18 19:33:25 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:
>>> On Friday, 15 March 2019 at 21:48:50 UTC, DFTW wrote:
>>>> What am I missing here?
>>>
>>> Maybe the terminal and your utility you run wkhtmltopdf from
>>> have different environment?
>>
>> 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
You're right, it's a linux issue. I did get rid of the binaries
I've had and compile from the source code on my own, just passing
the aditional LD_LIBRARY_PATH set to where the .so files were
located, it worked fine!
More information about the Digitalmars-d-learn
mailing list