PHP Warning: PHP Startup: gearman: Unable to initialize module

719 views
Skip to first unread message

emorling

unread,
Feb 9, 2012, 7:02:14 AM2/9/12
to gearman
I am really struggling to get Gearman working after upgrading from PHP
5.2 to PHP5.3

This is what I get when I run: php -v
PHP Warning: PHP Startup: gearman: Unable to initialize module
Module compiled with module API=20050922
PHP compiled with module API=20090626
These options need to match
in Unknown on line 0
PHP 5.3.3 (cli) (built: Feb 2 2012 18:29:52)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies


Any ideas?

Dave Lozier

unread,
Feb 9, 2012, 9:33:29 AM2/9/12
to gea...@googlegroups.com


It looks like you'll need to recompile the extension. If it was
installed with PEAR you could try "pear upgrade gearman" or simply
uninstall and install with pear.

emorling

unread,
Feb 9, 2012, 12:28:31 PM2/9/12
to gearman
Sorry, I am a total newbie with linux. I have not used PEAR and
Net_Gearman.

What I did was download version 0.27 from Launchpad and run the
configure, make, make install process.

Was this the point where the "gearman.so" extension was compiled? Or
did it come with gearman.so for 5.2 in the download? What could have
gone wrong? Did gearman compile with an older version of php on my
system?

Elia


On 9 Feb, 15:33, Dave Lozier <d...@davelozier.com> wrote:

Herman Radtke

unread,
Feb 9, 2012, 2:01:11 PM2/9/12
to gea...@googlegroups.com
On Thu, Feb 9, 2012 at 9:28 AM, emorling <elia.m...@gmail.com> wrote:
> Sorry, I am a total newbie with linux. I have not used PEAR and
> Net_Gearman.
>
> What I did was download version 0.27 from Launchpad and run the
> configure, make, make install process.
>
> Was this the point where the "gearman.so" extension was compiled? Or
> did it come with gearman.so for 5.2 in the download? What could have
> gone wrong? Did gearman compile with an older version of php on my
> system?
>
> Elia

sudo pecl upgrade gearman

--
Herman Radtke
herman...@gmail.com | http://hermanradtke.com

emorling

unread,
Feb 9, 2012, 4:43:10 PM2/9/12
to gearman
Thankyou, this did the trick!

On 9 Feb, 20:01, Herman Radtke <hermanrad...@gmail.com> wrote:
> On Thu, Feb 9, 2012 at 9:28 AM, emorling <elia.morl...@gmail.com> wrote:
> > Sorry, I am a total newbie with linux. I have not used PEAR and
> > Net_Gearman.
>
> > What I did was download version 0.27 from Launchpad and run the
> > configure, make, make install process.
>
> > Was this the point where the "gearman.so" extension was compiled? Or
> > did it come with gearman.so for 5.2 in the download? What could have
> > gone wrong? Did gearman compile with an older version of php on my
> > system?
>
> > Elia
>
> sudo pecl upgrade gearman
>
> --
> Herman Radtke
> hermanrad...@gmail.com |http://hermanradtke.com
Reply all
Reply to author
Forward
0 new messages