First time here? Check out the FAQ!
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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
sean's avatar
1
sean
asked 10 years ago, updated 10 years ago

Comments

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Flyte's avatar
26
Flyte
answered 10 years ago
link

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 10 years ago
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 (10 years ago)

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

Evgeny's avatar Evgeny (10 years ago)
see more comments
0

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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
evelyncarter's avatar
1
evelyncarter
answered 10 years ago
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 (10 years ago)
see more comments