presidentbeef / brat

Brat is a little language for people who don't like to be told what to do.
https://www.brat-lang.info/
93 stars 6 forks source link

missing requirements for mac os snow leopard ( -> documentation) #4

Closed benunt closed 13 years ago

benunt commented 13 years ago

Testsystem:

fresh install on: mac os x v. 10.6.7 gcc version 4.2.1 (Apple Inc. build 5664) ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0] treetop (1.4.9)

$ ./build

Error Message 1.:

make -C src/oniguruma -f rex_onig.mak gcc -bundle -undefined dynamic_lookup -o rex_onig.so.2.4 lonig.o lonig_f.o ../common.o -L/Users/ben/src/brat/presidentbeef-brat-d73f103/bin/lua//lib -lonig ld: library not found for -lonig

Solution:

brew install oniguruma

Error Message 2

command 'tt' is missing

Hack:

I hard coded tt path ~/.gem/... into build.sh

regards ben

presidentbeef commented 13 years ago

Hi Ben,

Thank you for reporting this, it is very appreciated.

Oniguruma is actually included with Brat and a local copy should have been built. It looks like what happened is that the path in lrexlib's make file was incorrect. I've hopefully fixed this with 2521cbc2bd9a3f58d189c4b414e2a814207d2000

For the Treetop issue, if the binaries from gems are not in PATH, then I don't know of a generic solution to find them. So I have added what I hope is a helpful error message for when this happens.

Thanks again!

presidentbeef commented 13 years ago

Ben,

I'm going to assume this is fixed. Feel free to reopen this issue or another one if there are any problems.