baohaojun / ajoke

Abducting Java Onto Emacs, K is silent.
GNU General Public License v2.0
73 stars 3 forks source link

Support for OS X #7

Closed ldangelo closed 10 years ago

ldangelo commented 10 years ago

Has anyone been successful getting ajoke to run on OS X? I'm currently working on getting it running... There are some differences with how OS X handles command line args for things like grep, etc...

I'm just checking to make sure I'm not redoing something that has been done. When I get it working I am happy to supply patches.

ldangelo commented 10 years ago

The grep problem turns out to be that grep -P is not supported on the builtin grep for os x. To work around I used homebrew's version of grep.

baohaojun commented 10 years ago

Yay, thanks! As far as I know, there's no work done on OS X for ajoke yet. So please go ahead and patches are welcome. And yes, the PCRE (perl compatible regular expressions) flavor of grep is being used, so OS X's native version of grep is not enough.

baohaojun commented 10 years ago

This past weekend, I tried to make Ajoke work with OS X, and it worked nearly out of the box! I just need to make sure the Mac Ports suite of GNU tools in /opt/local/bin are used instead of those that comes with OS X in /usr/bin. So now in my .bashrc: export PATH=/opt/local/bin:$PATH, then make sure my Emacs is also started from this environment.