V
V
vasiatka2019-08-07 00:17:06
Haskell
vasiatka, 2019-08-07 00:17:06

What is the cause of the error when installing the haskell package?

I'm trying to install the encoding package... I get the following:

cabal install encoding
Resolving dependencies...
Configuring encoding-0.6.6...
Failed to install encoding-0.6.6
Build log ( /home/haskell/.cabal/logs/ghc-8.4.4/encoding-0.6.6-FpSxS0hB2DcAOz2YiS2hId.log ):
cabal: Entering directory '/tmp/cabal-tmp-21138/encoding-0.6.6'
cabal: Leaving directory '/tmp/cabal-tmp-21138/encoding-0.6.6'
cabal: Error: some packages failed to install:
encoding-0.6.6-FpSxS0hB2DcAOz2YiS2hId failed during the configure step. The
exception was:
/tmp/cabal-tmp-21138/encoding-0.6.6/dist/setup/setup.version: openFile:
resource busy (file is locked)

The package itself has loaded and lies in the depths of .cabal.
Other packages downloaded and installed fine, but this one didn't. What is the reason behind setup.version blocking? Or am I doing something wrong?
The version of the package is not important. Tried to put different ones.
I put everything on a virtual machine. I put everything globally, because for one project.
Where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Syrovetsky, 2019-09-26
@cblp

Perhaps you are running the installation of the same package in parallel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question