我剛剛按照網站的指示haskell-platform從 Ubuntu 存盤庫(隨GHC版本一起提供8.6.5)安裝。現在,在嘗試編譯用于??分析的程式時,使用,我遇到了以下錯誤訊息:ghc -O2 -prof myCode.hs
myCode.hs:1:1: error:
Could not find module ‘Prelude’
Perhaps you haven't installed the profiling libraries for package ‘base-4.12.0.0’?
和System.IO模塊類似。
他們不應該附帶默認的 Haskell 安裝嗎?我該如何繼續?也許我應該清除這一切,并得到哈斯克爾形成另一個源(Stack,Ghcup,等?它應該怎么了?)
我對此很陌生,因此感謝任何幫助。
uj5u.com熱心網友回復:
在 Ubuntu 上,基本上所有的 Haskell 軟體包都是平淡無奇的-prof。您需要后者進行分析。
ghcup 也不錯。不需要全部清除——ghcup 和包管理器可以干凈地共存。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/347328.html
