Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cabal install gving errror as LICENSE: openBinaryFile: does not exist (No such file or directory)

Tags:

haskell

ghc

cabal

I have cabal version:

❯ cabal --version
cabal-install version 3.0.0.0
compiled using version 3.0.0.0 of the Cabal library 

Here is what I am doing.

mkdir foo
cd foo
cabal init
cabal install

and I am getting an error:

LICENSE: openBinaryFile: does not exist (No such file or directory)

What I am doing wrong here?

like image 838
Saurabh kukade Avatar asked Jun 01 '20 08:06

Saurabh kukade


1 Answers

When ran in the manner you describe, cabal init warns that:

Warning: unknown license type, you must put a copy in LICENSE yourself.

Without a LICENSE file, certain commands won't work properly (cf., for instance, cabal issue #6744). You should either create a LICENSE file, or pick one of the licenses Cabal knows about by specifying it through the -l option of cabal init.

like image 140
duplode Avatar answered Nov 14 '22 12:11

duplode