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

phreedom at yandex.ru phreedom at yandex.ru
Fri Aug 28 15:42:33 CEST 2015


On Friday, August 28, 2015 08:58:01 Daniel Peebles wrote:
> 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 :)

In fact, setting LD_LIBRARY_PATH may be easier than this, or you could build the jar from 
source.

> 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/bbc832c1/attachment-0001.html 


More information about the nix-dev mailing list