Closed Dangthrimble closed 10 years ago
I'm going to delete %ProgramFiles%\Haskell
and %AppData%\cabal
then re-extract GHC
to %ProgramFiles%\Haskell
and the cabal-install tool
to %ProgramFiles%\Haskell\bin
. I also have Leksah installed, so I'm going to uninstall that. Then I'll try again.
It worked! Considering the problems I've been having, I'm wondering whether Leksah
was interfering in some way. Thanks again for your support. Now I can build hsdev
and try to get to grips with Sublime Text
and SublimeHaskell
. Any tips?
Make sure, that enable_hsdev
is true
in SublimeHaskell settings:
Ctrl-Shift-P
, then type SublimeHaskell settings
and select user ones. If they are empty, write there:
{
"enable_hsdev": true
}
You can find docs for settings in default SublimeHaskell settings.
There may be freezing just after starting SublimeHaskell, it's known bug.
When I say it worked, I managed to build alex
, happy
and cabal
. But when I copied %ProgramFiles(x86)%\Haskell
over %ProgramFiles%\Haskell
I couldn't get hsdev
to build. Deleted all but cabal
and GHC
there and tried to rebuild alex
and happy
and couldn't get them to build. I'll start from scratch again some time today if I get the chance and see what happens. I'll keep a note of exactly what I do.
What is the best way to go about moving the files from %ProgramFiles(x86)%
to %ProgramFiles%
?
Steps to install alex
, happy
and cabal
to %ProgramFiles(x86)
. Worked like clockwork. The question is, what to do next?
%ProgramFiles%\Haskell
, %ProgramFiles(x86)%\Haskell
and %AppData%/cabal
%ProgramFiles%\Haskell\bin
*.tar.xz
formatghc-*
folder within to %ProgramFiles%\Haskell
(not to the bin
subdirectory)cabal.exe
to %ProgramFiles%\Haskell\bin
%ProgramFiles%\Haskell\bin
, %ProgramFiles%\Haskell\ghc-7.8.3\bin
and %ProgramFiles%\Haskell\ghc-7.8.3\mingw\bin
to the front of the system PATH
variableMSYS2
shell as Administrator and run the following command:$ cabal update
%AppData%\cabal\config
and set user-install
to False
MSYS2
shell run:$ cabal install alex happy
$ cabal install cabal-install
I'm using this sequence of actions:
GHCPATH/mingw/bin
to PATHcabal update
cabal install network --configure-option --build=i386-unknown-mingw32
from Cygwin terminalcabal install alex happy
cabal install cabal-install
I've copied the three exe
files to %ProgramFiles%\Haskell\bin
and hsdev
has built!
Can I delete %ProgramFiles(x86)\Haskell
, or do the files need to be moved or stay where they are?
Are these files copied to new locations? And is PATH now contains new paths? If yes, I think, old folder may be deleted. To be sure, rename it to Haskell.bak
, and if all works fine - delete it.
thank you! On windows 8.1 I couldn't do
cabal install cabal-install
due to the network-2.6.0.2 dependency, as described above. It occurred indeed when I was using a regular bash shell instead of my cygwin. Upon using the cygwin shell, I used the update commands for cabal , network, and happy , and now it works great.
So, I did not need to move or rearrange my haskell folders in the OS.
Attempting to configure
hsdev
and get the following warning:cabal build
then fails: