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 0×1001526a0 0×28
__const 0×1001526e0 0×730
__data 0×100152e20 0×1df3e8
__bss 0×100332220 0×51830
__common 0×100383a60 0×103f9
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
0×100dfc080 (sz: 0×3f24/ 0×3f28)
0×100d00000 (sz: 0×4a6d5/ 0xfc080)
0×100afc080 (sz: 0×3f25/ 0×3f28)
0×100a00000 (sz: 0xfc07f/ 0xfc080)
0×1017f8000 (sz: 0×26ca/ 0×7fa0)
0×101000000 (sz: 0×26a7fd/0×7f8000)
0×10044c000 (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