[Nix-dev] zlib, iconv, bzip2, et. al.
Thomas Bereknyei
tomberek at gmail.com
Wed Sep 7 21:11:23 CEST 2016
Yes, ive done that (nix-env). But perhaps i dont have that extra bit about
allowing my linker to find them. Thats why i suspected my zsh shell may be
to blame, some shell variable isnt being set? One that is normally set in
bash_profile?
Tom
On Wed, Sep 7, 2016, 09:01 Ryan Trinkle <ryan.trinkle at gmail.com> wrote:
> Have you tried installing those libraries with `nix-env -i`? You may need
> to add some stuff to your environment to make the linker find them, but
> that should put them in your ~/.nix-profile/lib.
>
> On Wed, Sep 7, 2016 at 7:18 AM, Thomas Bereknyei <tomberek at gmail.com>
> wrote:
>
>> Ryan,
>>
>> Thia happens in my normal zsh shell. Cabal will complain about a missing
>> library, but I can fix that by going to 'nix-shell -p libiconv'. Stack
>> interacting with nix changes things so it sometimes works, I dont have a
>> clear example. Stack setup or even try-reflex has given me this sort of
>> issue. I resorted to adding addBuildDepends to a bunch of packages in
>> try-reflex's defsault.nix, but somehow i don't think anyone else is doing
>> that. My normal shell just never seems to have the libraries in scope and
>> no amount of nix-env seems to work. It's as if I'm not getting the -dev
>> versions.
>>
>> Tom
>>
>>> -----------------------------------------------------------------
>>>
>>> Message: 1
>>> Date: Tue, 6 Sep 2016 16:50:58 -0400
>>> From: Ryan Trinkle <ryan.trinkle at gmail.com>
>>> To: Thomas Bereknyei <tomberek at gmail.com>
>>> Cc: nix-dev <nix-dev at lists.science.uu.nl>
>>> Subject: Re: [Nix-dev] zlib, iconv, bzip2, et. al.
>>> Message-ID:
>>> <
>>> CAHNEpize-D638EyZ4HTjQEy_Nm2BjgVaYT95jSoVua89dr0Wwg at mail.gmail.com>
>>> Content-Type: text/plain; charset="utf-8"
>>>
>>> Can you provide the command line you're using to get into the nix shell?
>>> My understanding was that this kind of thing should be handled
>>> automatically, but apparently that's not always the case.
>>>
>>> On Tue, Sep 6, 2016 at 8:23 AM, Thomas Bereknyei <tomberek at gmail.com>
>>> wrote:
>>>
>>> > I often have a problem where a library is not available during
>>> > compilation, usually Haskell. The standard answer is to start
>>> 'nix-shell -p
>>> > zlib' and proceed. Is there a way to have them in my standard
>>> environment?
>>> > This occurs both on OSX and NixOS even when i have those packages
>>> installed
>>> > (either via nixos-rebuild or nix-env). I am also using zsh.
>>> >
>>> > Tom
>>> >
>>> >
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160907/f402b47e/attachment.html>
More information about the nix-dev
mailing list