Centos6.5安装Seafile,遇到的问题处理记录。
问题1:启动Seafile安装脚本时,提示找不到MySQL-python模块,使用yum安装成功也提示未安装该软件包
问题1解决方法:需要通过 python 的工具pip来安装MySQL-python ,执行pip install MySQL-python
---------------------------------------------------------------------------------------------------------------------------------------------
问题2:说找不到pip
[root@CentOS setuptools-0.6c11]# pip install pillow moviepy Traceback (most recent call last): File "/usr/bin/pip", line 7, in <module> from pip import main ImportError: No module named pip
问题2解决方法
[root@CentOS Downloads]# wget "https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz#md5=834b2904f92d46aaa333267fb1c922bb" --no-check-certificate --2017-10-30 14:33:12-- https://pypi.python.org/packages/source/p/pip/pip-1.5.4.tar.gz Resolving pypi.python.org... 151.101.72.223, 2a04:4e42:11::223 Connecting to pypi.python.org|151.101.72.223|:443... connected. WARNING: certificate common name “www.python.org” doesn’t match requested host name “pypi.python.org”. HTTP request sent, awaiting response... 200 OK Length: 1081874 (1.0M) [application/octet-stream] Saving to: “pip-1.5.4.tar.gz” 100%[=====================================================================================================================================================================================>] 1,081,874 44.2K/s in 23s 2017-10-30 14:33:36 (45.1 KB/s) - “pip-1.5.4.tar.gz” saved [1081874/1081874] [root@CentOS Downloads]# tar -xzf pip-1.5.4.tar.gz [root@CentOS Downloads]# cd pip-1.5.4 [root@CentOS pip-1.5.4]# python setup.py install ..........略去无用内容....... [root@CentOS /]# python -m ensurepip Requirement already satisfied: setuptools in /usr/local/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg Collecting pip Installing collected packages: pip Successfully installed pip-9.0.1
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
问题3:说SSL没安装,实际装了
[root@CentOS /]# yum install openssl-devel -y Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile epel/metalink | 6.3 kB 00:00 * base: mirrors.btte.net * epel: mirrors.ustc.edu.cn * extras: mirrors.aliyun.com * updates: mirrors.btte.net base | 3.7 kB 00:00 extras | 3.3 kB 00:00 nginx | 2.9 kB 00:00 updates | 3.4 kB 00:00 Setting up Install Process Package openssl-devel-1.0.1e-57.el6.i686 already installed and latest version Nothing to do
问题3 解决办法 编辑Python安装配置文件,加入红色字部分,然后重新编译安装Python
[root@CentOS Python-2.7.14]# vi Modules/Setup # -*- makefile -*- # The file Setup is used by the makesetup script to construct the files # Makefile and config.c, from Makefile.pre and config.c.in,
.......省略无数行....... # Another example -- the 'xxsubtype' module shows C-level subtyping in action xxsubtype xxsubtype.c # Socket module helper for socket(2) _socket socketmodule.c timemodule.c # Socket module helper for SSL support; you must comment out the other # socket line above, and possibly edit the SSL variable: #SSL=/usr/local/ssl _ssl _ssl.c \ -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \ -L$(SSL)/lib -lssl -lcrypto "Modules/Setup" 510L, 18799C written [root@CentOS Python-2.7.14]#make
[root@CentOS Python-2.7.14]#make install