Can't install Haskell platform on Mac OS X El Capitan

Hi, I’m trying to install Haskell on Mac I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/ the Download (64 bit) (10.11). The installer runs, however, when I type into terminal ghci I get ghci -bash: ghci: command not found “which ghci” it just doesn’t return anything. Thanks, Daniel

The installer can't create the links to your /usr/local/bin folder
anymore under El Capitan. I just added this to my .bashrc and .zshrc
files:
export PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";
That should fix your problem. At least, it did for me.
Richard
On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi
Hi,
I’m trying to install Haskell on Mac
I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/ the Download (64 bit) (10.11).
The installer runs, however, when I type into terminal ghci I get
ghci -bash: ghci: command not found
“which ghci” it just doesn’t return anything.
Thanks, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

How can I add this to these files? I can’t find them. Also, I will want to compile from Emacs. Will I need to add this PATH somehow there as well?
On 12 Oct 2015, at 13:56, Richard Guay
wrote: The installer can't create the links to your /usr/local/bin folder anymore under El Capitan. I just added this to my .bashrc and .zshrc files:
export PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";
That should fix your problem. At least, it did for me.
Richard
On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi
wrote: Hi,
I’m trying to install Haskell on Mac
I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/ the Download (64 bit) (10.11).
The installer runs, however, when I type into terminal ghci I get
ghci -bash: ghci: command not found
“which ghci” it just doesn’t return anything.
Thanks, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Depending on the shell you are using, you will have to put it in your
.bashrc file for the bash shell or you .zshrc for zsh. Assuming you
are using the default setup, you are then using bash and will need to
add it to your .bashrc. In a unix type filesystem (which OS X is), all
files starting with a "." are invisible. In a terminal in your home
directory, type "emacs .bashrc" and add the line to the file. You can
see the file in the terminal by using "ls -a" to list everything -
even hidden files.
Once you update your .bashrc file, reload your shell. Emacs will see
it as well since it should use the PATH environment variable to find
it.
On Mon, Oct 12, 2015 at 1:05 PM, Daniel Hegyi
How can I add this to these files? I can’t find them.
Also, I will want to compile from Emacs. Will I need to add this PATH somehow there as well?
On 12 Oct 2015, at 13:56, Richard Guay
wrote: The installer can't create the links to your /usr/local/bin folder anymore under El Capitan. I just added this to my .bashrc and .zshrc files:
export PATH="/Library/Frameworks/GHC.framework/Versions/Current/usr/bin/:/Library/Haskell/bin:$HOME/Library/Haskell/bin:$PATH";
That should fix your problem. At least, it did for me.
Richard
On Mon, Oct 12, 2015 at 12:32 PM, Daniel Hegyi
wrote: Hi,
I’m trying to install Haskell on Mac
I have OSX El Capitan so I downloaded from https://www.haskell.org/platform/ the Download (64 bit) (10.11).
The installer runs, however, when I type into terminal ghci I get
ghci -bash: ghci: command not found
“which ghci” it just doesn’t return anything.
Thanks, Daniel _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Richard Guay wrote:
The installer can't create the links to your /usr/local/bin folder anymore under El Capitan.
How come? The /usr/local hierarchy is expressly excempt from the restrictions that apply to the rest of the /usr hierarchy. I have all kinds of stuff in /usr/local myself, no trouble at all. But Haskell platform used to install binaries in /usr/bin, which is definitely a no-no on El Capitan. I think a workaround was posted to this mailing list, or was it on cafe? Personally, I have abandoned Haskell platform in favour of the installation instructions here: https://github.com/bitemyapp/learnhaskell/blob/master/install.md So I couldn't comment on the viability of the workaround that I saw. – Harald PS. I don't know what happens if /usr/local did not exist when you installed El Capitan. Is it then necessary to turn off SIP in order to create this directory, due to the restrictions on /usr?

Not sure why, but some programs can not create links or files in
/usr/local. I have ran into this with Hammerspoon and the Haskell
installer. I agree the Haskell for Mac OS X is a better way to run,
but I keep having cabal conflicts with other libraries. I was
answering for the specific problem, not an alternate solution.
On Mon, Oct 12, 2015 at 2:21 PM, Harald Hanche-Olsen
Richard Guay wrote:
The installer can't create the links to your /usr/local/bin folder anymore under El Capitan.
How come? The /usr/local hierarchy is expressly excempt from the restrictions that apply to the rest of the /usr hierarchy.
I have all kinds of stuff in /usr/local myself, no trouble at all.
But Haskell platform used to install binaries in /usr/bin, which is definitely a no-no on El Capitan. I think a workaround was posted to this mailing list, or was it on cafe?
Personally, I have abandoned Haskell platform in favour of the installation instructions here:
https://github.com/bitemyapp/learnhaskell/blob/master/install.md
So I couldn't comment on the viability of the workaround that I saw.
– Harald
PS. I don't know what happens if /usr/local did not exist when you installed El Capitan. Is it then necessary to turn off SIP in order to create this directory, due to the restrictions on /usr? _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

