Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php5-cli is not yet configured #484

Closed
nathan-van-der-werf opened this issue Apr 15, 2015 · 1 comment
Closed

php5-cli is not yet configured #484

nathan-van-der-werf opened this issue Apr 15, 2015 · 1 comment

Comments

@nathan-van-der-werf
Copy link

Hello,

I'm using dashbrew and I am encountering the following errors:

==> default: [Info] Installing OS package 'php5-mcrypt'
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: php5_invoke opcache: no action - module was disabled by maintainer for cli SAPI
==> default: Failed to open terminal.debconf: whiptail output the above errors, giving up!
==> default: dpkg: error processing package php5-cli (--configure):
==> default:  subprocess installed post-installation script returned error exit status 255
==> default: dpkg: dependency problems prevent configuration of php5-readline:
==> default:  php5-readline depends on php5-cli (= 5.5.23+dfsg-1+deb.sury.org~trusty+2); however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-readline (--configure):
==> default:  dependency problems - leaving unconfigured
==> default: dpkg: dependency problems prevent configuration of php5-fpm:
==> default:  php5-fpm depends on php5-cli; however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-fpm (--configure):
==> default:  dependency problems - leaving unconfigured
==> default:
==> default: Creating config file /etc/php5/mods-available/mcrypt.ini with new version
==> default: php5_invoke: Enable module mcrypt for cli SAPI
==> default: php5_invoke: Enable module mcrypt for fpm SAPI
==> default: Errors were encountered while processing:
==> default:  php5-cli
==> default:  php5-readline
==> default:  php5-fpm
==> default: E
==> default: :
==> default: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: [Error] Error occured while installing OS package 'php5-mcrypt'
==> default: [Info] Installing OS package 'php5-gd'
==> default: dpkg-preconfigure: unable to re-open stdin: No such file or directory
==> default: Failed to open terminal.debconf: whiptail output the above errors, giving up!
==> default: dpkg: error processing package php5-cli (--configure):
==> default:  subprocess installed post-installation script returned error exit status 255
==> default: dpkg: dependency problems prevent configuration of php5-fpm:
==> default:  php5-fpm depends on php5-cli; however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-fpm (--configure):
==> default:  dependency problems - leaving unconfigured
==> default: dpkg: dependency problems prevent configuration of php5-readline:
==> default:  php5-readline depends on php5-cli (= 5.5.23+dfsg-1+deb.sury.org~trusty+2); however:
==> default:   Package php5-cli is not configured yet.
==> default:
==> default: dpkg: error processing package php5-readline (--configure):
==> default:  dependency problems - leaving unconfigured
==> default:
==> default: Creating config file /etc/php5/mods-available/gd.ini with new version
==> default: php5_invoke: Enable module gd for cli SAPI
==> default: php5_invoke: Enable module gd for fpm SAPI
==> default: Errors were encountered while processing:
==> default:  php5-cli
==> default:  php5-fpm
==> default:  php5-readline
==> default: E
==> default: :
==> default: Sub-process /usr/bin/dpkg returned an error code (1)
==> default: [Error] Error occured while installing OS package 'php5-gd'

My dashbrew environment.yaml is:


---
#
# OS Packages
#
# Packages to install via the OS package manager (apt-get).
#
os::packages:
  vim: true
  php5-mcrypt: true
  php5-gd: true

#
# PHP Builds
#
# A hash containing a list of PHP versions and their configurations
#  to be managed by phpbrew.
#
php::builds:
  5.6.0:
    installed: true
    default: true
    variants:
      - dev
      - mcrypt
      - gd
    extensions:
      xdebug:
        enabled: true
        version: stable
      xhprof:
        enabled: true
        version: latest
      gd:
        enabled: true
        version: stable
    fpm:
      port: 9002
      autostart: true
#
# Apache Modules
#
# Apache modules to install and enable.
#
apache::modules:
  rewrite: true

#
# Nodejs Modules
#
# Nodejs Modules to install via npm.
#
npm::packages:
  grunt-cli: true

#
# Debug mode
#
# Enables extra information during provisioning
#
debug: false

I'm using dashbrew also at home, and there it works (on windows) at my work computer (iMac) it doesn't.

I think this is a phpbrew issue and not a dashbrew issue, someone who can help me out ?

@marcioAlmada
Copy link
Member

dpkg-preconfigure: unable to re-open stdin: No such file or directory
...
dependency problems - leaving unconfigured

Hi, this is clearly a problem with the provision script while installing the required packages. The issue is with dashbrew. You should open an issue there :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants