Binaries are removed by El Captain upgrade #221

Closed
orome opened this Issue Sep 30, 2015 · 19 comments

Comments

Projects
None yet
6 participants
@orome

orome commented Sep 30, 2015

Following the installation of El Captain, the GHC and Cabal binary appear to be gone. The platform needs to install them somewhere else.

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Sep 30, 2015

Contributor

see also #205

Contributor

gbaz commented Sep 30, 2015

see also #205

@erantapaa

This comment has been minimized.

Show comment
Hide comment
@erantapaa

erantapaa Sep 30, 2015

Contributor

Question: What happens to /usr/share? Is it also locked down?

Contributor

erantapaa commented Sep 30, 2015

Question: What happens to /usr/share? Is it also locked down?

@gbaz gbaz referenced this issue in haskell-infra/hl Sep 30, 2015

Closed

Binaries are removed by El Captain upgrade #139

@orome

This comment has been minimized.

Show comment
Hide comment
@orome

orome Oct 1, 2015

@erantapaa - Yes. Everything but /usr/local is "restricted".

orome commented Oct 1, 2015

@erantapaa - Yes. Everything but /usr/local is "restricted".

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 1, 2015

Contributor

@orome would you be willing to test the candidate new installer as per the information on ticket #205 ?

Thanks!

Contributor

gbaz commented Oct 1, 2015

@orome would you be willing to test the candidate new installer as per the information on ticket #205 ?

Thanks!

@orome

This comment has been minimized.

Show comment
Hide comment
@orome

orome Oct 1, 2015

@erantapaa - I switched to Homebrew.

orome commented Oct 1, 2015

@erantapaa - I switched to Homebrew.

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 1, 2015

Contributor

Sure, we just need to find people on El Capitan to test this so we can release it safely to the world. If you don't have the time, no problem :-)

Contributor

gbaz commented Oct 1, 2015

Sure, we just need to find people on El Capitan to test this so we can release it safely to the world. If you don't have the time, no problem :-)

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 3, 2015

Contributor

For the record, if you had an existing platform install, and the symlinks were deleted by the El Capitan upgrade, running this script should fix it: https://github.com/mzero/haskell-platform/blob/osx-elcap-fix/hptool/os-extras/osx/bin/activate-hs

(Also, if you do not have a platform, the candidate fixed installer is here: http://downloads.haskell.org/~platform/7.10.2/Haskell%20Platform%207.10.2-a1%2064bit-unsigned.pkg

Note that it is unsigned and will need to be authorized for now -- after a bit more testing it will be properly signed and released)

Contributor

gbaz commented Oct 3, 2015

For the record, if you had an existing platform install, and the symlinks were deleted by the El Capitan upgrade, running this script should fix it: https://github.com/mzero/haskell-platform/blob/osx-elcap-fix/hptool/os-extras/osx/bin/activate-hs

(Also, if you do not have a platform, the candidate fixed installer is here: http://downloads.haskell.org/~platform/7.10.2/Haskell%20Platform%207.10.2-a1%2064bit-unsigned.pkg

Note that it is unsigned and will need to be authorized for now -- after a bit more testing it will be properly signed and released)

@christinem

This comment has been minimized.

Show comment
Hide comment
@christinem

christinem Oct 5, 2015

@gbaz I have uninstalled and re-installed Haskell using the new candidate fixed installer, and the symlinks are now properly in local/usr/bin - however, I still get the cabal: /usr/bin/ar: permission denied and cabal: /usr/bin/ghc-pkg: does not exist. I don't understand why this problem still exists after I have the new candidate installed and the symlinks should be correct.

@gbaz I have uninstalled and re-installed Haskell using the new candidate fixed installer, and the symlinks are now properly in local/usr/bin - however, I still get the cabal: /usr/bin/ar: permission denied and cabal: /usr/bin/ghc-pkg: does not exist. I don't understand why this problem still exists after I have the new candidate installed and the symlinks should be correct.

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 5, 2015

Contributor

@christinem its hard to diagnose remotely here, but it sounds like there must be an old cabal somewhere in your path? perhaps in ~/.cabal/bin ?

Contributor

gbaz commented Oct 5, 2015

@christinem its hard to diagnose remotely here, but it sounds like there must be an old cabal somewhere in your path? perhaps in ~/.cabal/bin ?

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 5, 2015

Contributor

A whereis cabal should reveal where the binary is coming from.

On Mon, Oct 5, 2015 at 2:32 PM, Christine Murad notifications@github.com
wrote:

@gbaz https://github.com/gbaz thanks for trying to assist :)
interestingly, I have no bin folder in ~/.cabal. But the cabal command does
work in my command line.


