我正在尝试在我的Mac,Yosemite版本10.10.1上安装一个软件(GISMO - Sketchmap for VMD)。不幸的是,我再次得到相同的错误时间。我知道它很可能找不到东西。目录
Anthonys-MacBook-Pro:bin acnash$ pwd
/Library/Developer/CommandLineTools/usr/bin
确实存在,并且存在make可执行文件。不幸的是,我调整Make文件的经验有限。
>sudo make
Password:
/Library/Developer/CommandLineTools/usr/bin/make -C libs all
make: *** [libs] Error 2
make.in文件的内容:
# COMPILER AND COMPILER FLAGS
CXX=gcc
CXXFLAGS:=$(CXXFLAGS) -O3 -ftracer -floop-optimize -funroll-loops
# AUTOMATIC DEPENDENCY GENERATION
MAKEDEPEND=gcc -M $(CXXFLAGS)
# INCLUDES AND LINKER FLAGS
# Lapack includes and linking
ILAPACK=
LLAPACK=-llapack
TBSRC=../libs/
LDFLAGS=-L$(TBSRC) -ltoolbox $(LLAPACK)
CXXFLAGS:=$(CXXFLAGS) -I$(TBSRC) $(ILAPACK)
和Makefile的内容:
.PHONY: all clean libs tools distclean
all: libs tools
tools: libs
$(MAKE) -C tools all
libs:
$(MAKE) -C libs all
clean:
$(MAKE) -C libs clean
$(MAKE) -C tools clean
distclean: clean
rm -f bin/* libs/libtoolbox.a
这是libs / Makefile的内容
-include ../make.in
.PHONY: all clean
SOURCES=$(shell ls *.cpp)
OBJECTS=$(SOURCES:.cpp=.o)
DEPENDS=$(SOURCES:.cpp=.d)
all: libtoolbox.a
libtoolbox.a: $(OBJECTS)
ar rcs libtoolbox.a $(OBJECTS)
-include $(DEPENDS)
%.d: %.cpp
$(MAKEDEPEND) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
clean:
rm -f $(OBJECTS) $(DEPENDS)
从源根运行make --debug = v后,即/Users/acnash/sketchmap-0.2
Anthonys-MBP:libs acnash$ make --debug=v
GNU Make 3.81
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
Reading makefiles...
Reading makefile `Makefile'...
Reading makefile `../make.in' (search path) (don't care) (no ~ expansion)...
Reading makefile `libclparser.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `libfmblas.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `libinterpol.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `libioparser.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `liblinalg.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `libminsearch.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `librndgen.d' (search path) (don't care) (no ~ expansion)...
Reading makefile `libtb.d' (search path) (don't care) (no ~ expansion)...
Updating goal targets....
Considering target file `all'.
File `all' does not exist.
Considering target file `libtoolbox.a'.
Considering target file `libclparser.o'.
Pruning file `libclparser.cpp'.
Pruning file `libclparser.cpp'.
Pruning file `clparser.hpp'.
Pruning file `tbdefs.hpp'.
Pruning file `/usr/include/c++/4.6/valarray'.
Finished prerequisites of target file `libclparser.o'.
Giving up on target file `libclparser.o'.
Finished prerequisites of target file `libtoolbox.a'.
Giving up on target file `libtoolbox.a'.
Finished prerequisites of target file `all'.
Giving up on target file `all'.
我将非常感谢任何帮助。
提前致谢, 安东尼