mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Fix debian libtool bug (#276)
* add libtool installation for debian * update composer lock * re-fix libtool check * re-fix libtool check
This commit is contained in:
parent
4400c6271e
commit
9dcda873f3
@ -28,7 +28,7 @@ class LinuxToolCheckList
|
|||||||
'git', 'autoconf', 'automake',
|
'git', 'autoconf', 'automake',
|
||||||
'tar', 'unzip', 'gzip',
|
'tar', 'unzip', 'gzip',
|
||||||
'bzip2', 'cmake', 'patch',
|
'bzip2', 'cmake', 'patch',
|
||||||
'xz', 'libtool',
|
'xz', 'libtoolize',
|
||||||
];
|
];
|
||||||
|
|
||||||
public const TOOLS_RHEL = [
|
public const TOOLS_RHEL = [
|
||||||
@ -102,6 +102,7 @@ class LinuxToolCheckList
|
|||||||
try {
|
try {
|
||||||
$is_debian = in_array($distro['dist'], ['debian', 'ubuntu']);
|
$is_debian = in_array($distro['dist'], ['debian', 'ubuntu']);
|
||||||
$to_install = $is_debian ? str_replace('xz', 'xz-utils', $missing) : $missing;
|
$to_install = $is_debian ? str_replace('xz', 'xz-utils', $missing) : $missing;
|
||||||
|
$to_install = $is_debian ? str_replace('libtoolize', 'libtool', $to_install) : $to_install;
|
||||||
shell(true)->exec($prefix . $install_cmd . ' ' . implode(' ', $to_install));
|
shell(true)->exec($prefix . $install_cmd . ' ' . implode(' ', $to_install));
|
||||||
} catch (RuntimeException) {
|
} catch (RuntimeException) {
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user