Tôi đang tham chiếu đến haskell readline library wrapper đến c readline library.Làm thế nào để bạn cài đặt thư viện readline haskell trên Mac OSX?
cabal install readline
đầu ra dưới đây:
$ cabal install readline
Resolving dependencies...
Configuring readline-1.0.1.0...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for GNUreadline.framework... checking for readline... no
checking for tputs in -lncurses... yes
checking for readline in -lreadline... yes
checking for rl_readline_version... yes
checking for rl_begin_undo_group... no
configure: error: readline not found, so this package cannot be built
See `config.log' for more details.
cabal: Error: some packages failed to install:
readline-1.0.1.0 failed during the configure step. The exception was:
ExitFailure 1
Tôi có thư viện c readline cài đặt qua macports (sử dụng sudo port install readline
), nhưng tôi vẫn nhận được lỗi tương tự khi cố gắng cài đặt các thư viện readline Haskell.
http://www.haskell.org/cabal/FAQ.html – tekknolagi
Nếu bạn đã cài đặt 'readline' với' port' thì tại sao bạn cần thử và cài đặt nó bằng 'cabal'? – tekknolagi
Thư viện 'readline' c được cài đặt với cổng, nhưng tôi không thể cài đặt thư viện haskell' readline'. Tôi đã làm rõ câu hỏi để làm rõ điều đó. –