| | 106 | == xcache.so: undefined symbol: core_globals_id == |
| | 107 | It can be ***_globals_id or ***_id. This error mean XCache was built with wrong PHP headers (the include/php/*.h files), either it was wrong version or wrong PHP built option, like 4.x vs 5.x or PHP zts built vs non-zts built. Apparently, it can be fixed easily by removing the wrong headers and rebuild XCache. |
| | 108 | |
| | 109 | 1. Remove wrong PHP headers |
| | 110 | PHP headers can be php-devel package on some system, simply reinstall or upgrade it. But if your php is installed manually, try: |
| | 111 | ====== Remove PHP headers manually ====== |
| | 112 | {{{ |
| | 113 | #!ShellExample |
| | 114 | (updatedb is optional if it's up to date already) |
| | 115 | # updatedb |
| | 116 | # locate include/php/main |
| | 117 | /usr/lib64/php5/include/php/main |
| | 118 | /usr/lib64/php5/include/php/main/build-defs.h |
| | 119 | /usr/lib64/php5/include/php/main/php_scandir.h |
| | 120 | /usr/lib64/php5/include/php/main/php_regex.h |
| | 121 | ...... |
| | 122 | (now, remove them) |
| | 123 | # rm -rf /usr/lib64/php5/include/php/ |
| | 124 | # rm -rf /usr/local/include/php...... |
| | 125 | # cd php |
| | 126 | (Reinstall the right php headers) |
| | 127 | php # make install |
| | 128 | }}} |
| | 129 | 2. Rebuild XCache with the right php headers |
| | 130 | ====== Rebuild XCache ====== |
| | 131 | {{{ |
| | 132 | #!ShellExample |
| | 133 | $ cd xcache |
| | 134 | $ make distclean |
| | 135 | $ phpize --clean |
| | 136 | $ phpize |
| | 137 | $ ./configure --enable-... && make |
| | 138 | $ su |
| | 139 | # make install |
| | 140 | }}} |
| | 141 | |