爬虫第一步:scrapy-安装教程

原创 2015年11月22日 16:51:57

rpm包源码包

pip的安装

执行 (sudo) python get-pip.py

第一个错误:




解决办法:OpenSSL的安装

检查是否已经安装了ssl

没有安装ssl

下载openssl源码,解压后执行(注意:./Configure和./config的区别) 
第一步:./config --prefix=/usr/local/openssl。

#第二步:gedit /etc/bash.bashrc 配置
PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/openssl/lib/pkgconfig
export PKG_CONFIG_PATH

#第三步:gedit /etc/ld.so.conf,在文件的末尾添加
/usr/local/openssl/lib

第四步:gedit /python的路径/Modules/Setup.dist
找到文档里这一块,取消注释,SSL为我们安装的openssl的安装路径
SSL=/usr/local/openssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto

第五步:重新编译安装python
./configure --prefix=/usr/local/python
make
make install
安装完成后,


安装成功
然后,执行 python get-pip.py,提示安装成功。

$pip
提示没有安装。原因,没有将添加环境变量。
$ gedit /etc/profile 
PATH=$PATH:/usr/local/python/bin
export PATH

pip安装scrapy

$pip install scrapy,提示:


下载Twisted
解压后安装,
python setup.py build
python setup.py install
再次执行
$pip install scrapy
出现以下错误

安装libxml2
下载后,我下载的是libxml2-2.9.2,发现没有configure
apt-get install libtool
$ libtoolize --force
$ aclocal
$ autoheader
$ automake --force-missing --add-missing
$ autoconf
$ ./configure
需要上面的步骤,自动生成configure文件。

