Install PECL modules without the prompts

前端 未结 3 1083
滥情空心
滥情空心 2021-01-30 04:49

I just installed PHP on Ubuntu Natty from source.

I\'m trying to use PECL to install additional modules like APC and Memcache. I\'m using something like this:

         


        
3条回答
  •  孤街浪徒
    2021-01-30 05:43

    The "yes" command can do more than just type "yes"; it can type anything you want, over and over. Including an empty line, which is a good way to accept defaults.

    I just needed this myself, so here is what worked well for me:

    yes '' | pecl install -f apc
    

提交回复
热议问题