ApexCtl icon indicating copy to clipboard operation
ApexCtl copied to clipboard

ghc issue

Open mf0hka opened this issue 10 years ago • 4 comments

Is ghc Required by ApexCtl, or is it just a recomended package of cabal? I ask, because I can install cabal without ghc, but installing it with ghc, threatens to break my system, I am using Ubuntu 14.04.

Is a haskel interpreter required? can I install any haskel interpreter? Or must it be ghc?

mf0hka avatar Dec 30 '14 08:12 mf0hka

GHC is mostly used as a Haskell compiler and not as interpreter (but it does have an interpreter as well). To use ApexCtl, you need it to compile it first. Cabal is just a build system combined with Haskell package manager (sort of like gems in Ruby) that helps to download and compile ApexCtl and it's dependencies with ease.

After you have a working ApexCtl binary, you can remove GHC, cabal and everything else you installed to build ApexCtl, because by default Haskell binaries are linked statically.

So yeah, you most likely need GHC. I haven't tried using ApexCtl in any Haskell interpreter though.

tuxmark5 avatar Dec 30 '14 12:12 tuxmark5

I found that ghc installs on some of my older systems (ghc4.1) so i'll try installing it. is there a version requirement? Thanks for the prompt reply

mf0hka avatar Dec 30 '14 15:12 mf0hka

4.1 sounds a bit old, so I am not 100% sure that it would work.

The easiest way to compile ApexCtl without system-wide GHC installation would be to download generic linux binaries for Haskell Platform that come with latest GHC and probably cabal. So all you need to do is to extract the tar.gz somewhere in your home, make sure extracted cabal and ghc are in your $PATH and then simply do cabal install, which most likely will place compiled ApexCtl in ~/.cabal/bin, which then can be moved to any place you want. And after that you can delete ~/.cabal and ~/.ghc as well as downloaded & extracted files.

Haskell platform download link: https://www.haskell.org/platform/linux.html

tuxmark5 avatar Dec 30 '14 17:12 tuxmark5

Yeah, GHC4.1 was too old to do anything with. I switched to debian (jessie) and got everything installed (dependancies at least)... GHC version 7.6 , cabal-install verion 1.2 sepreate issues to come...

mf0hka avatar Dec 31 '14 02:12 mf0hka