mirror of
https://github.com/lovell/sharp.git
synced 2025-07-15 13:10:13 +02:00
Add root check and support for Debian 7, Mint 13
This commit is contained in:
parent
5856e41a62
commit
51805ef657
@ -35,9 +35,9 @@ To install the latest version of libvips on the following Operating Systems:
|
|||||||
|
|
||||||
* Mac OS (homebrew, MacPorts)
|
* Mac OS (homebrew, MacPorts)
|
||||||
* Debian Linux
|
* Debian Linux
|
||||||
* Debian 8
|
* Debian 7, 8
|
||||||
* Ubuntu 12.04, 14.04, 14.10
|
* Ubuntu 12.04, 14.04, 14.10
|
||||||
* Mint 17
|
* Mint 13, 17
|
||||||
* Red Hat Linux
|
* Red Hat Linux
|
||||||
* RHEL/Centos/Scientific 6, 7
|
* RHEL/Centos/Scientific 6, 7
|
||||||
* Fedora 21, 22
|
* Fedora 21, 22
|
||||||
|
@ -4,9 +4,9 @@
|
|||||||
# Currently supports:
|
# Currently supports:
|
||||||
# * Mac OS
|
# * Mac OS
|
||||||
# * Debian Linux
|
# * Debian Linux
|
||||||
# * Debian 8
|
# * Debian 7, 8
|
||||||
# * Ubuntu 12.04, 14.04, 14.10
|
# * Ubuntu 12.04, 14.04, 14.10
|
||||||
# * Mint 17
|
# * Mint 13, 17
|
||||||
# * Red Hat Linux
|
# * Red Hat Linux
|
||||||
# * RHEL/Centos/Scientific 6, 7
|
# * RHEL/Centos/Scientific 6, 7
|
||||||
# * Fedora 21, 22
|
# * Fedora 21, 22
|
||||||
@ -58,6 +58,12 @@ else
|
|||||||
echo "Could not find libvips using a PKG_CONFIG_PATH of '$pkg_config_path'"
|
echo "Could not find libvips using a PKG_CONFIG_PATH of '$pkg_config_path'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Verify root/sudo access
|
||||||
|
if [ "$(id -u)" -ne "0" ]; then
|
||||||
|
echo "Sorry, I need root/sudo access to continue"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# OS-specific installations of libvips follows
|
# OS-specific installations of libvips follows
|
||||||
|
|
||||||
case $(uname -s) in
|
case $(uname -s) in
|
||||||
@ -85,8 +91,8 @@ case $(uname -s) in
|
|||||||
echo "Installing libvips via apt-get"
|
echo "Installing libvips via apt-get"
|
||||||
apt-get install -y libvips-dev
|
apt-get install -y libvips-dev
|
||||||
;;
|
;;
|
||||||
precise|wheezy)
|
precise|wheezy|maya)
|
||||||
# Ubuntu 12
|
# Debian 7, Ubuntu 12.04, Mint 13
|
||||||
echo "Installing libvips dependencies via apt-get"
|
echo "Installing libvips dependencies via apt-get"
|
||||||
add-apt-repository -y ppa:lyrasis/precise-backports
|
add-apt-repository -y ppa:lyrasis/precise-backports
|
||||||
apt-get update
|
apt-get update
|
||||||
|
Loading…
x
Reference in New Issue
Block a user