install macports emacs in snow leopard
November 24th, 2009 by Lawrence David
when trying to install emacs using macports on my new snow leopard install, i got the following error:
foo://opt/local/sudo port install emacs
—>Â Computing dependencies for emacs
—>Â Fetching emacs
—>Â Verifying checksum(s) for emacs
—>Â Extracting emacs
—>Â Applying patches to emacs
—>Â Configuring emacs
—>Â Building emacs
Error: Target org.macports.build returned: shell command ” cd “/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_emacs/work/emacs-22.3″ && /usr/bin/make -j2 all ” returned error 2
Command output:                           __la_symbol_ptr 0×100152070   0×628
__program_vars  0x1001526a0    0×28
__const         0x1001526e0   0×730
__data          0x100152e20 0x1df3e8
__bss           0×100332220 0×51830
__common        0x100383a60 0x103f9
3 LC_SEGMENT_64Â Â Â Â Â Â Â Â Â 72 __LINKEDITÂ Â Â Â Â Â 0×100394000Â 0×46000
4 unknown               48
5 LC_SYMTABÂ Â Â Â Â Â Â Â Â Â Â Â Â 24
6 LC_DYSYMTABÂ Â Â Â Â Â Â Â Â Â Â 80
7 LC_LOAD_DYLINKERÂ Â Â Â Â Â 32
8 LC_UUIDÂ Â Â Â Â Â Â Â Â Â Â Â Â Â Â 24
9 LC_UNIXTHREADÂ Â Â Â Â Â Â Â 184
10 LC_LOAD_DYLIBÂ Â Â Â Â Â Â Â Â 64
11 LC_LOAD_DYLIBÂ Â Â Â Â Â Â Â Â 56
0x100dfc080 (sz:Â Â 0x3f24/Â 0x3f28)
0x100d00000 (sz:Â 0x4a6d5/ 0xfc080)
0x100afc080 (sz:Â Â 0x3f25/Â 0x3f28)
0x100a00000 (sz:Â 0xfc07f/ 0xfc080)
0x1017f8000 (sz:Â Â 0x26ca/Â 0x7fa0)
0×101000000 (sz: 0x26a7fd/0x7f8000)
0x10044c000 (sz:Â Â Â Â Â Â Â 0/Â 0×1000)
— Load Commands written to Output File —
Writing segment __PAGEZEROÂ Â Â Â Â Â @Â Â Â Â Â Â Â 0 (Â Â Â Â Â Â 0/0×100000000 @Â Â Â Â Â Â Â Â Â 0)
Writing segment __TEXTÂ Â Â Â Â Â Â Â Â Â @Â Â Â Â Â Â Â 0 (0×152000/0×152000 @ 0×100000000)
Writing segment __DATAÂ Â Â Â Â Â Â Â Â Â @ 0×152000 (0×242000/0×242000 @ 0×100152000)
section __nl_symbol_ptr at 0×152000 – 0×152070 (sz:    0×70)
section __la_symbol_ptr at 0×152070 – 0×152698 (sz:   0×628)
make[1]: *** [emacs] Error 1
make: *** [src] Error 2Error: Status 1 encountered during processing.
to resolve:
- download the patch file found here.
- install the patch: foo://opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_emacs/work/emacs-22.3/sudo patch -p0 < ~/Downloads/emacs-snow-leopard.patch
- sudo port install emacs
thanx but there is a small mistake here;
$ cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_editors_emacs/work/emacs-22.3
then;
$ sudo patch -p0 < ~/Downloads/emacs-snow-leopard.patch
then;
$ sudo port install emacs