[ubuntu] error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1,error: command 'gcc' failed with exit status 1 while installing eventlet

2017. 5. 19. 01:03카테고리 없음

깃허브에서 소스를 받고


sudo pip install -r requirements.txt


을 날렷는데 


sudo apt-get install build-essential autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-qt4 python-qt4-gl libgle3 python-dev

sudo easy_install greenlet

sudo easy_install gevent

sudo pip install -r requirements.txt

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1



다음과 같은 에러가 난다면 당황하지 않고!



error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1,error: command 'gcc' failed with exit status 1 while installing eventlet




Requirement already satisfied (use --upgrade to upgrade): Babel==1.3 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 1)) Requirement already satisfied (use --upgrade to upgrade): Jinja2==2.7.3 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): Mako==1.0.1 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 3)) Requirement already satisfied (use --upgrade to upgrade): MarkupSafe==0.23 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 4)) Requirement already satisfied (use --upgrade to upgrade): Pillow==2.7.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 5)) Requirement already satisfied (use --upgrade to upgrade): Python-Chart==1.39 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 6)) Requirement already satisfied (use --upgrade to upgrade): PyYAML==3.11 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 7)) Requirement already satisfied (use --upgrade to upgrade): Werkzeug==0.9.6 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 8)) Requirement already satisfied (use --upgrade to upgrade): argparse==1.2.1 in /usr/lib/python2.7 (from -r requirements.txt (line 9)) Requirement already satisfied (use --upgrade to upgrade): decorator==3.4.0 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 10)) Requirement already satisfied (use --upgrade to upgrade): docutils==0.12 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 11)) Requirement already satisfied (use --upgrade to upgrade): feedparser==5.1.3 in /usr/lib/python2.7/dist-packages (from -r requirements.txt (line 12)) Requirement already satisfied (use --upgrade to upgrade): gdata==2.0.18 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 13)) Requirement already satisfied (use --upgrade to upgrade): gevent==1.0.2 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 14)) Requirement already satisfied (use --upgrade to upgrade): greenlet==0.4.7 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 15)) Requirement already satisfied (use --upgrade to upgrade): jcconv==0.2.3 in /usr/local/lib/python2.7/dist-packages (from -r requirements.txt (line 16)) Downloading/unpacking lxml==3.4.1 (from -r requirements.txt (line 17)) Downloading lxml-3.4.1.tar.gz (3.5MB): 3.5MB downloaded Running setup.py (path:/tmp/pip-build-Hqt4sF/lxml/setup.py) egg_info for package lxml /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'bugtrack_url' warnings.warn(msg) Building lxml version 3.4.1. Building without Cython. ERROR: /bin/sh: 1: xslt-config: not found



뭘 해도 안됬었는데....


다음처럼 하니까 된더라!!


wget xmlsoft.org/libxml2/libxml2-sources-2.9.3.tar.gz 


tar -xvzf libxml2-sources-2.9.3.tar.gz 


앞축 푼 디렉토리로 가서 

make 


그리고 

sudo make install


끝-!