How to install Gearman with PHP Extension

前端 未结 5 1126
予麋鹿
予麋鹿 2020-12-17 01:42

I\'m trying to install Gearman with PHP Extension to use it with PHP-CLI.

I have a Debian 6.0.5 with php5-cli and php-pear installed.

相关标签:
5条回答
  • 2020-12-17 02:27

    to install Gearman with PHP Extension in Windows OS see How can i install gearman php extension on Windows OS?

    install Boost headers

    debian

    apt-get install libboost-all-dev
    

    fedora

    yum install boost-devel
    

    install gperf

    debian

    apt-get install gperf
    

    fedora

    yum install gperf
    

    install libevent

    debian

    apt-get install libevent-dev
    

    fedora

    yum install libevent-devel
    

    install uuid

    debian

    apt-get install uuid-dev
    

    fedora

    yum install uuid-devel
    

    install libcloog-ppl0

    debian

    apt-get install libcloog-ppl-dev
    

    install gearmand and libgearman

    wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz
    tar -zxvf gearmand-1.1.12.tar.gz
    cd gearmand-1.1.12
    ./configure
    make
    make install
    

    install pecl-gearman

    pecl install gearman
    

    Resources

    • http://hasin.me/2013/10/30/installing-gearmand-libgearman-and-pecl-gearman-from-source/

    • https://serverfault.com/questions/445904/how-to-install-libboost-devel-on-centos-6-3

    • https://serverfault.com/questions/528585/centos-yum-install-libevent-devel-conflict-with-compat-libevent

    • http://yupmin.net/install-gearmand-with-php-supervisor

    • https://gist.github.com/rafasashi/6f920d07909564bf8e4f

    0 讨论(0)
  • 2020-12-17 02:32

    For Debian, you should try this line:

    sudo apt-get install libgearman2
    

    instead of:

    sudo apt-get install libgearman-dev
    

    http://www.masnun.com/2011/09/30/installing-and-getting-started-with-gearman.html

    0 讨论(0)
  • 2020-12-17 02:38

    You can find thorough installation instructions for 0.8.3 here: http://blog.andyburton.co.uk/index.php/2012-12/gearman-0-41-with-mysql-persistent-storage-and-php-pecl-0-8-3-with-gearmanmanager-on-ubuntu-12-04/

    0 讨论(0)
  • 2020-12-17 02:45

    I found the solution in this post installing-gearman-php-extension-on-debian-6.

    On Debian 6 / squeeze you can only install up to version 0.8.3. If you want a newer version, you have to upgrade to wheezy.

    0 讨论(0)
  • 2020-12-17 02:48

    Please try the steps mentioned here:

    http://www.daredevel.com/php-jobs-with-gearman-and-supervisor/

    thanks

    0 讨论(0)
提交回复
热议问题