2013-03-02 86 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 
相關問題