执行以下命令:
./configure --prefix=/usr/local/libxml2
make
make install
/usr/bin/ld: /usr/local/python/lib/python2.7/config/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/python2.7/config/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [libxml2mod.la] Error 1
make[4]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2/python'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/zhangping/soft/libxml2-2.9.2'
make: *** [all] Error 2
错误
----------------------------------------------------------------解决办法------------------------------------------------------------------------------------------------
重新编译:openssl
./config --prefix=/usr/local/openssl shared
make 
make install
发现在/usr/local/openssl/lib出现了.so文件
重新编译python
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.o
<strong>gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_testcapimodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_testcapi.so</strong>
<span style="color:#006600;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_hotshot' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_hotshot.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_hotshot.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_hotshot.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_hotshot.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(codeobject.o): relocation R_X86_64_32S against `PyString_Type' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_lsprof' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_lsprof.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_lsprof.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_lsprof.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/rotatingtree.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_lsprof.so
<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'unicodedata' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/unicodedata.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/unicodedata.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/unicodedata.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/unicodedata.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_locale' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_localemodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_localemodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_localemodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_locale.so
<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'fcntl' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/fcntlmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/fcntl.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'grp' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/grpmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/grpmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/grpmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/grp.so
<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'spwd' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/spwdmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/spwd.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'select' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/selectmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/selectmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/selectmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/select.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'parser' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/parsermodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/parsermodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/parsermodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/parser.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(parsetok.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'cStringIO' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cStringIO.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cStringIO.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cStringIO.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/cStringIO.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'cPickle' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cPickle.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cPickle.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cPickle.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/cPickle.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'mmap' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/mmapmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/mmap.so
<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'syslog' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/syslogmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/syslog.so
<span style="color:#ff0000;"><strong>/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(intobject.o): relocation R_X86_64_32S against `PyInt_Type' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'audioop' extension</strong></span>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/audioop.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/audioop.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/audioop.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/audioop.so
<strong><span style="color:#ff0000;">/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'crypt' extension</span></strong>
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cryptmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lcrypt -lpython2.7 -o build/lib.linux-x86_64-2.7/crypt.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(getargs.o): relocation R_X86_64_32S against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_csv' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_csv.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_csv.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_csv.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_csv.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_socket' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.o
/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c: In function ‘socket_gethostbyname_ex’:
/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c:3453:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
     int result;
         ^
/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c: In function ‘socket_gethostbyaddr’:
/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.c:3529:9: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]
     int result;
         ^
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/timemodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/timemodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/socketmodule.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/timemodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lm -lpython2.7 -o build/lib.linux-x86_64-2.7/_socket.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_sha' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/shamodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/shamodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/shamodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_md5' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/md5module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5module.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/md5.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5module.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/md5.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_md5.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_sha256' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/sha256module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha256module.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha256module.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha256.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_sha512' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/sha512module.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha512module.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/sha512module.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_sha512.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'termios' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/termios.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/termios.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/termios.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/termios.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'resource' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/resource.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/resource.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/resource.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/resource.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'nis' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/nismodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/nismodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/nismodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lnsl -lpython2.7 -o build/lib.linux-x86_64-2.7/nis.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(listobject.o): relocation R_X86_64_32 against `_Py_NoneStruct' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_curses' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_cursesmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lncurses -lpython2.7 -o build/lib.linux-x86_64-2.7/_curses.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_curses_panel' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_curses_panel.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpanel -lncurses -lpython2.7 -o build/lib.linux-x86_64-2.7/_curses_panel.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'zlib' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/zlibmodule.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-x86_64-2.7/zlib.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'binascii' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/binascii.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/binascii.o -DUSE_ZLIB_CRC32
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/binascii.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lz -lpython2.7 -o build/lib.linux-x86_64-2.7/binascii.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'pyexpat' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/pyexpat.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/pyexpat.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.o
In file included from /home/zhangping/soft/Python-2.7.10/./Modules/expat/expat_config.h:8:0,
                 from /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c:22:
./pyconfig.h:1188:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from /usr/include/string.h:25:0,
                 from /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.c:6:
/usr/include/features.h:230:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/pyexpat.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlparse.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmlrole.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/expat/xmltok.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/pyexpat.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_elementtree' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DHAVE_EXPAT_CONFIG_H=1 -DUSE_PYEXPAT_CAPI -I/home/zhangping/soft/Python-2.7.10/./Modules/expat -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_elementtree.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_elementtree.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_elementtree.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_elementtree.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_multibytecodec' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/multibytecodec.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multibytecodec.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_kr' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_kr.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_kr.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_jp' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_jp.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_jp.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_cn' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_cn.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_cn.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_tw' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_tw.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_tw.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_hk' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_hk.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_hk.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_codecs_iso2022' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/cjkcodecs/_codecs_iso2022.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_codecs_iso2022.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_multiprocessing' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.o
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -IModules/_multiprocessing -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/multiprocessing.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/socket_connection.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_multiprocessing/semaphore.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_multiprocessing.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'linuxaudiodev' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/linuxaudiodev.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/linuxaudiodev.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building 'ossaudiodev' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.o
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/ossaudiodev.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/ossaudiodev.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(exceptions.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
building '_ctypes' extension
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.o -Wall -fexceptions
/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c: In function ‘PyCField_FromDesc’:
/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.c:50:29: warning: variable ‘length’ set but not used [-Wunused-but-set-variable]
     Py_ssize_t size, align, length;
                             ^
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.o -Wall -fexceptions
/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c: In function ‘dlmmap_locked’:
/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c:460:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
       ftruncate (execfd, offset);
                 ^
/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.c:472:17: warning: ignoring return value of ‘ftruncate’, declared with attribute warn_unused_result [-Wunused-result]
       ftruncate (execfd, offset);
                 ^
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.S -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.c -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.o -Wall -fexceptions
gcc -pthread -fPIC -fno-strict-aliasing -fPIC -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Ibuild/temp.linux-x86_64-2.7/libffi/include -Ibuild/temp.linux-x86_64-2.7/libffi -I/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src -I/usr/local/python/include -I. -IInclude -I./Include -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/home/zhangping/soft/Python-2.7.10/Include -I/home/zhangping/soft/Python-2.7.10 -c /home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.S -o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.o -Wall -fexceptions
gcc -pthread -shared build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/_ctypes.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callbacks.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/callproc.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/stgdict.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/cfield.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/prep_cif.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/closures.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi64.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/unix64.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/ffi.o build/temp.linux-x86_64-2.7/home/zhangping/soft/Python-2.7.10/Modules/_ctypes/libffi/src/x86/sysv.o -L/usr/local/python/lib -L/usr/lib/x86_64-linux-gnu -L/usr/local/lib -L. -lpython2.7 -o build/lib.linux-x86_64-2.7/_ctypes.so
/usr/bin/ld: /usr/local/python/lib/libpython2.7.a(classobject.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC
/usr/local/python/lib/libpython2.7.a: error adding symbols: Bad value
collect2: error: ld returned 1 exit status




版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

python3 [爬虫入门实战]爬虫之scrapy安装与配置教程

不得不说,自己经历过的,才是真的经历过,有很多网上的教程并不是很好,都是一把辛酸泪啊。 网上很多教程都是python2.7的,少有python3的教程,找起资料来还是挺难的。搞了算是蛮久的,一个上...

Python实用工具包Scrapy安装教程

对于想用每个想用Python开发网络爬虫的开发者来说,Scrapy无疑是一个极好的开源工具。今天安装之后觉得Scrapy的安装确实不易啊。所以在此博文一篇,往后来着少走弯路。         废话不...

Delphi7高级应用开发随书源码

  • 2003年04月30日 00:00
  • 676KB
  • 下载

Python:Windows7 (64位)系统下安装Scrapy详细教程

Python:Windows7 (64位)系统下安装Scrapy详细教程 分类: Python 2014-02-18 00:45 245人阅读 评论(0) 收藏 举报 ...
  • ahywg
  • ahywg
  • 2014年04月16日 14:15
  • 19249

Scrapy爬虫入门教程一 安装和基本使用

Scrapy爬虫入门教程 安装和基本使用
  • Inke88
  • Inke88
  • 2017年03月03日 19:44
  • 1656

Python3.6下scrapy框架的安装

转载地址:http://blog.csdn.net/liuweiyuxiang/article/details/68929999 首先考虑使用最简单的方法安装 [plain...
  • yctjin
  • yctjin
  • 2017年04月24日 20:30
  • 1778

windows下scrapy安装步骤

1.      官网下载python2.7.12并安装在路径D:/Python27目录下; 在windows命令行下进入目录,并输入python,显示: 则python安装成功 2.      配置...

python中Scrapy的安装详细过程

目录安装python 安装pywin32 安装setuptools 安装twisted 安装zopeinterface 安装pyopenssl 安装twisted 安装lxml 安装w3lib 安装S...

Python 爬虫6——Scrapy的安装和使用

前面我们简述了使用Python自带的urllib和urllib2库完成的一下爬取网页数据的操作,但其实能完成的功能都很简单,假如要进行复制的数据匹配和高效的操作,可以引入第三方的框架,例如Scrapy...

Python3.6下scrapy框架的安装

scrapy的安装方法
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:爬虫第一步:scrapy-安装教程
举报原因:
原因补充:

(最多只允许输入30个字)