JanAhrens / yesod-quickstart

Basic Vagrantfile to build a Yesod and Haskell VM
The Unlicense
3 stars 0 forks source link

yesod-platform and yesod-bin is not getting installed #1

Open JanAhrens opened 11 years ago

JanAhrens commented 11 years ago

Chef currently fails to install the yesod-platform and yesod-bin cabal packages.

Workaround

To install the packages you can connect to the machine and execute the commands manually

$ vagrant ssh
# cabal update
# cabal install yesod-platform
# cabal install yesod-bin
JanAhrens commented 11 years ago

It seems to be connected to a missing cabal update run:

$ cabal install yesod-platform
Config file path source is default config file.
Config file /home/vagrant/.cabal/config not found.
Writing default configuration to /home/vagrant/.cabal/config
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal update' to download it.
cabal: There is no package named 'yesod-platform'.
You may need to run 'cabal update' to get the latest list of available packages.
JanAhrens commented 11 years ago

... and cabal-install having the wrong version.

$ 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
JanAhrens commented 11 years ago

After running cabal install cabal-install you have to make sure to update your PATH variable to contain the ~/.cabal/bin directory. I've to update the Chef cookbook to do this automatically.