Hi Nuxwin,
First of all thank you for the latest release of PHP Switcher.
When compiling PHP versions with the following command line:
I get an error "An error occurred while setup of PHP build environment: need to specify operation before --basepath option"
with the following stack:
Code
- [INFO] Scanning PHP site for the PHP 7.1 sources...
- [DEBUG] iMSCP::Execute::execute: /usr/bin/wget --prefer-family=IPv4 --quiet --spider http://php.net/distributions/php-7.1.32.tar.gz
- [DEBUG] iMSCP::Execute::execute: /usr/bin/wget --prefer-family=IPv4 --quiet --spider http://php.net/distributions/php-7.1.33.tar.gz
- [INFO] Found PHP 7.1 sources at http://php.net/distributions/php-7.1.32.tar.gz
- [INFO] Downloading PHP 7.1.32 sources into the /usr/local/src/phpswitcher directory...
- [DEBUG] iMSCP::Execute::execute: /usr/bin/wget --prefer-family=IPv4 -t 1 -O /usr/local/src/phpswitcher/php-7.1.32.tar.gz http://php.net/distributions/php-7.1.32.tar.gz
- [INFO] Extracting the PHP 7.1.32 archive into /usr/local/src/phpswitcher/php-7.1.32 ...
- [DEBUG] iMSCP::Execute::executeNoWait: /bin/tar -xzf /usr/local/src/phpswitcher/php-7.1.32.tar.gz -C /usr/local/src/phpswitcher
- [INFO] Setup PHP build environment...
- [DEBUG] iMSCP::Execute::execute: /bin/chmod -R 0750 /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/hook.d/*
- [DEBUG] iMSCP::Execute::executeNoWait: /usr/sbin/cowbuilder create --distribution jessie --architecture amd64 --basepath /var/cache/pbuilder/psw-debian-jessie.cow --configfile /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/.pbuilderrc --hookdir /var/www/imscp/gui/plugins/PhpSwitcher/PhpCompiler/pbuilder/Debian/hook.d
- [DEBUG] iMSCP::LockFile::release: Releasing exclusive lock on /var/lock/psw-php-compiler.lock
- [ERROR] main: An error occurred while setup of PHP build environment: need to specify operation before --basepath option
What is wrong with --architecture amd64? How to solve this?
With --no-chroot it runs.