mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Setup libwebp-dev with PHP8 on linux
This commit is contained in:
parent
00b0d694d0
commit
062567eeb1
@ -193,7 +193,7 @@ add_devtools() {
|
|||||||
|
|
||||||
# Function to setup the nightly build from master branch
|
# Function to setup the nightly build from master branch
|
||||||
setup_master() {
|
setup_master() {
|
||||||
update_ppa && $apt_install libzip-dev
|
update_ppa && $apt_install libzip-dev libwebp-dev >/dev/null 2>&1
|
||||||
tar_file=php_"$version"%2Bubuntu"$(lsb_release -r -s)".tar.xz
|
tar_file=php_"$version"%2Bubuntu"$(lsb_release -r -s)".tar.xz
|
||||||
install_dir=~/php/"$version"
|
install_dir=~/php/"$version"
|
||||||
bintray_url=https://dl.bintray.com/shivammathur/php/"$tar_file"
|
bintray_url=https://dl.bintray.com/shivammathur/php/"$tar_file"
|
||||||
@ -203,7 +203,7 @@ setup_master() {
|
|||||||
for tool_path in "$install_dir"/bin/*; do
|
for tool_path in "$install_dir"/bin/*; do
|
||||||
tool=$(basename "$tool_path")
|
tool=$(basename "$tool_path")
|
||||||
sudo cp "$tool_path" /usr/bin/"$tool$version"
|
sudo cp "$tool_path" /usr/bin/"$tool$version"
|
||||||
sudo update-alternatives --install /usr/bin/"$tool" "$tool" /usr/bin/"$tool$version" 50
|
sudo update-alternatives --install /usr/bin/"$tool" "$tool" /usr/bin/"$tool$version" 50 >/dev/null 2>&1
|
||||||
done
|
done
|
||||||
sudo ln -sf "$install_dir"/etc/php.ini /etc/php.ini
|
sudo ln -sf "$install_dir"/etc/php.ini /etc/php.ini
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user