Khi tôi làm cabal install criterion
Cabal Update và Gói lỗi Installation
tôi nhận được lỗi sau đây về gói vector-algorithms
Warning: The package list for 'hackage.haskell.org' is 16 days old.
Run 'cabal update' to get the latest list of available packages.
Resolving dependencies...
Downloading vector-algorithms-0.4...
cabal: Error: some packages failed to install:
vector-algorithms-0.4 failed while downloading the package. The exception was:
connect: does not exist (Connection refused)
Và khi tôi chạy cabal update
nó một lần nữa lỗi với
Downloading the latest package list from hackage.haskell.org
cabal: openTCPConnection: host lookup failure for ""
gì là sai?
Tôi đang sử dụng Ubuntu 11.10 và GHC 7.0.4 từ this PPA và kết nối mạng của tôi chỉ hoạt động tốt trong phần còn lại của hệ thống.
bạn có thể kiểm tra cấu hình cabal của bạn? Trong tệp '~/.cabal/config', tìm dòng bắt đầu bằng' remote-repo: ', nó phải là' remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive'. –
Và sau đó thử ping'ing hackage.haskell.org để đảm bảo đó không phải là sự cố mạng. – ivanm