我试图在Mac上安装this library。我首先输入了./autogen.sh
,它输出了
lindys-MacBook-Pro:secp256k1-master satya$ ./autogen.sh
glibtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'build-aux'.
glibtoolize: copying file 'build-aux/ltmain.sh'
glibtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'build-aux/m4'.
glibtoolize: copying file 'build-aux/m4/libtool.m4'
glibtoolize: copying file 'build-aux/m4/ltoptions.m4'
glibtoolize: copying file 'build-aux/m4/ltsugar.m4'
glibtoolize: copying file 'build-aux/m4/ltversion.m4'
glibtoolize: copying file 'build-aux/m4/lt~obsolete.m4'
configure.ac:10: installing 'build-aux/compile'
configure.ac:9: installing 'build-aux/missing'
Makefile.am: installing 'build-aux/depcomp'
然后我运行了make
,它显示了以下错误。
lindys-MacBook-Pro:secp256k1-master satya$ configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /Applications/SageMath/config/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
configure: error: source directory already configured; run "make distclean" there first
输入make distclean
时会显示
lindys-MacBook-Pro:secp256k1-master satya$ sudo make distclean
Password:
make: *** No rule to make target `distclean'. Stop.
lindys-MacBook-Pro:secp256k1-master satya$ sudo make clean
make: *** No rule to make target `clean'. Stop.
有什么办法解决这个问题吗?
答案 0 :(得分:0)
我解决了这个问题。我首先删除了build-aux
目录,然后再次运行了./autogen.sh
和./configure
命令。如果您在其他软件包中遇到类似的错误,请尝试删除构建目录,然后再次键入./configure
。