[Nix-dev] DbEnv::open: No such file or directory - not very helpful

Eelco Dolstra eelco at cs.uu.nl
Mon May 7 19:00:14 CEST 2007


Marc Weber wrote:

> I got:
> 
> $ nix-env.exe -I /cygdrive/e/nix/nixsvn/trace/nixpkgs/trunk/default.nix 
> trying to access nix database /nix/var/nix/db
> opening database environment
> environment open failed: DbEnv::open: No such file or directory
> error: DbEnv::open: No such file or directory
> 
> which showed me that /nix/var/nix/db is the broblem.
> 
> I could fix it by creating that directory.
> Would it be bossible to create it/ check existance automatically
> somehow?
> 
> Or did I miss something?

Normally, "make install" is supposed to create it.  But I've just committed a
change to create the directory if it doesn't exist already (r8655).

-- 
Eelco Dolstra | http://www.cs.uu.nl/~eelco



More information about the nix-dev mailing list