From 80c3f690ced22dd22c0dcb829af0f79c3f98436a Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 30 May 2018 16:36:52 +0800 Subject: [PATCH] bootstrap: add libffi-dev for gevent because gevent 1.3.2 requires cffi>=1.11.5, and cffi requires libffi-dev to build. Signed-off-by: Kefu Chai (cherry picked from commit a2b3e4ef771e840f124847380ed39e9ce641d7b7) --- bootstrap | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootstrap b/bootstrap index 9169980..d7e66dc 100755 --- a/bootstrap +++ b/bootstrap @@ -2,7 +2,7 @@ set -e if [ -f /etc/debian_version ]; then - for package in python-pip python-virtualenv python-dev libevent-dev libxml2-dev libxslt-dev zlib1g-dev; do + for package in python-pip python-virtualenv python-dev libevent-dev libffi-dev libxml2-dev libxslt-dev zlib1g-dev; do if [ "$(dpkg --status -- $package 2>/dev/null|sed -n 's/^Status: //p')" != "install ok installed" ]; then # add a space after old values missing="${missing:+$missing }$package" @@ -13,7 +13,7 @@ if [ -f /etc/debian_version ]; then sudo apt-get -y install $missing fi elif [ -f /etc/fedora-release ]; then - for package in python-pip python2-virtualenv python-devel libevent-devel libxml2-devel libxslt-devel zlib-devel; do + for package in python-pip python2-virtualenv python-devel libevent-devel libffi-devel libxml2-devel libxslt-devel zlib-devel; do if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then missing="${missing:+$missing }$package" fi @@ -23,7 +23,7 @@ elif [ -f /etc/fedora-release ]; then sudo yum -y install $missing fi elif [ -f /etc/redhat-release ]; then - for package in python-virtualenv python-devel libevent-devel libxml2-devel libxslt-devel zlib-devel; do + for package in python-virtualenv python-devel libevent-devel libffi-devel libxml2-devel libxslt-devel zlib-devel; do if [ "$(rpm -qa $package 2>/dev/null)" == "" ]; then missing="${missing:+$missing }$package" fi