卸载 Mysql
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
vim /etc/hostconfig and removed the line MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
最后这条很多文章都丢了,切记切记。
安装Haystack
pip install django-haystack==2.0.0
安装PIL
http://mariz.org/blog/2007/01/26/mac-os-x-decoder-jpeg-not-available/
Here is the solution:
安装Haystack
pip install django-haystack==2.0.0
安装PIL
http://mariz.org/blog/2007/01/26/mac-os-x-decoder-jpeg-not-available/
Here is the solution:
- Edit PIL setup.py and change to:
JPEG_ROOT = "/usr/local/include" ZLIB_ROOT = "/usr/local/include"
- Compile:
python setup.py build_ext -i
- Test:
python selftest.py
- If the result is something like this:
"57 tests passed."
- You are ready to go:
python setup.py install