如何在linux環境下安裝yaf

來源:互聯網
上載者:User

標籤:

我原生環境配置

linuxMint17.1

php5.5

nginx1.4.6

下面開始安裝

下載最新的yaf包

http://pecl.php.net/package/yaf 

我下載的最新版本為2.3.3

解壓 

   $PHP_BIN/phpize      ./configure --with-php-config=$PHP_BIN/php-config      make      make install

 

我執行時報錯誤。

用whereis phpize 查看查看phpize,發現phpize為空白,說明沒有安裝

執行這個命令

sudo apt-get install php-dev

執行完後,用whereis phpize

[email protected] ~ $ whereis phpizephpize: /usr/bin/phpize /usr/bin/X11/phpize /usr/share/man/man1/phpize.1.gz

看到這個說明你已經安裝了phpize

然後執行這個(必須用root使用者執行,否則會報錯誤)

 /usr/bin/phpize ./configure --with-php-config=/usr/bin/php-config

下面這個錯誤

Cannot find config.m4. Make sure that you run ‘/usr/bin/phpize‘ in the top level source directory of the module

 

執行make命令時報這個錯誤

make: *** No targets specified and no makefile found.  Stop.

需要安裝這個

sudo apt-get install libncurses5-dev

這樣執行

./configure make

 

如何在linux環境下安裝yaf

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.