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

  • SEARCH
  • Home
  • 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 7995389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:24:09+00:00 2026-06-04T14:24:09+00:00

I tried installing APC with pecl on OS X Lion ( sudo pecl install

  • 0

I tried installing APC with pecl on OS X Lion (sudo pecl install apc) and it complained about a missing pcre.h file:

In file included from /private/tmp/pear/temp/APC/apc.c:44:
/usr/include/php/ext/pcre/php_pcre.h:29:10: fatal error: 'pcre.h' file not found
#include "pcre.h"

So I used MacPorts to install the pcre package (sudo port install pcre) but it still complains. How can I fix this?

  • 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-04T14:24:11+00:00Added an answer on June 4, 2026 at 2:24 pm

    I think this is because MacPorts installs the header files in a different location from where pecl expects them.

    To fix this error, I symlinked pcre.h to /usr/include:

    sudo ln -s /opt/local/include/pcre.h /usr/include/
    

    When running sudo pecl install apc it compiled just fine.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've tried installing ffmpeg in mac lion through homebrew like this: brew install --use-clang
I am using Eclipse to program in Java. I tried installing from this site
I tried installing ruby 1.9.3 on Snow Leopard using: rvm install 1.9.3 --with-gcc=clang After
I tried installing django-utils from source code from github and using pip. The installation
I tried installing Essential.Diagnostics via Install-Package Essential.Diagnostics But I had an issue where it
I have tried installing connect via npm install connect, and according to npm, the
I am trying to install cocoa2d template for XCode 4. I tried installing and
anyone managed to install mcms 2002 on windows 7 ? i tried installing vs.net
I tried installing extension from extension manager but no use. Can you help how
Error reading XSLT file: \xslt\umbTopNavigation.xslt i've tried installing on more than one server -everyone

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.