[Nix-dev] Problem when running some JVM librairies under NixOS

Daniel Peebles pumpkingod at gmail.com
Fri Aug 28 14:58:01 CEST 2015


Yeah, I'm pretty sure the dynamic linker is the issue here. Alois, you'll
probably have to unpack the jar, patchelf it to point at the proper one,
and then repack the jar. Or just have it the whole thing depend explicitly
on a proper Nix store path :)

On Fri, Aug 28, 2015 at 8:47 AM, <phreedom at yandex.ru> wrote:

> On Friday, August 28, 2015 14:26:22 Alois Cochard wrote:
>
> > I have just migrated my development workstation from ArchLinux to NixOS,
>
> > and I'm facing a small issues when developing my JVM applications.
>
> >
>
> > The problem manifest itself with two libraries (embedded mongodb, and
>
> > embedded protobuf compiler) which have in common one thing:
>
> > - They extract some file in the `/tmp` folder and start an executable
> from
>
> > the extracted files
>
> >
>
> > I won't show the detail of the exception here, but basically it seems
> like
>
> > the files get deleted (file not found) before being able to start the
>
> > external process.
>
> >
>
> > Everything was working fine on my previous distribution, and I'm trying
> to
>
> > understand what could trigger the problem? Is there anything specific
> when
>
> > it comes to dealing with the `/tmp` directory in Nix?
>
>
>
> /tmp is one of the few things we're yet to lay our hands on, so it works
> just like in any other distro. The most likely reason is you misunderstood
> the error message or the error message is broken. For example, when an
> executable file has a broken dynamic loader link, you get a weird "not
> found message" when the file you're executing actually exists.
>
>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20150828/ddd95131/attachment-0001.html 


More information about the nix-dev mailing list