[Agda] install agda

Michel Levy michel.levy.imag at free.fr
Sat May 2 18:05:41 CEST 2020


I followed the instructions you gave below. And thanks to you, I was
able to install Agda-2.6.1, but it wasn't easy.
After the command "cabal install", I got the following message:

michel at M1330:~/Agda-2.6.1$ cabal install
Resolving dependencies...
In order, the following would be installed:
dlist-0.8.0.8 (via: aeson-1.4.1.0) (new package)
exceptions-0.10.4 (via: Agda-2.6.1) (new package)

After a very long list of packages to reinstall, I got the message :
cabal: The following packages are likely to be broken by the reinstalls:
Agda-2.5.3
Use --force-reinstalls if you want to install anyway.

I forced the reinstall, which allowed to install all these missing
packages and after a first failure to reinstall Agda-2.6.1 on the
following error

292 of 369] Compiling Agda.TypeChecking.Rewriting.NonLinMatch (
src/full/Agda/TypeChecking/Rewriting/NonLinMatch.hs,
dist/dist-sandbox-a8ebf48f/build/Agda/TypeChecking/Rewriting/NonLinMatch.o )
ghc: out of memory (requested 1048576 bytes)
"cabal: Leaving directory.
cabal: Error: some packages failed to install:

I started again with "cabal install" and this time the installation
seems to be complete. But I don't know how to use it.
And the previous installation is not broken (fortunately) and still
working with emacs. Hence my question: where to find the new
installation in the directory Agda-2.6.1 and how to reinstall the agda
command and the agda mode .

Le 02/05/2020 à 15:45, Andrés Sicard-Ramírez a écrit :
> I'm not familiar with installing two versions of Agda in the setup you
> mentioned. For installing Agda 2.6.1 I would try:
>
>   $ cabal get Agda
>   $ cd Agda-2.6.1
>   $ cabal sandbox init
>   $ cabal install
>
> On Sat, 2 May 2020 at 05:29, Michel Levy <michel.levy.imag at free.fr> wrote:
>> I try again to run two agda versions, one is my old agda version 2.5.3
>> installed by the Ubuntu package, the other was supposed to be installed
>> with "cabal install Agda" But I am still with the same error, I
>> described in this list the 18 March, and that I can't solved. Can you
>> help me ?
>>
>> Andrés Sicard-Ramírez wrote "It seems you are mixing the installation of
>> Agda from Ubuntu packages and from Hackage". Why it's not possible to
>> install two versions of agda, one with ubuntu and the other with cabal ?
>>
>> Resolving dependencies...
>> Configuring Agda-2.6.1...
>> Building Agda-2.6.1...
>> Failed to install Agda-2.6.1
>> Build log ( /home/michel/.cabal/logs/Agda-2.6.1.log ):
>> cabal: Entering directory '/tmp/cabal-tmp-7014/Agda-2.6.1'
>> [1 of 1] Compiling Main             (
>> /tmp/cabal-tmp-7014/Agda-2.6.1/dist/setup/setup.hs,
>> /tmp/cabal-tmp-7014/Agda-2.6.1/dist/setup/Main.o )
>> Linking /tmp/cabal-tmp-7014/Agda-2.6.1/dist/setup/setup ...
>> Configuring Agda-2.6.1...
>> Building Agda-2.6.1...
>> Preprocessing library Agda-2.6.1...
>> [  1 of 369] Compiling Paths_Agda       (
>> dist/build/autogen/Paths_Agda.hs, dist/build/Paths_Agda.o )
>> [  2 of 369] Compiling Agda.Version     ( src/full/Agda/Version.hs,
>> dist/build/Agda/Version.o )
>> [  3 of 369] Compiling Agda.VersionCommit (
>> src/full/Agda/VersionCommit.hs, dist/build/Agda/VersionCommit.o )
>>
>> src/full/Agda/VersionCommit.hs:5:1: error:
>>     Failed to load interface for ‘Development.GitRev’
>>     There are files missing in the
>>gitrev-1.3.1 at gitrev-1.3.1-6KBEbA9rw49F9GCJBEz6uX’ package,
>>     try running 'ghc-pkg check'.
>>     Use -v to see a list of the files searched for.
>> cabal: Leaving directory '/tmp/cabal-tmp-7014/Agda-2.6.1'
>> cabal: Error: some packages failed to install:
>> Agda-2.6.1 failed during the building phase. The exception was:
>> ExitFailure 1
>>
>> I run 'ghc-pkg check' and that give me many pages of errors starting with
>>
>> ghc-pkg check
>> There are problems in package aeson-1.4.6.0:
>>   Warning: library-dirs:
>> /home/michel/.cabal/lib/i386-linux-ghc-8.0.2/aeson-1.4.6.0-1vlLcAj8kIrJVlnNw4kUo5
>> doesn't exist or isn't a directory
>>   Warning: dynamic-library-dirs:
>> /home/michel/.cabal/lib/i386-linux-ghc-8.0.2 doesn't exist or isn't a
>> directory
>>   import-dirs:
>> /home/michel/.cabal/lib/i386-linux-ghc-8.0.2/aeson-1.4.6.0-1vlLc
>>
>>
>> --
>> courriel : michel.levy.imag at free.fr
>> mobile : 06 59 13 42 53
>> web : michel.levy.imag.free.fr
>>
>> La información contenida en este correo electrónico está dirigida únicamente a su destinatario y puede contener información confidencial, material privilegiado o información protegida por derecho de autor. Está prohibida cualquier copia, utilización, indebida retención, modificación, difusión, distribución o reproducción total o parcial. Si usted recibe este mensaje por error, por favor contacte al remitente y elimínelo. La información aquí contenida es responsabilidad exclusiva de su remitente por lo tanto la Universidad EAFIT no se hace responsable de lo que el mensaje contenga. The information contained in this email is addressed to its recipient only and may contain confidential information, privileged material or information protected by copyright. Its prohibited any copy, use, improper retention, modification, dissemination, distribution or total or partial reproduction. If you receive this message by error, please contact the sender and delete it. The information contained herein is the sole responsibility of the sender therefore Universidad EAFIT is not responsible for what the message contains.
>
-- 
courriel : michel.levy.imag at free.fr
mobile : 06 59 13 42 53
web : michel.levy.imag.free.fr



More information about the Agda mailing list