[Nix-dev] Nix on ubuntu 11.04

Marco Maggesi maggesi at math.unifi.it
Wed Aug 17 16:14:24 CEST 2011


On Aug 17, 2011, at 3:55 PM, Eelco Dolstra wrote:

> Hi,
> 
> On 08/17/2011 02:58 PM, Marco Maggesi wrote:
> 
>>>> Does anybody runs nix on Ubuntu 11.04 (Natty Narwhal)?
>>>> 
>>>> It does not work for me.  E.g.:
>>>> 
>>>> maggesi at bantu:~$ nix-env -i fossil
>>>> installing `fossil-1.18'
>>>> error: unable to fork: Cannot allocate memory
>>> 
>>> How much RAM and swap do you have?
>> 
>> maggesi at bantu:~$ free
>>              total       used       free     shared    buffers     cached
>> Mem:       1022772     489748     533024          0      58920     154332
>> -/+ buffers/cache:     276496     746276
>> Swap:      1046524          0    1046524
> 
> Can you try running nix-env with the environment variable GC_INITIAL_HEAP_SIZE=100000 ?

I get the same behavior:

maggesi at bantu:~$ export GC_INITIAL_HEAP_SIZE=100000 
maggesi at bantu:~$ time nix-env -i nix
x86_64-linux x86_64-linux x86_64-linux 0
installing `nix-1.0pre28391'
error: unable to fork: Cannot allocate memory

real	0m41.199s
user	0m1.630s
sys	0m1.900s
maggesi at bantu:~$ 





More information about the nix-dev mailing list