在Linux上从Source构建FXRuby时出错

时间:2011-01-28 05:58:01

标签: ubuntu-10.04 fxruby

我在从源代码构建FXRuby时遇到了问题。以下是我所做的步骤。

  1. http://rubyforge.org/frs/?group_id=300&release_id=41247下载源代码,点击FXRuby-1.6.19.tar.gz。

  2. 提取文件

    $ tar xzf FXRuby-1.6.19.tar.gz

  3. 按照 doc / build.html

    中的说明操作

    $ cd FXRuby-1.6.19

    $ ruby​​ install.rb config - \  --with-fox-include = / home / sambath / FXRuby-1.6.19 / ext / fox16 / include --with-fox-lib = / home / sambath / FXRuby-1.6.19 / lib / fox16

  4. 这是错误消息。

    **********************************************************************
    *                            Hey!                                    *
    *                    Where is FOX installed?                         *
    *                                                                    *
    * I couldn't locate 'fxver.h' in any of the following directories:   *
    *                                                                    *
    *   /home/sambath/FXRuby-1.6.19/ext/fox16/include
    *   /usr/include/fox-1.6
    *   /usr/local/include/fox-1.6
    *   /sw/include/fox-1.6
    *   /opt/local/include/fox-1.6
    *                                                                    *
    * Please specify the locations for the FOX header files and library  *
    * using the --with-fox-include and --with-fox-lib options to         *
    * extconf.rb as described in the FXRuby installation instructions.   *
    **********************************************************************
    

    我已检查目录 /home/sambath/FXRuby-1.6.19/ext/fox16/include ,但我找不到该目录的文件。它在哪里?我正在使用Ubuntu 10.04。

    谢谢。

1 个答案:

答案 0 :(得分:0)

Sambath,听起来你还没有安装FOX,或者你已经将它安装在非标准位置;我猜它是前者。请参阅https://github.com/lylejohnson/fxruby/wiki/Setting-Up-a-Linux-Build-Environment上有关如何在Ubuntu系统上设置构建环境(包括FOX)的说明。