如何在 Solaris 上编译 RDiscount?
我有几个 Solaris 10 机器,我希望在那里运行 RDiscount。 (它们是 Joyent 加速器,有一个有点定制的、BSD 式的用户空间,以防万一。)
我知道 Maruku、rpeg-markdown 和 BlueCloth 的其他 ruby 替代品,但最初我想选择R折扣。
这是我尝试安装它时得到的结果:
$ sudo gem install rdiscount Password: Building native extensions. This could take a while... ERROR: Error installing rdiscount: ERROR: Failed to build gem native extension. /opt/local/bin/ruby18 extconf.rb install rdiscount checking for random()... yes checking for srandom()... yes checking for funopen()... no checking for fopencookie()... no *** extconf.rb failed *** [snip] extconf.rb:11: No funopen or fopencookie support available. (RuntimeError)
显然安装失败,因为它既找不到 funopen
也找不到 fopencookie
。
说实话,我不太知道这些是什么。 那么,关于我需要做什么才能编译它的任何指示?
I have a few Solaris 10 boxes and I'd like to have RDiscount running there. (They are Joyent accelerators, which have a somewhat customized, BSD-ish, userland, in case it matters.)
I'm aware of Maruku, rpeg-markdown and other ruby alternatives to BlueCloth, but initially I'd like to go with RDiscount.
Here's what I get when trying to install it:
$ sudo gem install rdiscount Password: Building native extensions. This could take a while... ERROR: Error installing rdiscount: ERROR: Failed to build gem native extension. /opt/local/bin/ruby18 extconf.rb install rdiscount checking for random()... yes checking for srandom()... yes checking for funopen()... no checking for fopencookie()... no *** extconf.rb failed *** [snip] extconf.rb:11: No funopen or fopencookie support available. (RuntimeError)
Apparently the installation fails because it cannot find neither funopen
nor fopencookie
.
And to tell the truth, I have little idea what these are. So, any pointers on what I'd need to do to get this to compile?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不幸的是,
fopencookie
是 glibc 的一部分,而glibc
尚未移植到 Solaris。使用不同的宝石。
Unfortunately
fopencookie
is part of glibc, andglibc
has not been ported to Solaris.Use a different gem.
更新 2:
rdiscount 1.3.4 在 Solaris 上安装得很好,这要感谢 David Parsons、Ryan Tomayko 和 Joyent 团队和社区在他们的论坛。
update 2:
rdiscount 1.3.4 installs fine on Solaris, thanks to the help and hard work of the David Parsons, Ryan Tomayko, and the Joyent team and community at their forums.