As described in detail in the README.txt file, to finalize installation you have to either:
- insert one line in file include/path.inc, or
- install the PECL runkit library, compiled for your OS
For those wanting to follow the second approach, this issue appeals to developers to share their OS-specific PECL runkit libraries with the community. You can compile the runkit on your system following the instructions in the Extended Path Aliases README.txt file and then post it to this thread.
At the time of writing the PECL sites did not provide compiled runkit libraries of the latest version, only the source.
It would be great if we could collect 32 and 64 bit Linux-flavoured versions of runkit.so, as well as one for Windows, i.e. a php_runkit.dll. If you have a version not yet added to this thread, please attach it for all to enjoy.
Note that there are some 0.9 versions of the PECL runkit scattered about the internet, but these won't work with PHP 5.2/5.3. We need version 1.0.
In your post, please mention what system you tested runkit you attach. For the newbies amongst us please mention in which directory to drop the runkit file, as this varies from one system to the next.
To anyone using the runkit: don't forget to update your php.ini, as described in the README.txt.
Compiled libraries:
If you upload your compiled version, please remember to also update this list here so that people don't have to read the whole issue:
- 1.0.0-dev for MacOS, compiled and tested on MacOS 10.5 (aka "Leopard"), 32 bit.
- 1.0.2 for linux x64, compiled and tested on Ubuntu 11.04 (aka "Natty Narwhal"), x64.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | runkit-ubuntu-x64.tar_.gz | 81.93 KB | klonos |
| #1 | runkit.gz | 14.79 KB | rdeboer |
| #2 | php-status-report.jpg | 93.37 KB | rdeboer |
Comments
Comment #1
rdeboerAttached is a PECL runkit.so (compressed) compiled and tested on MacOS 10.5 (aka "Leopard"), 32 bit.
If you use a MAMP stack, drop the attached file in /Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20060613 (or similar number). Note this path needs to match the "extension_dir" directive in your php.ini, which on MAMP lives in /Applications/MAMP/conf/php5/php.ini.
Don't forget to the add the line "extension = runkit.so" to this file before restarting your MAMP stack (or at least your Apache server), via the MAMP console.
To check that everyhting is installed correctly open a browser to your Drupal site and view .../admin/reports/status/php. Scrolling almost all the way to the bottom of this PHP configuration report you should see a runkit section like the one shown in the attachment of comment #2 below.
Alternatively check you get a green tick in front of "PECL runkit" on the .../admin/reports/status page.
Comment #2
rdeboerAttached is a screenshot of the section of the PHP configuration report that you should see on your Drupal site when you browse to .../admin/reports/status/php when you have correctly installed the PECL runkit extension.
Comment #3
klonosHere's one 1.0.2 compiled in Ubuntu 11.04 x64...
Comment #3.0
klonos...added list of quick jump-links to uploaded libraries.
Comment #4
bradjones1For those, like me, who might want to build this from source but are frustrated with the lack of an official PECL release, 1.0.2 is available via git here: https://github.com/zenovich/runkit/tree/1.0.2 -- had to track that down after a frustrating WSOD and checking this ticket: #1242358: WSOD with runkit 1.0.0-dev (Ubuntu 11.04) - compile/install 1.0.2 instead
Comment #5
e_log commentedThis is how i installed runkit on Debian squeeze
tested with PHP 5.3.9-4
Comment #6
Vc Developer commentedWhile I'm searching is there a runkit for openSuse? I switched from Ubuntu....
.......cancel that! the Ubuntu above worked as well!... Thanks!...
Comment #7
drupik commented#3 working on 12.04 x64 ;)
Comment #8
gerguaigua commented/usr/include/php5/Zend/zend_hash.h:138:15: note: expected ‘apply_func_t’ but argument is of type ‘int (*)(struct zend_hash_key *)’
/tmp/pear/temp/runkit/runkit.c:396:3: warning: passing argument 2 of ‘zend_hash_apply_with_arguments’ from incompatible pointer type [enabled by default]
In file included from /usr/include/php5/Zend/zend.h:271:0,
from /usr/include/php5/main/php.h:35,
from /tmp/pear/temp/runkit/php_runkit.h:29,
from /tmp/pear/temp/runkit/runkit.c:22:
/usr/include/php5/Zend/zend_hash.h:140:15: note: expected ‘apply_func_args_t’ but argument is of type ‘int (*)(struct zend_internal_function *, int, struct __va_list_tag *, struct zend_hash_key *)’
make: *** [runkit.lo] Error 1
ERROR: `make' failed
My error en Debian Wheezy with 5.4.4
Comment #9
rdeboer@Gerguaiaga, #8:
If you want other people to help you, then you may want to show what commands you typed to get those errors.
Rik
Comment #10
rdeboerComment #10.0
rdeboer...minor edit to also mention Ubuntu 11.04's codename ;)
Comment #11
diddism commenteduse the master branch, that wil work.
Comment #12
fabianx commentedpath.inc is pluggable in Drupal 7.
Why not provide a patched path.inc in the module instead of relying on runkit?
Comment #13
Anonymous (not verified) commentedI tried to get runkit to compile on OpenBSD 5.6 & 5.7 to share here (not that a whole lot of people are going to be looking for the OpenSBD .so), but no luck with any version. Fabianx's suggestion at #12 makes sense to me.