PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Monday, September 5, 2022

[FIXED] How to set or skip a package configuration on PECL?

 September 05, 2022     continuous-integration, pecl, php, redis, travis-ci     No comments   

Issue

I'm running pecl install redis on Travis, but its hanging on:

enable igbinary serializer support? [no] : 

How can I set or skip this configuration?


Solution

m6w6's answer will respond "yes" (or "no") to every configuration option.

If this isn't what you want, you should use the --configureoptions flag of pecl install.

You'll want to find the package.xml for your package to see the configurable options and their defaults. For redis, you'd go here:

https://github.com/phpredis/phpredis/blob/develop/package.xml

Search for the <configureoption> tags, which in this case are:

<configureoption name="enable-redis-igbinary" prompt="enable igbinary serializer support?" default="no"/>
<configureoption name="enable-redis-lzf" prompt="enable lzf compression support?" default="no"/>
<configureoption name="enable-redis-zstd" prompt="enable zstd compression support?" default="no"/>

You can then pass these options along to the install command like so:

pecl install --configureoptions 'enable-redis-igbinary="yes" enable-redis-lzf="no" enable-redis-zstd="no"' redis


Answered By - Ben Y
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing