Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Emacs fails to install #4650

Closed
brodo opened this issue Mar 13, 2011 · 27 comments
Closed

Emacs fails to install #4650

brodo opened this issue Mar 13, 2011 · 27 comments

Comments

@brodo
Copy link

brodo commented Mar 13, 2011

brew install -v --cocoa output:
https://gist.github.com/868114

I've got XCode 4 installed and symlinked /usr/bin/cc to /usr/bin/gcc.

@adamv
Copy link
Contributor

adamv commented Mar 13, 2011

CC: /usr/bin/cc
CXX: /usr/bin/c++ => /usr/bin/c++-4.2
LD: /usr/bin/cc

I'm only seeing c++ as a symlink here in your --config.

@brodo
Copy link
Author

brodo commented Mar 13, 2011

I deleted /usr/bin/cc and added a new symlink, still the same error:
https://gist.github.com/868404

@waltersuen
Copy link

Specifying "--use-gcc" doesn't make any difference.

@waltersuen
Copy link

Please vote it to the top of the issue list.

@MikeMcQuaid
Copy link
Member

adamv, we should try and fix Xcode 4 issues from now on I think rather than getting people to change symlinks.

@adamv
Copy link
Contributor

adamv commented Mar 14, 2011

Sure; there's are two existing issues one with a general Xcode 4 fix and one with Emacs specific ones; someone on 4 should review those changes and commit them.

@MikeMcQuaid
Copy link
Member

Cool. Can you link them here?

@brodo
Copy link
Author

brodo commented Mar 14, 2011

Thanks for working on it so fast.

@adamv
Copy link
Contributor

adamv commented Mar 14, 2011

@kristianhellquist
Copy link

Any workaround? Or am I missing something?

@djui
Copy link

djui commented Apr 14, 2011

Having the same problem. Gist here: https://gist.github.com/919126

@dustinchilson
Copy link
Contributor

I am also having this problem with Xcode 4. Gist: https://gist.github.com/921983

@rgm
Copy link
Contributor

rgm commented Apr 15, 2011

I just had success yesterday with brew install --HEAD --use-git-head emacs with on a machine that only had Xcode 4.0.1 installed, ie. no gcc 4.0.x present.

@dustinchilson
Copy link
Contributor

@rgm, thanks, but that still fails with --cocoa - https://gist.github.com/922020 and without https://gist.github.com/922035

@dustinchilson
Copy link
Contributor

Using the bazaar repo HEAD worked. brew install emacs --HEAD --cocoa

@shosti
Copy link
Contributor

shosti commented Apr 17, 2011

Same problem: https://gist.github.com/923751 (--HEAD --cocoa worked, but not 23.3)

@kristianhellquist
Copy link

 brew install emacs --HEAD --cocoa 

Worked for me, thanks @dustinchilson

@mckoss
Copy link

mckoss commented Apr 17, 2011

brew install bazaar
brew install emacs --HEAD --cocoa

Cloning the emacs trunk has taken over 30 minutes, so far .. and still not done. Is this really the best way to get emacs 23?

@kristianhellquist
Copy link

@mckoss --HEAD parameter will install emacs 24

@mckoss
Copy link

mckoss commented Apr 17, 2011

@meeiw - Quite right. thanks.

After all this - still seems like emacs is not installed property. Running

$ emacs
Warning: arch-dependent data dir (/private/tmp/homebrew-emacs-HEAD-TIw4/nextstep/Emacs.app/Contents/MacOS//libexec/emacs/24.0.50/i386-apple-darwin10.7.0/) does not exist.

And keys typed go into my terminal window - not the new window opened by emacs.

This is probably no longer a brew issue - but I would not that emacs is behaving differently from the brew install than the natively installed emacs in OSX.

@lancepantz
Copy link

brew install bazaar
brew install emacs --HEAD --cocoa

I was experiencing the same issue, and this fixed it. thanks

@mbauman
Copy link

mbauman commented May 6, 2011

This was fixed in the emacs source, identified as bug 8223. Applying the diff from the commit that resolves the issue allows emacs to be built by homebrew.

I put the diff into a gist: https://gist.github.com/959440

nominolo added a commit to nominolo/homebrew that referenced this issue May 13, 2011
@khera
Copy link

khera commented May 18, 2011

Same issue for me. https://gist.github.com/978626

@khera
Copy link

khera commented May 18, 2011

The patched emacs.rb from nominolo above fixed the problem, and emacs builds and runs fine now.

@tjittedevries
Copy link

For me the patched emacs.rb from nominoloa above also fixed the problem.
Isn't it possible to include this patch in de default formula somehow?

@nominolo
Copy link

nominolo commented Jun 1, 2011

There is a pending pull request, but I don't know what to do to get it in.

@adamv
Copy link
Contributor

adamv commented Jun 13, 2011

Pushed a fix for compilation with Xcode 4.

@adamv adamv closed this as completed Jun 13, 2011
@Homebrew Homebrew locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.