每次我安装一个库时,cabal 都会告诉我安装一个新版本的 cabal-install。尽管我运行(明显成功)下面列出的过程,但 cabal-install 的版本保持不变。我哪里错了?(我的操作系统是 Window 7 64 位)
我的用户路径是 C:\Users\Alberto\AppData\Roaming\cabal\bin
系统变量:CABAL_DIR = C:\Users\Alberto\AppData\Roaming\cabal
更新前
C:\Users\Alberto>cabal -V
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
C:\Users\Alberto>cabal update
Downloading the latest package list from hackage.haskell.org
Note: there is a new version of cabal-install available.
To upgrade, run: cabal install cabal-install
C:\Users\Alberto>cabal install cabal-install
更新后
Linking dist\build\cabal\cabal.exe ...
Installing executable(s) in C:\Users\Alberto\AppData\Roaming\cabal\bin
Installed cabal-install-1.18.0.2
C:\Users\Alberto>cabal -V
cabal-install version 1.16.0.2
using version 1.16.0 of the Cabal library
但:
C:\Users\Alberto>C:\Users\Alberto\AppData\Roaming\cabal\bin\cabal.exe -V
cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library
我很困惑。