Feed on
Posts
Comments

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 2

Error: Status 1 encountered during processing.

to resolve:

  1. download the patch file found here.
  2. 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
  3. sudo port install emacs

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

One Response to “install macports emacs in snow leopard”

  1. on 03 Dec 2009 at 5:45 am Uğur Özyılmazel

    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

Did I get this wrong? Let me know!

Trackback URI | Comments RSS