Tôi đang cố cài đặt ngôn ngữ Idris trong OSX Lion bằng hướng dẫn cài đặt được cung cấp trên official tutorial. Tôi đã gỡ bỏ cài đặt GMP. Đây là lỗi tôi nhận được:Cabal không cài đặt ngôn ngữ Idris trên 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
Đang cố gắng để cài đặt Idris không LLVM sản xuất lỗi này:
$ 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
Có vẻ như bạn cần cài đặt LLVM 3.3. Nếu bạn đã cài đặt nó, hãy chắc chắn rằng 'llvm-config' nằm trong PATH. –
Ngoài ra, hãy thử 'cabal install idris -f-LLVM' để xây dựng Idris mà không có chương trình phụ trợ LLVM. –
@MikhailGlushenkov llvm-config chạy. Tôi không chắc chắn phiên bản LLVM nào tôi có. 'caban install idris -f-LLVM' hoạt động nhưng bây giờ tôi đã có một vấn đề khác. – MaiaVictor