View Full Version : catdoc in Drupal
luke01
07-16-2009, 01:09 PM
I've installed catdoc in my homedir. I want to use in the Drupal search attachment module, so that I can search .doc attachments. I have also added pdftotext. It seems that the Drupal installation isn't calling this programs, although they are installed in my home they aren't accessible to Drupal. The path in the search files module is the one pointing to my executable - it does work on the console. The only helper that works is cat but this is system wide program.
Anyone have any ideas?
Thanks
luke01
07-23-2009, 03:14 AM
OK, I found a solution for the problem. Posting here just for reference.
The issue is that catdoc, unrtf, xls2csv all use configuration options that aren't available when run from the webserver. To properly fix this so that all libraries are available do the following:
For catdoc:
run configure with the prefix option
./configure --prefix=$HOME
then open the src/Makefile
vi src/Makefile
and change CHARSETPATH=/home/YORHOME/share/catdoc
run make and make install. Now you can add a helper in the Drupal search_files module and it will index your doc files
To fix unrtf:
Run configure with these options
./configure --prefix=$HOME --exec-prefix=$HOME --libdir=$HOME
Then open ./src/main.h and modify CONFIG_DIR to point to your home directory's lib folder
also modify ./src/path.h and change the path UNRTF_SEARCH_PATH to the same one as above
Run make and make install
I had no problem running pdftotext. The only change was to correct the path in the helpers.
Hope this helps anyone trying to install catdoc and unrtf on a shared host with the drupal search_files module.
Cheers
Leonzsmart
08-05-2009, 01:07 AM
script contribute Smarty with itselft - you dont need to install Smarty as theme engine for Drupal.
TUFaT dont support different template engines.
Commonly TUFaT use smarty->display, you can to use smarty->fetch to integrated some part of TUFaT with Drupal.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.