Reply to this email directly or view it on GitHub
#221 (comment)
.

Contributor

gbaz commented Oct 5, 2015

A whereis cabal should reveal where the binary is coming from.

On Mon, Oct 5, 2015 at 2:32 PM, Christine Murad notifications@github.com
wrote:

@gbaz https://github.com/gbaz thanks for trying to assist :)
interestingly, I have no bin folder in ~/.cabal. But the cabal command does
work in my command line.


Reply to this email directly or view it on GitHub
#221 (comment)
.

@christinem

This comment has been minimized.

Show comment
Hide comment
@christinem

christinem Oct 5, 2015

@gbaz Surprisingly, nothing comes up when I run that command. I deleted my earlier comment cause I thought I was confused, but yes, I don't have a bin folder in ~/.cabal, and whereis cabal outputs nothing.

@gbaz Surprisingly, nothing comes up when I run that command. I deleted my earlier comment cause I thought I was confused, but yes, I don't have a bin folder in ~/.cabal, and whereis cabal outputs nothing.

@christinem

This comment has been minimized.

Show comment
Hide comment
@christinem

christinem Oct 5, 2015

The cabal binary is located in ~/Library/Haskell/bin on my machine. For extra measure, I removed ~/.cabal/bin from my path, but the cabal: /usr/bin/ghc-pkg: does not exist still appears. Should it be using cabal from a different location?

The cabal binary is located in ~/Library/Haskell/bin on my machine. For extra measure, I removed ~/.cabal/bin from my path, but the cabal: /usr/bin/ghc-pkg: does not exist still appears. Should it be using cabal from a different location?

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 5, 2015

Contributor

it should be using the one from /usr/local/bin which should symlink to something inside your /Library/Frameworks/... iirc.

Contributor

gbaz commented Oct 5, 2015

it should be using the one from /usr/local/bin which should symlink to something inside your /Library/Frameworks/... iirc.

@christinem

This comment has been minimized.

Show comment
Hide comment
@christinem

christinem Oct 5, 2015

@gbaz I found the symlink, but when I try to run cabal from there, my command line completely hangs. Only the one in ~/Library/Haskell/bin works. Suffice to say I guess my testing shows that the candidate installer did not work for me.

@gbaz I found the symlink, but when I try to run cabal from there, my command line completely hangs. Only the one in ~/Library/Haskell/bin works. Suffice to say I guess my testing shows that the candidate installer did not work for me.

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 5, 2015

Contributor

Ok, thanks for the feedback! Appreciated.

Contributor

gbaz commented Oct 5, 2015

Ok, thanks for the feedback! Appreciated.

@christinem

This comment has been minimized.

Show comment
Hide comment
@christinem

christinem Oct 5, 2015

No problem, thanks for the help though! I'll keep tracking the issues here to see if a fix comes up.

No problem, thanks for the help though! I'll keep tracking the issues here to see if a fix comes up.

@mgadda

This comment has been minimized.

Show comment
Hide comment
@mgadda

mgadda Oct 6, 2015

@gbaz The candidate installer was a success for me.

I did however, have to remove ~/.cabal and ~/Library/Haskell entirely as well run sudo /Library/Haskell/bin/uninstall-hs all --remove to ensure my system was totally Haskell free. Without which, I also experienced issues with some particular version of cabal hanging as mentioned by @christinem. For posterity, my PATH looks like:

/Users/mgadda/Library/Haskell/bin 
/usr/local/bin
/usr/local/sbin
/usr/local/bin 
/usr/bin 
/bin 
/usr/sbin 
/sbin

mgadda commented Oct 6, 2015

@gbaz The candidate installer was a success for me.

I did however, have to remove ~/.cabal and ~/Library/Haskell entirely as well run sudo /Library/Haskell/bin/uninstall-hs all --remove to ensure my system was totally Haskell free. Without which, I also experienced issues with some particular version of cabal hanging as mentioned by @christinem. For posterity, my PATH looks like:

/Users/mgadda/Library/Haskell/bin 
/usr/local/bin
/usr/local/sbin
/usr/local/bin 
/usr/bin 
/bin 
/usr/sbin 
/sbin
@teirich

This comment has been minimized.

Show comment
Hide comment
@teirich

teirich Oct 8, 2015

^ new binary did the trick for me on El Captain, thanks for fix

teirich commented Oct 8, 2015

^ new binary did the trick for me on El Captain, thanks for fix

@gbaz

This comment has been minimized.

Show comment
Hide comment
@gbaz

gbaz Oct 25, 2015

Contributor

closing as fixed

Contributor

gbaz commented Oct 25, 2015

closing as fixed

@gbaz gbaz closed this Oct 25, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment