Error Building:Fatal Error: Pcre.H: No Such File or Directory

Error building : fatal error: pcre.h: No such file or directory

The latest version of Phalcon uses PCRE libraries.

You can install them like so:

sudo apt-get install libpcre3-dev

and then try and install Phalcon again

For CentOS you will need to use

sudo yum install pcre-devel

Credits: @xgretsch

For Mac you can use

brew install pcre

Credits @Brandon Romano

For Mac without brew

Go to https://www.pcre.org/ and download latest pcre:,

tar -xzvf pcre-8.42.tar.gz
cd pcre-8.42
./configure --prefix=/usr/local/pcre-8.42
make
make install
ln -s /usr/local/pcre-8.42 /usr/sbin/pcre
ln -s /usr/local/pcre-8.42/include/pcre.h /usr/include/pcre.h

Credits @user1377324

GCC compiler is unable to find pcre.h

As the comment above says you need to use #include. If this isn't working you may want to export an environment variable C_INCLUDE_PATH that points to the header file.

Failing that why not try adding -I/usr/local/include to your gcc call, something like gcc myfile.c -I/usr/local/include -o myexe

pcre2.h: No such file or directory

try:

sudo ln -s /opt/local/include/pcre.h /usr/include/       "replace your file location here"
sudo pecl install apc

nginx compiling from source

Just don't use pcre2. You need pcre like pcre-8.36.

Fatal error: Python-h not found on griddb python client

I have been able to fix the error!
Apparently I installed the wrong python client, I git cloned the right python client with this command

git clone https://github.com/griddb/python_client.git

check out the full documentation on griddb python client installation here:
https://docs.griddb.net/gettingstarted/using-rpmyum/#install-with-rpm

sudo pecl install apc returns error

PCRE is a dependency for installing APC. You can install it pretty quick with

yum install pcre-devel or apt-get install libpcre3-dev

once it's installed, re-run

sudo pecl install apc



Related Topics



Leave a reply



Submit