Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8940451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:02:24+00:00 2026-06-15T11:02:24+00:00

Running the command pecl install mysqlnd_qc to install the caching with APC enabled I

  • 0

Running the command pecl install mysqlnd_qc to install the caching with APC enabled I receive the following error:

configure: error: APC is onlysupported if both APC and MySQL Query Cache are compiled statically
ERROR: `/var/tmp/mysqlnd_qc/configure --enable-mysqlnd-qc-apc=yes --enable-qc-memcache=no --enable-qc-sqlite=no' failed

Without the APC enabled it compiles fine…

PHP version: 5.3.17

Running on Amazon RDS.

What does it mean to compile APC and MySQL Query Cache statically?

How is it done?


Update 1:

As I haven’t managed to compile mysqlnd_qc with APC, I tried compiling it with memcached.
Here was an interesting issue. The ./configure command didn’t recognize the the option the pecl gave for memcache. I found out that the option was entered incorrectly…

So I killed the pecl installation when it was asking for the options and ran the following commands myself:

sudo ./configure --enable-mysqlnd-qc-memcache --with-libmemcached-dir=/usr/
sudo make
sudo make install

So with memcached it now works.

If running on Fedora (I guess also RedHat and CentOS) there is available a rpm:

sudo yum install php-pecl-mysqlnd-qc

Update 2:

I managed to compile with APC, see the detailed answer below.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T11:02:25+00:00Added an answer on June 15, 2026 at 11:02 am

    Well found the solution:

    Here is what I did:

    Get php 5.3.17:

    wget https://github.com/php/php-src/archive/PHP-5.3.17.zip
    unzip PHP-5.3.17.zip
    

    Get mysqlnd_qc:

    wget http://pecl.php.net/get/mysqlnd_qc-1.1.1.tgz
    tar -zxvf http://pecl.php.net/get/mysqlnd_qc-1.1.1.tgz
    mkdir -p php-src-PHP-5.3.17/ext/mysqlnd_qc
    cp -R mysqlnd_qc-1.1.1/* php-src-PHP-5.3.17/ext/mysqlnd_qc
    

    Get APC:

    wget http://pecl.php.net/get/APC-3.1.13.tgz
    tar -xzvf APC-3.1.13.tgz
    mkdir -p php-src-PHP-5.3.17/ext/apc
    cp -R APC-3.1.13/* php-src-PHP-5.3.17/ext/apc/
    

    Compile: (maybe don’t need all on other systems)

    sudo yum install bison
    sudo yum install libxml2 libxml2-devel
    sudo yum install autoconf213
    sudo yum install httpd-devel
    sudo yum install bzip2 lbzip2 bzip2-libs bzip2-devel
    
    export PHP_AUTOCONF=/usr/bin/autoconf-2.13
    
    ./buildconf --force
    make clean && make
    

    (for me the linkage failed and had to add ‘-lpthread’ to linkage)

    make test
    sudo make install
    

    I used also the following 2 commands but I don’t remember for what and when…

    phpize
    aclocal
    

    Run the same ./configure as in phpinfo and add these options:

    --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mysqlnd-qc --enable-mysqlnd-qc-apc --enable-mysqlnd --enable-apc --enable-static=apc
    
    • All the --with must be replaced.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am running xcodebuild command from terminal but getting the following error ATION (Release)
I am running command.. $ refinerycms rickrockstar -d=mysql -U=root -P=root and getting error like
After running the command ./manage.py runserver I'm getting the following error. I know it's
I am having trouble running pecl install oauth on centos 5. I installed PHP
When running command-line queries in MySQL you can optionally use ' \G ' as
Yet another code sign error. I'm running command: xcodebuild -project $DIR/myproject.xcodeproj -sdk iphoneos5.0 -alltargets
I got the following error when trying to install Hadley's HTTR package from Github
I want to execute a long running command in Bash, and both capture its
I'm running a command similar to the following getHosts | xargs -I{} -P3 -n1
Im running this command from ruby script: system trad install This will prompt me

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.