首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装/编译asciidoctor-数学gem

无法安装/编译asciidoctor-数学gem
EN

Stack Overflow用户
提问于 2016-09-04 08:31:45
回答 1查看 441关注 0票数 1

在OSX上,根据说明,我已经安装了brew install glib gdk-pixbuf cairo pango cmake,安装了字体,甚至尝试了brew link gettext --force (但编译错误似乎与此无关…)

下面是发生的情况:

代码语言:javascript
复制
$ 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

我也在Ubuntu上尝试过:

代码语言:javascript
复制
$ 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

超出了我的能力范围。我很乐意让它在这两个平台上工作。如有任何故障排除建议,欢迎光临。

EN

回答 1

Stack Overflow用户

发布于 2016-10-03 18:38:50

我在Ubuntu 16.04上遇到了同样的问题,它通过以下命令进行了故障排除。

代码语言:javascript
复制
sudo MATHEMATICAL_SKIP_STRDUP=1 gem install mathematical
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39312532

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档