【问题标题】:How do I set GNUSTEP_MAKEFILES and what do I set it to?如何设置 GNUSTEP_MAKEFILES 以及将其设置为什么?
【发布时间】:2013-03-02 00:38:07
【问题描述】:

我在 Windows 7 上的 VirtualBox 4.2.6 中运行 Ubuntu 12.04.1 LTS。我正在尝试从official repository on GitHub 下载的源代码构建 GNUstep Base,而不是使用 APT 安装 GNUstep 的任何部分(不要问)。当我在终端输入sudo make install 时,我得到了

GNUmakefile:29: GNUmakefile:30:无法从 gnustep-config 获取 GNUSTEP_MAKEFILES 设置! GNUmakefile:31: 也许 gnustep-make 没有正确安装, GNUmakefile:32:所以 gnustep-config 不在你的 PATH 中。 GNUmake 文件:33: GNUmakefile:34: 你的 PATH 当前是 /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin GNUmake 文件:35: GNUmakefile:40: * 你需要在编译前设置 GNUSTEP_MAKEFILES!停下来。

呵呵(讽刺)。我的PATH 变量实际上设置为/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/GNUstep/System/Tools:/usr/GNUstep/System/Library/Makefiles。这是怎么回事?

【问题讨论】:

  • 你安装了 gnustep-make github.com/gnustep/gnustep-make 吗?
  • 我很确定我做到了。我需要将变量设置为什么? GNUstep Make 应该设置它吗?
  • 你需要先获取 /the/path/to/GNUstep/Makefiles/GNUstep.sh。我的在 /usr/local/share/GNUstep/Makefiles/GNUstep.sh 然后你可以验证 env 变量是否使用 set | 之类的命令正确设置grep GNUSTEP

标签: gnustep


【解决方案1】:

您需要获取 /usr/share/GNUstep/Makefiles/GNUstep.sh 脚本来设置所有必需的 GNUSTEP_* 变量:

$ . /usr/share/GNUstep/Makefiles/GNUstep.sh         # or
$ . /usr/local/share/GNUstep/Makefiles/GNUstep.sh
$ make
...

【讨论】:

    【解决方案2】:

    就我而言,我必须以 root 身份获取 GNUstep.sh 以允许安装工作。

    $ sudo su
    # . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh
    # export GNUSTEP_SYSTEM_LIBRARY=/usr/GNUstep/System/Library/
    # export PATH=$PATH:/user/GNUstep/System/Tools/
    # ./configure
    # make
    # make install
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-01
      • 1970-01-01
      相关资源
      最近更新 更多