Currently debian lenny has no readline support (or even editline, a similar lib with no license issues) for php-cli, so densite will fail on debian without installing 3rd party package files or compiling your own.

Adding this issue as a placeholder, just in case any other debian users think of trying this module.

Should probably be set 'wont fix'.

Comments

den.iver’s picture

Status: Active » Closed (won't fix)

Yes you are right there Adrinux. I will add something about readline support in the README and elsewhere. So I thinks it's good with the won't fix.

den.iver’s picture

Status: Closed (won't fix) » Fixed

on the other hand it was quite easy to integrate something like fgetc(STDIN) so you won't need readline. I have commited this and it seems to work just fine.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jonhattan’s picture

FYI: dotdeb.org's php5 packages include readline support.

http://www.dotdeb.org/instructions/

dugh’s picture

Status: Closed (fixed) » Active

Same problem using xampp:

Fatal error: Call to undefined function readline() in /opt/lampp/htdocs/sites/all/modules/densite/densite.drush.inc on line 50
den.iver’s picture

Status: Active » Fixed

I have removed the requirement for gnu readline in PHP (thought I already had done it). I Think I have replaced all readline with densite_readline. If not, just let me know .) The changes should be in the dev version released tonight.

kdes’s picture

I downloaded densite today and got the following error when I tried to create a sub site

Fatal error: Call to undefined function readline() in /opt/drush/commands/densite/densite.drush.inc on line 1176
Drush command could not be completed.

Also, while installing it wasn't clear what needed to be done after

drush dl densite

though the files were downloaded but, the configuartion files were named dist-apache2.conf instead of apache2.conf and similarly for the rest, there was a dist- in front. Wasn't sure what needed to be done, I just renamed those files.

den.iver’s picture

I can see that the scripts uses the gnu realine function when creating cron job for your site in the 6-x-1.5. You should use the dev version, where it is no longere required to have have the gnu readline extension enabled.

The secound point I will try to make clearer in the documentation. If You just run the scripts then the script will say that there is no apache.conf and densite.conf (and also a folder for sql) and suggest to make them (out of the two dist- scripts). If you say Yes then the default configuration will be made and used. If you say no then the script will halt and you can make them youself. It is done this way to give people a chance to just use the scripts right away (for ease of use).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.