I have been getting this Fatal error: Class 'Memcache' not found. Please add EVENT_NOKQUEUE=1 to your shell environment. I have memcached 2.2.0 showing up on phpinfo, but I am unable to implement a project that utilizes this extension. #undef TCP_NOPUSH #ifdef TCP_NOPUSHĬurl -O http: // /svn /shovel /memcached /fixmemcached_c.rbĮcho "Installation complete. So I decided that the easiest way to do this is with MAMP. configure -prefix= $/' Makefile > Makefile.new But I want to be able to run a PHP 5.2 instance locally as well. # PREFIX= /usr / local mkdir srcĬurl -O http: ///~provos /libevent-1.1b.tar.gz This allowed me to run pages form elsewher ein my Documents folder. Update 4: Changed MAMPs nf to use ferg:staff as user and group. Apache follows the link but still gives a 403. But I can't find a way to install memcache.so on my MAMP. Update 3: I created a symbolic link from the MAMP htdocs folder to the site in my Dropbox folder. In the process I have successfully installed memcached and tested it. i put the extensionmemcached.so after all extensions (instead of end of php.ini) like this : Extensions extensionapcu.so extensiona. I am trying to make memcache work on MAMP 1.9. # AUTHOR: Geoffrey Grosenbach # Some fixes are from # AFTER RUNNING THIS SCRIPT: # Set the environment variable EVENT_NOKQUEUE to 1 # * csh and derivatives: setenv EVENT_NOKQUEUE 1 # * sh and derivatives (like bash): export EVENT_NOKQUEUE=1 # You may also need to add /usr/local to your PATH. works great with my previous version of MAMP 2 (php 5.6.x) but not with current release of MAMP 3. Now, let’s install memcache /Applications. To edit the php.ini file correctly, you must select File > Edit Template > PHP 5.x.x php. The php.ini file I was editing in the MAMP/conf/ directory is in fact NOT being used by MAMP. But wait, every instruction says that you must have pecl in order to install memcache. 1 Answer Sorted by: 1 After much research and trial and error, I found the solution. # Newer versions of these libraries are available and may work better on Mac OS X. After installing memcached, now we can install memcache. #!/bin/sh # Install memcached and dependencies smoothly on Mac OS X.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |