1. 程式人生 > >【larbin執行./configure時出錯】解決辦法(Fedora下安裝makedepend工具)

【larbin執行./configure時出錯】解決辦法(Fedora下安裝makedepend工具)

錯誤資訊:

$ ./configure
checking whether you requested dynamic linking... yes, by default
checking for gcc... gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking for ranlib... ranlib
checking for a BSD compatible install... /usr/bin/install -c
checking for poll... yes
checking for socket... yes
checking for inet_ntoa... yes
checking for tsearch... yes
checking for INADDR_LOOPBACK... found
checking for inet_aton... yes
checking inlines... yes
checking __attribute__((,,))... yes
checking __attribute__((noreturn))... yes
checking __attribute__((const))... yes
checking __attribute__((format...))... yes
checking for sys/select.h... yes
creating ./config.status
creating config.h
config.h is unchanged
(cd src; gmake dep)
gmake[1]: 進入目錄“/home/jb/WebMining/larbin-2.6.3/src”
cp ../config.h .
for d in utils interf fetch; do (cd $d; gmake dep-in); done
gmake[2]: 進入目錄“/home/jb/WebMining/larbin-2.6.3/src/utils”
makedepend -f- -I.. -Y *.cc 2> /dev/null > .depend
gmake[2]: *** [dep-in] 錯誤 127
gmake[2]: 離開目錄“/home/jb/WebMining/larbin-2.6.3/src/utils”
gmake[2]: 進入目錄“/home/jb/WebMining/larbin-2.6.3/src/interf”
makedepend -f- -I.. -Y *.cc 2> /dev/null > .depend
gmake[2]: *** [dep-in] 錯誤 127
gmake[2]: 離開目錄“/home/jb/WebMining/larbin-2.6.3/src/interf”
gmake[2]: 進入目錄“/home/jb/WebMining/larbin-2.6.3/src/fetch”
makedepend -f- -I.. -Y *.cc 2> /dev/null > .depend
gmake[2]: *** [dep-in] 錯誤 127
gmake[2]: 離開目錄“/home/jb/WebMining/larbin-2.6.3/src/fetch”
gmake[1]: *** [dep] 錯誤 2
gmake[1]: 離開目錄“/home/jb/WebMining/larbin-2.6.3/src”
gmake: *** [dep] 錯誤 2

原因是因為缺少 makedepend 工具。

Fedora 下安裝方法為執行命令: # yum install imake

# yum install imake

==========================================================================
 Package        架構          版本                  倉庫             大小
==========================================================================
正在安裝:
 imake          i686          1.0.5-4.fc17          fedora          256 k

事務概要
==========================================================================
安裝  1 軟體包

總下載量:256 k
安裝大小:1.2 M
確定嗎?[y/N]:y
下載軟體包:
imake-1.0.5-4.fc17.i686.rpm                        | 256 kB     00:00     
執行事務檢查
執行事務測試
事務測試成功
執行事務
  正在安裝    : imake-1.0.5-4.fc17.i686                               1/1
  Verifying   : imake-1.0.5-4.fc17.i686                               1/1

已安裝:
  imake.i686 0:1.0.5-4.fc17                                               

完畢!

其他系統可以嘗試以下命令: apt-get install xutils-devmakedepend

參考http://mylovejsj.blog.163.com/blog/static/3867397520101116114833743/