Haskell platform - bad idea. Use brew or stack
https://www.fpcomplete.com/blog/2015/08/new-in-depth-guide-stack.
On 12 October 2015 at 10:51, Richard Guay
Not sure why, but some programs can not create links or files in /usr/local. I have ran into this with Hammerspoon and the Haskell installer. I agree the Haskell for Mac OS X is a better way to run, but I keep having cabal conflicts with other libraries. I was answering for the specific problem, not an alternate solution.
On Mon, Oct 12, 2015 at 2:21 PM, Harald Hanche-Olsen
wrote: Richard Guay wrote:
The installer can't create the links to your /usr/local/bin folder anymore under El Capitan.
How come? The /usr/local hierarchy is expressly excempt from the restrictions that apply to the rest of the /usr hierarchy.
I have all kinds of stuff in /usr/local myself, no trouble at all.
But Haskell platform used to install binaries in /usr/bin, which is definitely a no-no on El Capitan. I think a workaround was posted to this mailing list, or was it on cafe?
Personally, I have abandoned Haskell platform in favour of the installation instructions here:
https://github.com/bitemyapp/learnhaskell/blob/master/install.md
So I couldn't comment on the viability of the workaround that I saw.
– Harald
PS. I don't know what happens if /usr/local did not exist when you installed El Capitan. Is it then necessary to turn off SIP in order to create this directory, due to the restrictions on /usr? _______________________________________________ Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
Beginners mailing list Beginners@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
-- С уважением, Пачин Юрий.

On Mon, Oct 12, 2015 at 6:08 AM, Yury Pachin
Haskell platform - bad idea.
Someone will have to explain to me why when the whole Haskell community considers cabal-install and the Platform --- supposedly *from* the community --- to be the works of the devil, you all haven't set out to rid the world of the evil incarnate that created them. We will as always ignore or explain away little inconveniences, in favor of our preferred utter hatred. -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net

On Mon, Oct 12, 2015 at 1:57 PM, Brandon Allbery
On Mon, Oct 12, 2015 at 6:08 AM, Yury Pachin
wrote: Haskell platform - bad idea.
Someone will have to explain to me why when the whole Haskell community considers cabal-install and the Platform --- supposedly *from* the community --- to be the works of the devil, you all haven't set out to rid the world of the evil incarnate that created them.
We will as always ignore or explain away little inconveniences, in favor of our preferred utter hatred.
Actually, there _has_ been a lot of effort to both fix the Haskell Platform and - in the interim - get it off of the main download page. For example: https://mail.haskell.org/pipermail/haskell-community/2015-September/000014.h... There was also a poll taken in response to a related thread on the community list: https://docs.google.com/forms/d/1w2wKSxn5YN4LtSXYHvFT2IFw_BDaT_2cjUkP9pDeqLQ... As you can see, the vast majority of the poll respondents wanted the HP to be the least recommended option on the page, and a number of comments said it should be done away with entirely. Michael

Michael Snoyman
writes:
As you can see, the vast majority of the poll respondents wanted the HP to be the least recommended option on the page, and a number of comments said it should be done away with entirely.
Just a note for others who might not have noticed: The HP is now last on the downloads list, as desired by many. One thing I'd like to distinguish is between the "HP today" that we deliver via that page, and the "HP as a product" -- that is, a single downloadable artifact that serves as the best way to get newcomers started with Haskell. We don't yet have the HP we want, although we're actively working toward it. What I hope is that any discussion of the Platform will take this difference into account. I sympathize with current frustration about the HP, yet the *role* the HP is supposed to fill is still valid. Maybe this means the HP becomes a pretty wrapper around cabal or stack, with a pre-seeded local repository so the user already has a copy of GHC after downloading it... I don't know. But we do want a "single point of entry" for downloaders, that satisfies the needs of both active Haskell developers who need to deliver their code to clients, and brand new users who know nothing about package management, and who just want a REPL to follow along with their professor. So let the technical arguments fly about current approaches, but I hope we can all rally a similar idea of what we want in the end: An easy start to Haskell, and an easy ongoing experience. John

the whole Haskell community considers cabal-install and the Platform ...
is this a fact? the whole community? such a bad reputation? platform did not work for me but maybe it was because I tried it at quite an early stage and made a few mistakes. Now I build ghc from source so do not really need the platform. The only thing in the installation process which I find cumbersome is the chicken and egg situation: you need ghc to build ghc. If it were possible to build bootstrap ghc entirely from source with minimum deps, this would be good. I used cabal & cabal-install without problems so far.

Brandon Allbery wrote:
On Mon, Oct 12, 2015 at 6:08 AM, Yury Pachin
mailto:yuriy.pachin@gmail.com> wrote: Haskell platform - bad idea.
Someone will have to explain to me why when the whole Haskell community considers cabal-install and the Platform --- supposedly *from* the community --- to be the works of the devil, you all haven't set out to rid the world of the evil incarnate that created them.
Since it was my message that started that discussion on this thread, let me hasten to assure you that I don't hate the Platform. I still think it is good for users to know it's not the only game in town, however. Yes, I have had some difficulties with it, and it got a bit worse with El Capitan, but I really don't know to what extent that is just the usual beginner's trouble. After I switched to Haskell for Mac [sic] OS X, I have not had any trouble (*). But then I haven't used it as much as I used the Platform before, so I really cannot say which, if any of them, is superior. (*) Well, almost none: cabal-install failed on hledger because it wants pretty-show, and pretty-show wants happy, and somehow happy did not get built. Just running cabal-install happy fixed the problem. I'd report this as a bug if I knew where to report it. But I expect this sort of problem is unrelated to the Platform versus alternatives debate. – Harald
participants (8)
-
Brandon Allbery
-
Daniel Hegyi
-
Harald Hanche-Olsen
-
Imants Cekusins
-
John Wiegley
-
Michael Snoyman
-
Richard Guay
-
Yury Pachin