sous-chefs / sous-chefs/php

Answer prompted questions when installing pecl

Open
#310 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Feature Request Waiting on Contributor
Dominant language
HTML
Stars
454
Forks
480
Avg merge
5h 35m
Merged PRs (30d)
1

Description

🗣️ Foreword

Hi, I'm having a problem to install a pecl because I can't answer the prompted questions.

:person_frowning: Problem Statement

When installing the pecl redis (https://pecl.php.net/package/redis) on the command line with pecl install redis, I get prompted some questions (in this case, to enable igbinary serializer support):

# pecl install redis
downloading redis-3.1.6.tgz ...
Starting to download redis-3.1.6.tgz (199,920 bytes)
..............done: 199,920 bytes
20 source files, building
running: phpize
Configuring for:
PHP Api Version:         20131106
Zend Module Api No:      20131226
Zend Extension Api No:   220131226
enable igbinary serializer support? [no] :

I need to somehow answer yes to this question.

❔ Possible Solution

Allow me to answer yes to the question. One option on the command line is yes | pecl install redis

⤴️ Describe alternatives you've considered

I didn't managed to get it working by playing with the available options.

➕ Additional context

At the moment I install it with php_pear like so:

php_pear "redis" do
  action :install
  version "5.2.2"
  channel 'pecl.php.net'
end

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the php_pear resource usage shown in the issue and reproduce the pecl install redis prompt, including the igbinary question. Trace how the resource invokes PECL and determine how a user could provide affirmative answers; done means the redis installation completes without manual input.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.