Khi tôi cố gắng để cài đặt nó với cabal, tôi nhận đượcExitFailure 9 khi cố gắng cài đặt GHC-mod sử dụng Cabal
~$ cabal install ghc-mod
Resolving dependencies...
[1 of 1] Compiling Main (/tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs, /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/dist/setup/Main.o)
/tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs:1:1:
Warning: In the use of `runTests'
(imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
Deprecated: "Please use the new testing interface instead!"
Linking /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/dist/setup/setup ...
Configuring haskell-src-exts-1.13.5...
Building haskell-src-exts-1.13.5...
Preprocessing library haskell-src-exts-1.13.5...
dist/build/Language/Haskell/Exts/InternalParser.hs:1:12:
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
[ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax (src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.o)
cabal: Error: some packages failed to install:
ghc-mod-1.11.1 depends on haskell-src-exts-1.13.5 which failed to install.
haskell-src-exts-1.13.5 failed during the building phase. The exception was:
ExitFailure 9
hlint-1.8.33 depends on haskell-src-exts-1.13.5 which failed to install.
Tôi không thực sự chắc chắn nơi để đi từ đây. Làm thế nào tôi có thể tìm hiểu thêm về lý do tại sao nó thất bại?
chỉnh sửa: Tôi đang sử dụng phiên bản GHC 7.4.1 và phiên bản Cabal 1.14.0
Chạy Cabal trong chế độ verbose dường như không đưa ra bất cứ gợi ý ngoại trừ:
...
World file is already up to date.
cabal: Error: some packages failed to install:
ghc-mod-1.11.1 depends on haskell-src-exts-1.13.5 which failed to install.
haskell-src-exts-1.13.5 failed during the building phase. The exception was:
ExitFailure 9
hlint-1.8.33 depends on haskell-src-exts-1.13.5 which failed to install.
Giống như hầu hết các chương trình, cabal có tùy chọn tiết ('-v') và luôn luôn hữu ích nếu bạn bao gồm các phiên bản phần mềm của bạn (cụ thể là GHC) –
Trừ khi tôi nhầm,' ExitFailure 9' có nghĩa là GHC đã nhận được một SIGKILL (sẽ giải thích việc thiếu thông báo lỗi). Bạn đang chạy loại hệ thống này? Có một số loại ứng dụng giám sát đang chạy mà có thể giết GHC vì sử dụng quá nhiều bộ nhớ hay bất cứ thứ gì như thế không? – hammar
@hammar Tôi đang chạy máy chủ Ubuntu trên một phiên bản vi mô Amazon EC2. Tôi nghĩ bạn có thể đúng. Nó sử dụng hầu hết tất cả 613 MB RAM khi cài đặt ghc-mod. Có cách nào thông minh để giải quyết vấn đề này không? – user316146