CentOS -bash: ./xxx/make: No such file or directory
在安裝mpfr時出現以下錯誤:
-bash: ./mpfr-3.1.2/make: No such file or directory
[root@localhost opt]# ./mpfr-3.1.2/make-bash: ./mpfr-3.1.2/make: No such file or directory[root@localhost opt]# /opt/mpfr-3.1.2/make-bash: /opt/mpfr-3.1.2/make: No such file or directory[root@localhost opt]# ../mpfr-3.1.2/make-bash: ../mpfr-3.1.2/make: No such file or directory[root@localhost opt]# mpfr-3.1.2/make-bash: mpfr-3.1.2/make: No such file or directory[root@localhost opt]# mpfr-3.1.2/configurechecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yesconfigure: error: source directory already configured; run "make distclean" there first[root@localhost opt]# ./mpfr-3.1.2/configurechecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking for gawk... gawkchecking whether make sets $(MAKE)... yesconfigure: error: source directory already configured; run "make distclean" there first[root@localhost opt]#
注意: configure可 以像下面這樣執行: mpfr-3.1.2/configure 或: ./mpfr-3.1.2/configure
但是make和make install 就不能像下面這樣執行: mpfr-3.1.2/make 或: ./mpfr-3.1.2/make
mpfr-3.1.2/make install 或: ./mpfr-3.1.2/make install