Chinaunix

标题: FreeBSD8.2下源码安装Git。 [打印本页]

作者: sunable    时间: 2011-03-21 14:10
标题: FreeBSD8.2下源码安装Git。
从Git-scm处现在源代码
fetch http://www.kernel.org/pub/software/scm/git/git-1.7.4.1.tar.gz

解压缩
tar xf git-1.7.4.1.tar.gz

进入文件夹
cd git-1.7.4.1

源码配置
./configure

此步进行完,最后两句是
configure: creating ./config.status
config.status: creating config.mak.autogen

然后就make,但是提示错误。
最后的几句为
"Makefile", line 1531: Need an operator
"Makefile", line 1533: Need an operator
"Makefile", line 1534: warning: duplicate script for target "ifdef" ignored
"Makefile", line 1535: Need an operator
"Makefile", line 1536: Need an operator
"Makefile", line 1537: warning: duplicate script for target "ifdef" ignored
"Makefile", line 1538: Need an operator
"Makefile", line 1539: Need an operator
"Makefile", line 1540: warning: duplicate script for target "ifdef" ignored
"Makefile", line 1541: warning: duplicate script for target "ifdef" ignored
"Makefile", line 1542: Need an operator
"Makefile", line 1544: Need an operator
"Makefile", line 1547: Need an operator
"Makefile", line 1549: Need an operator
"Makefile", line 1550: warning: duplicate script for target "ifdef" ignored
"Makefile", line 1551: Need an operator
"Makefile", line 1553: Missing dependency operator
"Makefile", line 1555: Need an operator
"Makefile", line 1557: Missing dependency operator
"Makefile", line 1559: Need an operator
"Makefile", line 1561: Missing dependency operator
"Makefile", line 1563: Need an operator
Error expanding embedded variable.


请问这是什么原因?
作者: miniqq    时间: 2011-03-21 14:23
用 ports 会报错吗?
你这样很容易因缺少依赖出错,即使configure成功。
作者: sunable    时间: 2011-03-21 14:54
ports还没试过。

不过用源码安装其他软件时,有依赖的话,configure或make后,会直接提示的,不是仅仅是提示Makefile的问题。
作者: fender0107401    时间: 2011-03-21 15:39
gmake

pmake
作者: sunable    时间: 2011-03-21 20:58
装postgreSQL的时候就已经安装过gmake,所以现在运行make命令,就是运行gmake。
作者: skaidhuf    时间: 2011-03-21 22:04
看看。。。。。。。。
作者: wenheping    时间: 2011-03-25 14:44
4楼正解。

不用ports安装的话,./configure之后使用gmake
作者: sunable    时间: 2011-03-27 10:43
安装过GNU make,但命令中没有gmake,只有make.

在安装PostgreSQL时,用原先的make不行,装了GNU make后,再用make命令就可以了。我的理解是安装了GNU make后,再运行make命令,就是运行gmake命令。




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2