0

Do I need to install MySQL server before installing Askbot?

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

sean's avatar
1
sean
asked 2014-04-28 16:15:15 -0600, updated 2014-04-28 16:31:40 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

3 Answers

1

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
Flyte's avatar
26
Flyte
answered 2014-06-11 08:04:39 -0600
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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.

Evgeny's avatar
13.2k
Evgeny
answered 2014-04-28 16:18:56 -0600
edit flag offensive 0 remove flag delete link

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's avatar sean (2014-04-28 16:28:33 -0600) edit

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

Evgeny's avatar Evgeny (2014-06-11 16:28:09 -0600) edit
add a comment see more comments
0

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

evelyncarter's avatar
1
evelyncarter
answered 2014-07-18 06:32:19 -0600
edit flag offensive 0 remove flag delete link

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's avatar Evgeny (2014-07-18 12:49:47 -0600) edit
add a comment see more comments