作者 主題: make: *** 没有指明目标并且找不到 makefile。 停止(問題已解決)  (閱讀 13205 次)

0 會員 與 1 訪客 正在閱讀本文。

chinaok

  • 可愛的小學生
  • *
  • 文章數: 12
    • 檢視個人資料
[root@localhost ~]# tar zxvf php-5.2.6.tar.gz
[root@localhost ~]# cd php-5.2.6
[root@localhost php-5.2.6]#]#./configure --prefix=//usr/local/mysql/php --with-mysql=//usr/local/mysql/mysql --with-apxs2=//usr/locall/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=//usr/local/mysql/php/etc 
[root@localhost php-5.2.6]#make
make: *** 没有指明目标并且找不到 makefile。 停止。

请各位高手帮我看下
« 上次編輯: 2008-11-14 11:28 由 chinaok »

Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
回覆: 找不到 makefile
« 回覆 #1 於: 2008-11-13 15:20 »
解開壓縮包後直接就 make 嗎?
有沒有先看過 INSTALL 這個文件?

Yanny

  • 憂鬱的高中生
  • ***
  • 文章數: 177
    • 檢視個人資料
回覆: 找不到 makefile
« 回覆 #2 於: 2008-11-13 15:45 »
configure --> make --> make install

Yamaka

  • 俺是博士!
  • *****
  • 文章數: 4913
    • 檢視個人資料
    • http://www.ecmagic.com
[root@localhost ~]# tar zxvf php-5.2.6.tar.gz
[root@localhost ~]# cd php-5.2.6
[root@localhost php-5.2.6]#]#./configure --prefix=//usr/local/mysql/php --with-mysql=//usr/local/mysql/mysql --with-apxs2=//usr/locall/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=//usr/local/mysql/php/etc 
[root@localhost php-5.2.6]#make
make: *** 没有指明目标并且找不到 makefile。 停止。

请各位高手帮我看下

configure 過程有沒有什麼錯誤訊息?


PS: 建議樓主不要用修改文章的方式
直接用回覆的方式可以保持討論串問題的完整!!

chinaok

  • 可愛的小學生
  • *
  • 文章數: 12
    • 檢視個人資料
configure 過程中是没有出错的

chinaok

  • 可愛的小學生
  • *
  • 文章數: 12
    • 檢視個人資料
[root@localhost php-5.2.6]# ./configure --prefix=//usr/local/mysql/php --with-mysql=//usr/local/mysql/mysql --with-apxs2=//usr/locall/apache/bin/apxs --enable-track-vars --enable-force-cgi-redirect --with-config-file-path=//usr/local/mysql/php/etc
loading cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
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 icc... no
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... yes
checking for system library directory... lib
checking whether to enable runpaths... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.12.0 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for bison... bison -y
checking for bison version... 2.3 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking for flex version... 2.5.4 (ok)
checking whether to force non-PIC code in shared modules... yes
checking whether /dev/urandom exists... yes
checking for pthreads_cflags... -pthread
checking for pthreads_lib...

Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking whether to enable Apache charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of //usr/locall/apache/bin/apxs follows:
./configure: line 6669: //usr/locall/apache/bin/apxs: No such file or directory
configure: error: Aborting

再次編譯,出現以上這個錯誤,麻煩各位高手再幫忙分析下.

廉價勞工

  • 活潑的大學生
  • ***
  • 文章數: 213
    • 檢視個人資料
不是都幫你分析好了   :o

代碼: [選擇]
Sorry, I cannot run apxs.  Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
錢少、事多、離家遠…
位低、權輕、責任重…

Yanny

  • 憂鬱的高中生
  • ***
  • 文章數: 177
    • 檢視個人資料
引用
./configure --prefix=//usr/local/mysql/php --with-mysql=//usr/local/mysql/mysql
為什麼要兩個"//",不是用一個"/"就好嗎?

引用
./configure: line 6669: //usr/locall/apache/bin/apxs: No such file or directory
這裡不是告訴你錯誤訊息嗎?

手槍鵝

  • 訪客
升級php建議先看看原廠dist rpm裝好的phpinfo

看看前人是怎麼編譯的選項。

不然,就用原廠編好的rpm。

--

自己編的,大概,很難用吧,東欠西少的。