tags:

views:

6

answers:

0

I'm trying to install the ruby link-parser as per http://deveiate.org/projects/Ruby-LinkParser

Running through 'make' i get the following error

/usr/include/wchar.h:53 error: parse error before '{' token
/usr/include/wchar.h:63 error: parse error before '}' token
make[2]: *** [analyze-linkage.lo] Error 1
make[2]: Leaving directory '/home/Pete/rails3_beta/link-grammar-4.6.7/link-grammar'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/Pete/rails3_beta/link-grammar-4.6.7/link-grammar'
make: ** [all-recursive] Error 1

I opened up the wchar.h file and went to line 53, but there is no '{' character, same with line 63 (or anywhere in the file actually).

The apparently offending line

Line 53

size_t  _EXFUN(mbrtowc, (wchar_t * , const char * , size_t, mbstate_t *));

and line 63

size_t  _EXFUN(wcrtomb, (char * , wchar_t, mbstate_t *));

Any suggestions on what this error could be, or how to correct it?

I'm using ruby 1.8.7, and rails 3 beta, but I don't believe this is actually touching any of the rails stuff.