2013-03-02 90 views
2

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

GNUmakefile:29: GNUmakefile:30:无法从gnustep-config获得GNUSTEP_MAKEFILES设置! GNUmakefile:31:可能gnustep-make没有正确安装, GNUmakefile:32:所以gnustep-config不在你的PATH中。您的路径目前是/ usr/local/sbin:/ usr/local/bin:/ usr/sbin:/ usr/bin:/ sbin:/ bin GNUmakefile:35: GNUmakefile GNUmakefile:33: 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。这里发生了什么?

+0

您是否安装了gnustep-make https://github.com/gnustep/gnustep-make? – 2013-03-02 18:57:47

+0

我很确定我做了。我需要将变量设置为什么? GNUstep是否应该设置它? – Melab 2013-03-14 00:23:09

+1

您需要首先获取/the/path/to/GNUstep/Makefiles/GNUstep.sh。我的/usr/local/share/GNUstep/Makefiles/GNUstep.sh然后你可以验证env变量,如果它们使用像set | grep GNUSTEP – 2013-03-16 22:44:09

回答

2

您需要源/usr/share/GNUstep/Makefiles/GNUstep.sh脚本将所有必需的GNUSTEP_*变量:

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

就我而言,我不得不源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 
相关问题