Downloaded MySQL DB from here. 
http://sourceforge.net/project/showfiles.php?group_id=22307

Only version 1.2.2 works, the others give you so many issues.

Then,

# tar -xvzf MySQL-python-1.2.2.tar.gz

# cd MySQL-python-1.2.2/

you then need to set the location of the file mysql_config in your
LD_LIBRARY path, make sure that the location below reflects your
version of linux/ubuntu or what ever your doing this on.
# export LD_LIBRARY_PATH=/usr/local/mysql/lib:$LD_LIBRARY_PATH

# python setup.py build

# sudo python setup.py install

You should get a result like this:
--> Installed /usr/lib/python2.5/site-packages/MySQL_python-1.2.2-
py2.5-linux-x86_64.egg
--> Processing dependencies for MySQL-python==1.2.2

On my system I still could not find mysql_config, and eventually
discovered that on ubuntu it comes in a seperate lib package called
libmysqlclient15-dev.

# sudo apt-get install libmysqlclient15-dev

And then try

# Python
[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on charles-pc
Type "help", "copyright", "credits" or "license" for more information.

>>> import MySQLdb

If you dont get an error then you have mysql DB.

You can then run.

# virtualenv --no-site-packages tg2env
# cd tg2env/
# source bin/activate
# easy_install -i http://www.turbogears.org/2.0/downloads/current/index
tg.devtools

Hopefully you should have a working TG2.
Oh one other issue, if you have TG1 installed on your PC, there is
some Json stuff that has a version conflict, i did not bother to
resolve that, i simply removed the old TD1.

Hope this helps anyone else that faces the same problem.

On 9 Mar, 16:30, Mark Ramm <[email protected]> wrote:
> We don't install mysqldb for you, the only database driver that we
> install by default is sqlite, but you can definitely install mysqldb
> yourself.  So, so I don't think that the bootstarap.py file will fix
> that for you.
>
> --Mark
>
> On Mon, Mar 9, 2009 at 11:55 AM, casibbald <[email protected]> wrote:
>
> > Has Anyone Tried to Install Turbogears using tg2-bootstrap.py as done
> > below?
>
> > Does anyone have it working?
>
> > And if I install using workaround, I dont get mysqldb.
>
> > Regards
>
> > charles
>
> > On 9 Mar, 14:25, casibbald <[email protected]> wrote:
> >> char...@charles-laptop:~/www$ python tg2-bootstrap.py --no-site-
> >> packages tg2env
> >> New python executable in tg2env/bin/python
> >> Installing setuptools...........................done.
> >> Installing turbogears....
> >> Running command....
> >> tg2env/bin/easy_install 
> >> -ihttp://www.turbogears.org/2.0/downloads/current/index
> >> tg.devtools
> >> Searching for tg.devtools
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/tg.devtools/
> >> Best match: tg.devtools 2.0b7
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/tg.devtools-2.0b7.tar.gz
> >> Processing tg.devtools-2.0b7.tar.gz
> >> Running tg.devtools-2.0b7/setup.py -q bdist_egg --dist-dir /tmp/
> >> easy_install-MYLYaM/tg.devtools-2.0b7/egg-dist-tmp-sgBNiQ
> >> Adding tg.devtools 2.0b7 to easy-install.pth file
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> tg.devtools-2.0b7-py2.5.egg
> >> Processing dependencies for tg.devtools
> >> Searching for repoze.who
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/repoze.who/
> >> Best match: repoze.who 1.0.10
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/repoze.who-1.0.10.tar.gz
> >> Processing repoze.who-1.0.10.tar.gz
> >> Running repoze.who-1.0.10/setup.py -q bdist_egg --dist-dir /tmp/
> >> easy_install-y_hh1S/repoze.who-1.0.10/egg-dist-tmp-lTv-Tp
> >> Adding repoze.who 1.0.10 to easy-install.pth file
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> repoze.who-1.0.10-py2.5.egg
> >> Searching for repoze.what-quickstart>=1.0rc3
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/repoze.what-qui...
> >> Best match: repoze.what-quickstart 1.0
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/repoze.what-quickstar...
> >> Processing repoze.what-quickstart-1.0.tar.gz
> >> Running repoze.what-quickstart-1.0/setup.py -q bdist_egg --dist-dir /
> >> tmp/easy_install-SzyT_q/repoze.what-quickstart-1.0/egg-dist-tmp-p-gf9d
> >> no previously-included directories found matching 'docs/build'
> >> warning: no previously-included files matching '*' found under
> >> directory 'tests'
> >> warning: no previously-included files matching '*~' found anywhere in
> >> distribution
> >> warning: no previously-included files matching '*.pyc' found anywhere
> >> in distribution
> >> warning: no previously-included files matching '*.egg' found anywhere
> >> in distribution
> >> warning: no previously-included files matching '.directory' found
> >> anywhere in distribution
> >> Adding repoze.what-quickstart 1.0 to easy-install.pth file
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> repoze.what_quickstart-1.0-py2.5.egg
> >> Searching for SQLAlchemy>=0.5
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/SQLAlchemy/
> >> Best match: SQLAlchemy 0.5.1
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/SQLAlchemy-0.5.1.tar.gz
> >> Processing SQLAlchemy-0.5.1.tar.gz
> >> Running SQLAlchemy-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/
> >> easy_install-PD-XzS/SQLAlchemy-0.5.1/egg-dist-tmp-QvKSWU
> >> no previously-included directories found matching 'doc/build/output'
> >> zip_safe flag not set; analyzing archive contents...
> >> sqlalchemy.databases.mysql: module MAY be using inspect.stack
> >> Adding SQLAlchemy 0.5.1 to easy-install.pth file
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> SQLAlchemy-0.5.1-py2.5.egg
> >> Searching for sqlalchemy-migrate>=0.4.4
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/sqlalchemy-migr...
> >> Best match: sqlalchemy-migrate 0.5.1.dev-r479
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/sqlalchemy-migrate-0....
> >> Processing sqlalchemy-migrate-0.5.1.dev-r479.tar.gz
> >> Running sqlalchemy-migrate-0.5.1.dev-r479/setup.py -q bdist_egg --dist-
> >> dir /tmp/easy_install-UHHG9R/sqlalchemy-migrate-0.5.1.dev-r479/egg-
> >> dist-tmp-F63KlJ
> >> Checking .pth file support in .
> >> /home/charles/www/tg2env/bin/python -E -c pass
> >> Searching for nose>=0.10
> >> Readinghttp://pypi.python.org/simple/nose/
> >> Readinghttp://somethingaboutorange.com/mrl/projects/nose/
> >> Best match: nose 0.10.4
> >> Downloadinghttp://somethingaboutorange.com/mrl/projects/nose/nose-0.10.4.tar.gz
> >> Processing nose-0.10.4.tar.gz
> >> Running nose-0.10.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-
> >> UHHG9R/sqlalchemy-migrate-0.5.1.dev-r479/temp/easy_install-96hqDk/
> >> nose-0.10.4/egg-dist-tmp-W5ALgT
> >> zip_safe flag not set; analyzing archive contents...
> >> nose.loader: module references __path__
> >> nose.suite: module references __path__
> >> nose.inspector: module MAY be using inspect.findsource
> >> nose.importer: module references __file__
> >> nose.importer: module references __path__
> >> nose.util: module references __file__
> >> nose.ext.dtcompat: module references __file__
> >> nose.ext.dtcompat: module MAY be using inspect.getsourcefile
> >> nose.plugins.doctests: module references __file__
> >> nose.plugins.cover: module references __file__
>
> >> Installed /tmp/easy_install-UHHG9R/sqlalchemy-migrate-0.5.1.dev-r479/
> >> nose-0.10.4-py2.5.egg
> >> /home/charles/www/tg2env/lib/python2.5/site-packages/setuptools-0.6c9-
> >> py2.5.egg/setuptools/dist.py:245: UserWarning: Module nose was already
> >> imported from /tmp/easy_install-UHHG9R/sqlalchemy-migrate-0.5.1.dev-
> >> r479/temp/easy_install-96hqDk/nose-0.10.4/nose/__init__.py, but /tmp/
> >> easy_install-UHHG9R/sqlalchemy-migrate-0.5.1.dev-r479/nose-0.10.4-
> >> py2.5.egg is being added to sys.path
> >>   working_set.add(dist)
> >> zip_safe flag not set; analyzing archive contents...
> >> migrate.versioning.api: module MAY be using inspect.getsource
> >> Adding sqlalchemy-migrate 0.5.1.dev-r479 to easy-install.pth file
> >> Installing migrate script to /home/charles/www/tg2env/bin
> >> Installing migrate-repository script to /home/charles/www/tg2env/bin
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> sqlalchemy_migrate-0.5.1.dev_r479-py2.5.egg
> >> Searching for TurboGears2>=2.0b5
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/TurboGears2/
> >> Best match: TurboGears2 2.0b7
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/TurboGears2-2.0b7.tar.gz
> >> Processing TurboGears2-2.0b7.tar.gz
> >> Running TurboGears2-2.0b7/setup.py -q bdist_egg --dist-dir /tmp/
> >> easy_install-XuBDy_/TurboGears2-2.0b7/egg-dist-tmp-l24rFv
> >> Adding TurboGears2 2.0b7 to easy-install.pth file
>
> >> Installed /home/charles/www/tg2env/lib/python2.5/site-packages/
> >> TurboGears2-2.0b7-py2.5.egg
> >> Searching for zope.interface
> >> Readinghttp://www.turbogears.org/2.0/downloads/current/index/zope.interface/
> >> Best match: zope.interface 3.4.1
> >> Downloadinghttp://www.turbogears.org/2.0/downloads/current/zope.interface-3.4.1....
> >> Processing zope.interface-3.4.1.tar.gz
> >> Running zope.interface-3.4.1/setup.py -q bdist_egg --dist-dir /tmp/
> >> easy_install-gwpGW5/zope.interface-3.4.1/egg-dist-tmp-oTY5II
> >> src/zope/interface/_zope_interface_coptimizations.c:15:20: error:
> >> Python.h: No such file or directory
> >> src/zope/interface/_zope_interface_coptimizations.c:16:26: error:
> >> structmember.h: No such file or directory
> >> src/zope/interface/_zope_interface_coptimizations.c:22: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:23: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:24: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:25: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:26: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:27: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:28: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:29: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c:31: error:
> >> expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
> >> src/zope/interface/_zope_interface_coptimizations.c: In function
> >> ‘import_declarations’:
> >> src/zope/interface/_zope_interface_coptimizations.c:38: error:
> >> ‘PyObject’ undeclared (first use in this function)
> >> src/zope/interface/_zope_interface_coptimizations.c:38: error: (Each
> >> undeclared identifier is reported only once
> >> src/zope/interface/_zope_interface_coptimizations.c:38: error: for
> >> each function it appears in.)
> >> src/zope/interface/_zope_interface_coptimizations.c:38: error:
> >> ‘declarations’ undeclared (first use in this function)
> >> src/zope/interface/_zope_interface_coptimizations.c:38: error: ‘i’
> >> undeclared (first use in this function)
>
> ...
>
> read more »
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to