English 中文(简体)
在没有迅速的情况下安装PECL单元
原标题:Install PECL modules without the prompts
  • 时间:2011-11-15 18:43:15
  •  标签:
  • php
  • pecl

我刚刚从源头上安装了乌班图。

I m试图利用PECL安装诸如装甲运兵车和Memcache等额外模块。 我这样说:

pecl install apc

然而,我迅速要求我确认情况。

How can I use the pecl command to just accept the defaults? I saw something like this on a message board: printf "yes " | pecl install pecl_http. However, in the case of APC this would answer yes for things where the default is no (I think).

最佳回答

The following code seems to work ok:

printf "
" | pecl install apc

您也可以用任何其他的消除儿童卖淫和儿童色情现象方案一揽子方案取代 a。

乘客。

问题回答

“代号”指挥可以做的不止是“代号”;它可以打上你想要的、过去和现在想要的东西。 包括一条空线,这是接受违约的好办法。

我只需要我,这里对我来说是一件好事:

yes    | pecl install -f apc

如果您不希望对每一个速率(“yes”、“no”或“”)给予同样的回答,则您可使用-configureoptions,为每一种选择设定具体价值(见PECL手册

你想找到你的包裹——xml文档,看看什么选择是可以想象的。 例如,<代码>memcadated/code> 页: 1

https://github.com/php-memcached-dev/php-memcached/blob/master/package.xml

搜索<代码><configureoption>tag,在这种情况下:

<configureoption name="with-libmemcached-dir"     prompt="libmemcached directory"     default="no"/>
<configureoption name="with-zlib-dir"             prompt="zlib directory"             default="no"/>
<configureoption name="with-system-fastlz"        prompt="use system fastlz"          default="no"/>
<configureoption name="enable-memcached-igbinary" prompt="enable igbinary serializer" default="no"/>
<configureoption name="enable-memcached-msgpack"  prompt="enable msgpack serializer"  default="no"/>
<configureoption name="enable-memcached-json"     prompt="enable json serializer"     default="no"/>
<configureoption name="enable-memcached-protocol" prompt="enable server protocol"     default="no"/>
<configureoption name="enable-memcached-sasl"     prompt="enable sasl"                default="yes"/>
<configureoption name="enable-memcached-session"  prompt="enable sessions"            default="yes"/>

然后,你可以把这些选择带上安装指挥系统,如:

pecl install --configureoptions  with-libmemcached-dir="no" with-zlib-dir="no" with-system-fastlz="no" enable-memcached-igbinary="yes" enable-memcached-msgpack="no" enable-memcached-json="no" enable-memcached-protocol="no" enable-memcached-sasl="yes" enable-memcached-session="yes"  memcached

Obinwanne s Hill对我回答说,因此,我不在此提供任何新东西,但以下看来像绝对的短信一样,没有任何ancy工具。

echo    | pecl install apc




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...