mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-17 20:34:51 +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',
|
||||
'tar', 'unzip', 'gzip',
|
||||
'bzip2', 'cmake', 'patch',
|
||||
'xz', 'libtool',
|
||||
'xz', 'libtoolize',
|
||||
];
|
||||
|
||||
public const TOOLS_RHEL = [
|
||||
@ -102,6 +102,7 @@ class LinuxToolCheckList
|
||||
try {
|
||||
$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('libtoolize', 'libtool', $to_install) : $to_install;
|
||||
shell(true)->exec($prefix . $install_cmd . ' ' . implode(' ', $to_install));
|
||||
} catch (RuntimeException) {
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user