免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5452 | 回复: 7
打印 上一主题 下一主题

[FreeBSD] FreeBSD8.2下源码安装Git。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-21 14:10 |只看该作者 |倒序浏览
从Git-scm处现在源代码

解压缩
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.


请问这是什么原因?

论坛徽章:
2
白羊座
日期:2013-10-29 13:29:222015亚冠之全北现代
日期:2015-10-25 08:13:02
2 [报告]
发表于 2011-03-21 14:23 |只看该作者
用 ports 会报错吗?
你这样很容易因缺少依赖出错,即使configure成功。

论坛徽章:
0
3 [报告]
发表于 2011-03-21 14:54 |只看该作者
ports还没试过。

不过用源码安装其他软件时,有依赖的话,configure或make后,会直接提示的,不是仅仅是提示Makefile的问题。

论坛徽章:
89
水瓶座
日期:2014-04-01 08:53:31天蝎座
日期:2014-04-01 08:53:53天秤座
日期:2014-04-01 08:54:02射手座
日期:2014-04-01 08:54:15子鼠
日期:2014-04-01 08:55:35辰龙
日期:2014-04-01 08:56:36未羊
日期:2014-04-01 08:56:27戌狗
日期:2014-04-01 08:56:13亥猪
日期:2014-04-01 08:56:02亥猪
日期:2014-04-08 08:38:58程序设计版块每日发帖之星
日期:2016-01-05 06:20:00程序设计版块每日发帖之星
日期:2016-01-07 06:20:00
4 [报告]
发表于 2011-03-21 15:39 |只看该作者
gmake

pmake

论坛徽章:
0
5 [报告]
发表于 2011-03-21 20:58 |只看该作者
装postgreSQL的时候就已经安装过gmake,所以现在运行make命令,就是运行gmake。

论坛徽章:
0
6 [报告]
发表于 2011-03-21 22:04 |只看该作者
看看。。。。。。。。

论坛徽章:
0
7 [报告]
发表于 2011-03-25 14:44 |只看该作者
4楼正解。

不用ports安装的话,./configure之后使用gmake

论坛徽章:
0
8 [报告]
发表于 2011-03-27 10:43 |只看该作者
安装过GNU make,但命令中没有gmake,只有make.

在安装PostgreSQL时,用原先的make不行,装了GNU make后,再用make命令就可以了。我的理解是安装了GNU make后,再运行make命令,就是运行gmake命令。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP