Monday, September 26, 2011

Getting Bake to work on Linux

Hello, I'm trying to get Bake to work on Linux. Cake works fine except
for baking.

I'm on Ubuntu 11.04
xampp 1.7.4 for Linux
I have php5-cli installed

When I run the command, from:

/opt/lampp/htdocs/cakeapp/cake/console
./cake bake

and then if I try to bake a model I get a fatal error:

PHP Fatal error: Call to undefined function mysql_query() in /opt/
lampp/htdocs/cakeapp/cake/libs/model/datasources/dbo/dbo_mysql.php on
line 613

Fatal error: Call to undefined function mysql_query() in /opt/lampp/
htdocs/cakeapp/cake/libs/model/datasources/dbo/dbo_mysql.php on line
613

I have tried adding extension=mysql.so to both my CLI php.ini and my
XAMPP's php.ini file. When I do, neither of them will load it, it says
it can't load these dynamic extensions.

Does anyone know how I might fix this? After adding an extension to my
php.ini files do I have to run anything in linux to get it to install
these extensions? Thanks.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: