Centos6.5安裝Seafile,遇到的問題處理記錄。
阿新 • • 發佈:2017-11-01
edit www helper back 記錄 ensure ext mat sock
問題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
Centos6.5安裝Seafile,遇到的問題處理記錄。