Re: emacs: an old question revisited
Re: emacs: an old question revisited
- Subject: Re: emacs: an old question revisited
- From: Ian Piumarta <email@hidden>
- Date: Wed, 4 Feb 2004 10:40:36 +0100
Cath,
On 04 Feb 2004, at 05:32, Cath Lawrence wrote:
So, well, does anyone have a solution - or is it "Don't use the apple
versions of X 11 and emacs"??
I've never found any reason to avoid Apple's X11. It just works.
Apple's Emacs is fine too -- other than missing X11 support (and being
hopelessly out of date ;).
Thanks for any advice (and no, I won't use vi
Seconded. ;)
3. emacs source package straight from the gnu's mouth won't build, it
claims it doesn't recognise the system.
./configure
loading cache ./config.cache
checking host system type... powerpc-apple-darwin7.2.0
configure: error: Emacs hasn't been ported to
`powerpc-apple-darwin7.2.0' systems.
Check `etc/MACHINES' for recognized configuration names.
The last Emacs I made from source on Darwin was 21.3.50. I first
compiled it on 6.3 and have recompiled it several times since (through
7.2). It works (and has always worked) flawlessly (with Apple's X11 --
which has never exhibited anything other than exemplary behaviour). If
this version isn't too old for you, I've put a tarball of the sources
here:
http://www-sor.inria.fr/~piumarta/osx/emacs-21.3.50.1.bz2
To build it, you _must_ avoid linking against the dynamic libraries for
X11. (The 'unexec' that comes with Emacs cannot cope with relocations
in LC_DYSYMTAB sections. Linking against the static X libs seems to
cure this, at the expense of a larger binary.) Make symlinks to the
static X libs from a new directory and tell configure where to find
them; e.g:
sudo mkdir /usr/X11R6/libstatic
cd /usr/X11R6/libstatic
sudo ln -s ../lib/lib*.a ../lib/X11 .
cd -
./configure --x-libraries=/usr/X11R6/libstatic
make all
make install
The source tarball at the above URL is pre-configured for Darwin 7.2
[*], so if you put your libraries in /usr/X11R6/libstatic as above then
all you have to do is type "make all; make install".
If you have any problems building then I can make a fully-built tree
(ready for 'make install'), or a tarball containing just the installed
binaries and libs, available.
Oh, one more thing: the .emacs written by 21.3 is not quite compatible
with the 21.2 that is bundled with darwin. (If you ever run
/usr/bin/emacs you may get load errors from missing lisp libraries,
once 21.3 has taken over your .emacs.) Recommended cure: always run
/usr/local/bin/emacs and just tell it '-nw' when running in a Terminal
window [**].
Regards,
Ian
[*] A bog-standard 7.2.0 box with the most recent OS updates, Apple's
latest X11, and gcc-3.3 (1495).
[**] You might also like to try "TERM=xterm-color emacs -nw" and then
visit any file that has syntax highlighting. (I think this feature is
one of the overwhelming reasons to prefer 21.3 over 21.2, even for
terminal-based operation. ;)
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.