启动uwsgi 时候遇见的问题

启动uwsgi 时候遇见的问题:

(pyenv2.7)[root@xcj soft]# /usr/local/mobile_service/uwsgi/bin/uwsgi_service start
/usr/local/mobile_service/uwsgi/bin//uwsgi: /usr/lib64/libcrypto.so.1.0.0: no version information available (required by /usr/local/mobile_service/uwsgi/bin//uwsgi)
/usr/local/mobile_service/uwsgi/bin//uwsgi: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/local/mobile_service/uwsgi/bin//uwsgi)
/usr/local/mobile_service/uwsgi/bin//uwsgi: /usr/lib64/libssl.so.1.0.0: no version information available (required by /usr/local/mobile_service/uwsgi/bin//uwsgi)
/usr/local/mobile_service/uwsgi/bin//uwsgi: /usr/lib64/libssl.so.1.0.0: no version information available (required by /usr/local/mobile_service/uwsgi/bin//uwsgi)
1. 先解决 libc 的问题
1.1 查看系统glibc支持的版本:
strings /lib64/libc.so.6 |grep GLIBC or rpm -qa |grep glibc  
[root@xcj glibc-2.14]# strings /lib64/libc.so.6 |grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE
or
[root@xcj glibc-2.14]# rpm -qa |grep glibc
glibc-2.12-1.107.el6_4.2.x86_64
glibc-static-2.12-1.107.el6_4.2.x86_64
glibc-utils-2.12-1.107.el6_4.2.x86_64
glibc-devel-2.12-1.107.el6_4.2.x86_64
glibc-headers-2.12-1.107.el6_4.2.x86_64
glibc-common-2.12-1.107.el6_4.2.x86_64
可以看到最高只支持2.12版本
1. 到http://www.gnu.org/software/libc/下载最新版本,我这里下载了glibc-2.14.tar.xz 这个版本,
wget http://mirror.bjtu.edu.cn/gnu/libc/glibc-2.14.tar.xz
2.解压到任意目录准备编译
今天尝试编译内核,下载到了一份tar.xz结尾的压缩文件,网上解决方法比较少,不过还是找到了,如下:
$xz -d ***.tar.xz $tar -xvf glibc-2.14.tar
或者  tar -Jxvf xxx.tar.xz
可以看到这个压缩包也是两层压缩,外面是xz压缩方式,里层是tar压缩方式。
3. 在glibc源码目录建立构建目录,并cd进入构建目录 
[root@xcj glibc-2.14]# mkdir build
[root@xcj glibc-2.14]# cd build 
4. 运行configure配置,make &&  make install (非 root 帐号记得 sudo)
[root@xcj build]# ../configure --prefix=/opt/glibc-2.14 
[root@xcj build]# make -j4
[root@xcj build]# make install
5.修改环境变量
[root@xcj build]# export LD_LIBRARY_PATH=/opt/glibc-2.14/lib:$LD_LIBRARY_PATH


OK!   

你可能感兴趣的:(uwsgi,libc,libssl,libcrypto)