Ask Your Question
0

Do I need to install MySQL server before installing Askbot?

asked 2014-04-28 16:15:15 -0500

sean gravatar image

updated 2014-04-28 16:31:40 -0500

I am a little confused when reading Askbot installation doc.

It implies that we don't need to install MySQL server on the box, doesn't Askbot need a DB backend?

Thanks,

(Similar questions go to Apache server, and mod_wsgi modules)

What I have done is show below

#sudo python setup.py develop

#askbot-setup

#sudo pip install mysql-python

Here is the error message I got

vagrant@askbot:~/askbot$ sudo pip install mysql-python Downloading/unpacking mysql-python Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded Running setup.py (path:/tmp/pip_build_root/mysql-python/setup.py) egg_info for package mysql-python sh: 1: mysql_config: not found Traceback (most recent call last): File "<string>", line 17, in <module> File "/tmp/pip_build_root/mysql-python/setup.py", line 17, in <module> metadata, options = get_config() File "setup_posix.py", line 43, in get_config libs = mysql_config("libs_r") File "setup_posix.py", line 25, in mysql_config raise EnvironmentError("%s not found" % (mysql_config.path,)) EnvironmentError: mysql_config not found Complete output from command python setup.py egg_info: sh: 1: mysql_config: not found</module></module></string>

Traceback (most recent call last):

File "<string>", line 17, in <module></module></string>

File "/tmp/pip_build_root/mysql-python/setup.py", line 17, in <module></module>

metadata, options = get_config()

File "setup_posix.py", line 43, in get_config

libs = mysql_config("libs_r")

File "setup_posix.py", line 25, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found


Cleaning up... Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/mysql-python Storing debug log for failure in /home/vagrant/.pip/pip.log

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-06-11 08:04:39 -0500

Flyte gravatar image

The fix for the error message you mention is to install the libmysqlclient-dev package using apt (assuming you're using Debian/Ubuntu):

sudo apt-get install libmysqlclient-dev

Then try installing mysql-python again:

sudo pip install mysql-python
edit flag offensive delete link more
0

answered 2014-07-18 06:32:19 -0500

Even I have got the same problem, i need a solution too..

edit flag offensive delete link more

Comments

Hello, please try the suggestion of Flyte - make sure that MySQL is installed. However Postgres is much better. You should probably delete your answer as it's not really an answer.

Evgeny gravatar imageEvgeny ( 2014-07-18 12:49:47 -0500 )edit
0

answered 2014-04-28 16:18:56 -0500

Evgeny gravatar image

Askbot needs a database, for the production - preferrably - postgresql. Sqlite makes it the easiest to just try the software out.

For the production it will also be necessary to have a webserver, cache backend, but to just try out - it's enough to use the django's builtin runserver and the "locmem" cache backend.

edit flag offensive delete link more

Comments

Evgeny, I want to use it as my internal Q&A site. But I got a lot of error during the installation process, which I add in the main question to show why I have the question at the first place.

sean gravatar imagesean ( 2014-04-28 16:28:33 -0500 )edit

Use sqlite then - it is a library that comes with python - please look up the django administraton on this topic.

Evgeny gravatar imageEvgeny ( 2014-06-11 16:28:09 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2014-04-28 16:15:15 -0500

Seen: 1,373 times

Last updated: Jul 18 '14