paulgorman.org

< ^ txt

Fri May 8 08:00:46 EDT 2015 Slept well. It's supposed to approach the mid 80's today. Goals: Work: - Think about new file server? Replace NAS? Done. - Read about SQLAlchemy An Object Relational Mapper for Python objects. Provides database engine abstraction (SQLite, MariaDB, Postgresql, etc.). I still don't really get the benefits of an ORM. Questions: - Why, when trying to `pip install MySQL-python`, do I get: EnvironmentError: mysql_config not found I'm running MariaDB, which apparently doesn't include the mysql_config binary. Many things on the internet say to `apt-get install sudo apt-get install libmariadbclient-dev`, but that doesn't work. At least on Debian Testing, libmariadbclient-dev doesn't provide mysql_config. Doing `apt-file search mariadb_config` lead me to do: sudo apt-get install libmariadb-client-lgpl-dev and further: cd /usr/local/bin/ sudo ln -s /usr/bin/mariadb_config ./mysql_config I was then able to install mysql-python with pip. If it's not already installed, then also do: sudo apt-get install python-dev

< ^ txt