发布时间:2015-11-30 19:04:10
从http://dev.mysql.com/downloads下载mysql-connector-python_2.1.3-1debian7.9_all.debdpkg -i mysql-connector-python_2.1.3-1debian7.9_all.deb发生错误Selecting previously unselected package mysql-connector-python.(Reading database ... 53381 files and directories currently inst.........【阅读全文】
发布时间:2015-11-23 19:33:37
被这个错搞了半天,尝试一堆encode,decode,还尝试了import sysreload(sys)sys.setdefaultencoding('utf8')也不管用。最后查到需要转成utf-8,再调用sha1.hashlib.sha1(s).hexdigest()UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-81: ordinal not in range(128)Apparently h.........【阅读全文】
发布时间:2015-11-16 16:14:21
./configure --prefix=/usr2/php-5.6.15 --enable-fpm --with-zlib \--enable-bcmath --enable-mbstring --enable-sockets --with-gettext=/usr \--with-png-dir=/usr --with-freetype-dir=/usr \--with-gd=/usr/local/gd2 --with-t1lib=/usr \--with-xpm-dir=/usr --with-mysqli --with-mysql=/usr2/mysql......【阅读全文】
发布时间:2015-11-13 10:01:02
Debian系统删除软件包时,执行postremove script报错。解决方法,修改postremove script,把#!/bin/sh -e改成不要-ecd /var/lib/dpkg/infols package-name*vi 。。。 去掉#!/bin/sh -e的-e......【阅读全文】