php - PHPBREW installing imap support error -


i trying install phpbrew extension because of following error:

fatal error: call undefined function imap_open() in /var/www/html/mainframe/mailer.php on line 30 

i have recieved following in cli window after function install has been run :

install code:

phpbrew extension install imap 

results:

      php:  syntax error, unexpected '(' in /home/computername/.phpbrew/php/php-5.5.10/etc/php.ini on line 8     ===> installing imap extension...     log stored at: /home/computername/.phpbrew/build/php-5.5.10/ext/imap/build.log     changing directory /home/computername/.phpbrew/build/php-5.5.10/ext/imap     ===> phpize...     ===> configuring...     exception: command failed: ./configure --with-php-config=/home/computername/.phpbrew/php/php-5.5.10/bin/php-config >> /home/computername/.phpbrew/build/php-5.5.10/ext/imap/build.log 2>&1 returns     trace:      0) phpbrew\utils::system('./configure --with-php-config=/home/computername/.phpbrew/php/php-5.5.10/bin/php-config >> /home/computername/.phpbrew/build/php-5.5.10/ext/imap/build.log 2>&1', cliframework\logger)     1) phpbrew\extension\extensioninstaller->install(phpbrew\extension\m4extension, [])     2) phpbrew\extension\extensionmanager->installextension(phpbrew\extension\m4extension, [])     3) phpbrew\command\extensioncommand\installcommand->execute('imap')     4) call_user_func_array([phpbrew\command\extensioncommand\installcommand, 'execute'], ['imap'])     5) cliframework\commandbase->executewrapper(['imap'])     6) cliframework\application->run(['/usr/bin/phpbrew', 'extension', 'install', 'imap'])     7) cliframework\application->runwithtry(['/usr/bin/phpbrew', 'extension', 'install', 'imap'])     8) require('phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php') 

root@mainframe:~#

make sure use phpbrew php version. can phpbrew list php version use.


Comments