如何在 Solaris 上编译 RDiscount?

发布于 2024-07-14 05:58:01 字数 845 浏览 7 评论 0原文

我有几个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰葑 2024-07-21 05:58:01

不幸的是,fopencookie 是 glibc 的一部分,而 glibc 尚未移植到 Solaris。

使用不同的宝石。

Unfortunately fopencookie is part of glibc, and glibc has not been ported to Solaris.

Use a different gem.

§对你不离不弃 2024-07-21 05:58:01

更新 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文