2016-09-04 11 views
0

OSX에 내가 지시, brew install glib gdk-pixbuf cairo pango cmake에 따라,이 컴파일하고 글꼴을 설치하고 심지어 brew link gettext --force을 시도 할 수 없습니다 여기에 어떤 일이 발생하는지의 내 깊이의 아웃는</p> <p>(...하지만 컴파일 오류가 어쨌든 관련이없는 것)/설치 asciidoctor - 수학 보석

$ sudo gem install asciidoctor-mathematical 
... output omitted 
In file included from /usr/include/string.h:635:0, 
      from /var/lib/gems/2.3.0/gems/mathematical-1.6.7/ext/mathematical/mtex2MML/src/../deps/uthash/uthash.h:29, 
      from /var/lib/gems/2.3.0/gems/mathematical-1.6.7/ext/mathematical/mtex2MML/src/environment.h:4, 
      from /var/lib/gems/2.3.0/gems/mathematical-1.6.7/ext/mathematical/mtex2MML/src/mtex2MML.h:12, 
      from lasem_overrides.c:5: 
/var/lib/gems/2.3.0/gems/mathematical-1.6.7/ext/mathematical/mtex2MML/src/../deps/uthash/../strdup/strdup.h:24:1: error: expected identifier or ‘(’ before ‘__extension__’ 
strdup(const char *str); 
^ 
make: *** [lasem_overrides.o] Error 1 

:

$ sudo gem install asciidoctor-mathematical 
... output omitted 
In file included from /usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/galloca.h:32: 
/usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/gtypes.h:422:3: error: '_GStaticAssertCompileTimeAssertion_0' declared as an array with a negative size 
G_STATIC_ASSERT(sizeof (unsigned long long) == sizeof (guint64)); 
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
/usr/local/Cellar/glib/2.48.1/include/glib-2.0/glib/gmacros.h:232:103: note: expanded from macro 'G_STATIC_ASSERT' 
#define G_STATIC_ASSERT(expr) typedef char G_PASTE (_GStaticAssertCompileTimeAssertion_, __COUNTER__)[(expr) ? 1 : -1] G_GNUC_UNUSED 
                            ^~~~~~~~~~~~~~~ 
1 error generated. 
make: *** [lasem_overrides.o] Error 1 

또한 우분투에 이동을했다. 어느 플랫폼에서든 작동하도록하고 싶습니다. 모든 문제 해결 제안이 감사하게 생각합니다.

답변

1

우분투에서 같은 문제가 발생했습니다. 16.04 다음 명령으로 문제를 해결했습니다.

sudo MATHEMATICAL_SKIP_STRDUP=1 gem install mathematical