Ich versuche zu installieren, die Idris Sprache in einem OSX Lion mit der Installationsanleitung installieren. Ich habe bereits GMP installiert. Das ist der Fehler, den ich bekommen:Cabal nicht auf den <a href="http://eb.host.cs.st-andrews.ac.uk/writings/idris-tutorial.pdf" rel="noreferrer">official tutorial</a> bereitgestellt Idris Sprache auf OSX Lion
$ cabal install idris
Resolving dependencies...
Configuring libffi-0.1...
cabal: The pkg-config package libffi is required but it could not be found.
[1 of 1] Compiling Main (/var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/Setup.hs, /var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/dist/setup/Main.o)
Linking /var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/dist/setup/setup ...
setup: The program llvm-config version ==3.3.* is required but it could not be
found.
cabal: Error: some packages failed to install:
idris-0.9.9 depends on llvm-general-3.3.5.0 which failed to install.
libffi-0.1 failed during the configure step. The exception was:
ExitFailure 1
llvm-general-3.3.5.0 failed during the configure step. The exception was:
ExitFailure 1
Der Versuch, Idris ohne LLVM erzeugt diesen Fehler zu installieren:
$ cabal install idris -f-LLVM
Resolving dependencies...
Configuring libffi-0.1...
cabal: The pkg-config package libffi is required but it could not be found.
cabal: Error: some packages failed to install:
idris-0.9.9 depends on libffi-0.1 which failed to install.
libffi-0.1 failed during the configure step. The exception was:
ExitFailure 1
Sieht aus wie Sie 3.3 LLVM installieren. Wenn Sie es bereits installiert haben, stellen Sie sicher, dass 'llvm-config' in PATH ist. –
Alternativ versuchen Sie 'cabal installieren idris -f-LLVM', um Idris ohne das LLVM-Backend zu erstellen. –
@MikhailGlushenkov llvm-config läuft. Ich bin mir nicht sicher, welche LLVM-Version ich habe. 'caban install idris -f-LLVM' funktioniert, aber jetzt habe ich ein anderes Problem. – MaiaVictor