Jump to content
janipriy

sudo pecl install mongo

Recommended Posts

Hello,

In AWS Linux private instance (no internet) I am trying to do following.

1. I installed Apache, PHP 5.3.29, mongoDB 3.4.24 using yum.

2. Now I want to install mongo driver from PECL 

3. As there is no internet connection. It fails.

Thus , I tried below

get mongodb-1.3.0.tgz (https://pecl.php.net/package/mongod)
gunzip mongodb-1.3.0.tgz
tar -xvf mongodb-1.3.0.tar
cd mongodb-1.3.0
phpize
./configure  
sudo make install

It gives me error as:

/home/ec2-user/mongodb-1.3.0/php_phongo.c:60:30: fatal error: Zend/zend_string.h: No such file or directory
 #include <Zend/zend_string.h>
                              ^
compilation terminated.
make: *** [php_phongo.lo] Error 1
 

Can you please help me to install connector.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.