Ok, I got it.
Got confused between the different pear and php version,
so the wrong path got into the php.ini.

Note to self: 
FIRST look out for the active pear, by 
$locate pear 
THEN edit your php.ini by modifying the include_path variable to include the pear directory at:
include_path = ".:/path/to/pear";

Sorry for spamming, but maybe it is of a help for someone else.

cwittenb.


On Mar 12, 2008, at 9:43 PM, cwittenb wrote:

Hey Michael!

Just tried to update my code to the latest svn version of limesurvey20.(4438)
About 400 revisions had passed since the last update, so I had to run the migrations for tables that are not in the import-sql script (e.g. tags table).

I'm on a mac, so I had to "install" PEAR that came with my MAMP by linking it to /usr/bin/pear:

sudo ln -s /Applications/MAMP/bin/php5/bin/pear /usr/bin/pear

checking for pear:
$ pear -V       
PEAR Version: 1.4.9
PHP Version: 5.1.6
Zend Engine Version: 2.1.0
Running on: Darwin mutter.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386

However, when I try to run the migration sript:
$ ./cake migrate
Hello cwittenb,

Welcome to CakePHP v1.2.0.6311 beta Console
---------------------------------------------------------------
Error: PEAR NOT FOUND
Unable to include PEAR.php and MDB2.php


??? May be you can give me a hint on how to tell cake that pear is installed. (Or install it where it can be found? ;) )

Ah yeah, and mdb2 should be there too:
$pear install mdb2
Skipping package "pear/MDB2", already installed as version 2.4.1
No valid packages found
install failed

Would be cool if you could help me out.
Maybe anybody else had this problem?


Thanks very much!
cwittenb.