[Nix-dev] "Error loading shared libraries" in a temporary tool

Damien Cassou damien at cassou.me
Wed Jul 27 11:19:11 CEST 2016


Vladimír Čunát <vcunat at gmail.com> writes:

> [ Unknown signature status ]
> On 07/25/2016 10:48 AM, Damien Cassou wrote:
>> The vtk compilation chain starts by building a library
>> (libvtksys-7.0.so.1) and a tool (vtkHashSource) that depends on this
>> library. Later, the compilation chain uses the tool but this results in
>> an error:
>
> I typically work around such issues by setting LD_LIBRARY_PATH in the
> builder (that only affects environment during the build).

Thanks. I tried that but nothing changed:

  preBuild = ''
    LD_LIBRARY_PATH="$(pwd)/lib:$LD_LIBRARY_PATH";
    echo =============================================================
    echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
    echo =============================================================
  '';

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill


More information about the nix-dev mailing list