Upgrade Cabal on Ubuntu 14.04

爷,独闯天下 提交于 2019-12-01 15:48:29

问题


When I install Haskell/GHC+cabal via sudo apt-get I installed cabal version 1.16. This is obviously not the most up to date version. How would I go about upgrade to at least version 1.18? I tried doing sudo apt-get update and sudo apt-get upgrade.

Edit:

Also when I run cabal install cabal-install it appears to "install" version 1.20 but when I run cabal -V it says cabal 1.16.0


回答1:


Fixed it by adding the following line to my ~/.profile: export PATH=$(HOME)/.cabal/bin:$PATH



来源:https://stackoverflow.com/questions/25902613/upgrade-cabal-on-ubuntu-14-04

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!