我试图用make
安装包去,但它返回如下:化妆找不到文件
[email protected]:~/GoMySQL$ make
Makefile:1: :/home/dan/.go/go/src/Make.inc: No such file or directory
Makefile:17: :/home/dan/.go/go/src/Make.pkg: No such file or directory
make: *** No rule to make target `:/home/dan/.go/go/src/Make.pkg'. Stop.
,但丢失的文件都存在,如果我跑ls
:
[email protected]:~/GoMySQL$ ls /home/dan/.go/go/src/
all.bash env.bash make.bash Make.common quietgcc.bash
all-qemu.bash lib9 Make.ccmd Make.inc run.bash
clean.bash libbio Make.clib Make.pkg sudo.bash
cmd libmach Make.cmd pkg version.bash
这是为什么?
编辑:的Makefile:
include $(GOROOT)/src/Make.inc
TARG=mysql
GOFILES=mysql.go\
types.go\
const.go\
error.go\
password.go\
reader.go\
writer.go\
packet.go\
convert.go\
handler.go\
result.go\
statement.go
include $(GOROOT)/src/Make.pkg
那么'GOROOT'中有什么? – 2011-05-14 19:05:00
@mu太短:我猜它被分配为'GOROOT =:/ path',即':='被误输入为'=:' – ninjalj 2011-05-14 19:12:10
哦,'GOROOT'被分配到了Makefile之外?然后我的下一个猜测是'出口GOROOT = $ EMPTY_VAR:$ GOROOT' – ninjalj 2011-05-14 19:17:01