How to resolve PHP Pecl Memcached module installation problems
I am using on several projects memcached and on the application side the php memcached module. This can be installed as any pear/pecl module, or from source by downloading the source .tgz and running the classic phpize; ./configure; make; make install; While trying to upgrade the memcached module to the latest version available 2.1.2 I encoutered a problem, receiving an error during the compile step:
“configure: error: Cannot find php_session.hâ€
I am not sure if this error appears on different Linux distributions, but this happened for me on Debian Etch systems, running PHP4 but also with PHP5. Even if there is a pecl bug regarding this problem there is no patch or solution for it. Anyway… if you want to compile this version on Debian the solution is simple, and you will have to create a link from /usr/include/php{4/5} to /usr/include/php:
ln -s /usr/include/php4 /usr/include/phpor if you are running PHP5:
ln -s /usr/include/php5 /usr/include/phpThis will allow the configure script to properly find the php_session.h include.
And in the end here is also the list of commands required to compile this module from source (don’t forget to create the link from above for your PHP version):
wget http://pecl.php.net/get/memcache-2.1.2.tgz
tar xvfz memcache-2.1.2.tgz
cd memcache-2.1.2
phpize
./configure
make
make installor you can also use pear/pecl to install the module:
pecl install memcache
Note: in order to use the phpize command you need on to have installed the php development packages (on Debian the packages needed are php4-dev or php5-dev if you are using php5).
Once you installed the module you will need to enable it in php.ini, by adding:
extension=memcache.socommand, compilation, compiler, configuration, configure, create, difference, enable, install, linux, listing, patches, scripts, source, system, systems, usr
Categories
- Alerts & News
- Android
- Anti-Malware
- Anti-Spam/Virus
- Anti-Spyware
- Anti-Virus
- Apache
- Archiving
- Articles
- Audio and Video
- AWS
- Backup
- Backup
- Braindumps
- Browsers
- Browsers and Plugins
- Build Tools
- Cacti
- CentOS
- Cisco
- Cisco IOS Command Reference
- Citrix NetScaler
- Cleaning and Tweaking
- Clustering
- Clustering
- Compilers
- Data recovery
- Database
- Database
- Databases
- Debuggers
- Dell
- Dell
- Desktops
- Developer
- DHCP
- DNS
- Drivers Download
- Drupal
- Editors
- Encryption Software
- Exchange Server
- Fedora
- File Management
- firefox
- Firefox Add-ons
- Firewall
- Free ebooks
- Free software downloads
- Free Tools
- FTP
- FTP
- Games
- Google Plus
- Graphics
- Hacking
- Hardware
- Help Desk software
- High-Availability
- HP
- HP
- IIS
- Interpreters
- iphone
- IT-Tips
- LAMP
- Languages
- Laptops
- Latest Product & Technologies
- Linux
- Linux Commands
- Load Balancer
- Mac
- Memcached
- Messaging and Chat
- miscellaneous
- Mobile Development
- Mobiles
- Monitoring
- MySQL
- NAS
- Networking
- Networking
- Networking Software
- Office and News
- Open Source
- OpenSource Applications
- openSUSE
- Oracle
- PHP
- Popular downloads
- PostgreSQL
- Project Management Software
- Qmail
- Red Hat
- Remote Access
- Repository
- Sci-Tech Education
- Security
- Security
- Sendmail
- SEO
- SEO Tools
- Server OS
- Service Pack
- social networking
- Software Development
- solr
- SQL
- Squid
- Storage
- Sun Solaris
- System Tuning
- Tech Guru
- Technology News
- Testing
- Ubuntu
- Utilities
- Version Control
- Video Tutorial
- Virtual Machine Applications
- Virtualization
- VoIP
- VPN
- Web-related
- web-related
- Websense
- Website Promotion
- Windows
- Windows Commands
- Zend Studio
Recent Posts
- The best memcached Monitoring tool
- Is Thin Clients are Useful for Call center ?
- A new Email Service from Microsoft called Outlook.com
- How to Detect Back Links from spam websites
- How to Ignore Replication errors in MySQL
