How to configure enchant on Ubuntu 12.10
Results 1 to 5 of 5

Thread: How to configure enchant on Ubuntu 12.10

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    9

    How to configure enchant on Ubuntu 12.10

    Hi,

    Has anyone been able to configure enchant on Ubuntu 12.10?

    This is what I have done so far and it is not working.

    sudo apt-get install php5-enchant enchant hunspell
    sudo apt-get install libglib2.0-dev

    and when I run this program,

    <?php
    $tag = 'en_US';
    $r = enchant_broker_init();

    ?>

    I am getting:
    Fatal error: Call to undefined function enchant_broker_init()

    Could someone help me PLEASE..I am stuck


    Thanks in advance
    Srini

  2. #2
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,414
    Did you enable the module that "php5-enchant" provides in your php.ini configuration file?

  3. #3
    Junior Member
    Join Date
    Mar 2013
    Posts
    9
    oh, I have not done that. How do I enable it?


    Regards,
    Srini

  4. #4
    Pna lbh ernq guvf¿
    Join Date
    Jul 2004
    Location
    Kansas City area
    Posts
    19,414
    Apparently the package should have taken care of that for you; you should have a file located at /etc/php5/conf.d/enchant.ini which uses the PHP ini extension directive to load the enchant.so module.

    Did you restart your web server after installing the package?

  5. #5
    Junior Member
    Join Date
    Mar 2013
    Posts
    9
    Yes, I see the file @ /etc/php5/conf.d/enchant.ini

    Here is the directory listing:

    pwd
    /etc/php5/conf.d

    ls -l
    lrwxrwxrwx 1 root root 25 Jun 10 18:55 10-pdo.ini -> ../mods-available/pdo.ini
    lrwxrwxrwx 1 root root 29 Jun 10 18:55 20-enchant.ini -> ../mods-available/enchant.ini
    lrwxrwxrwx 1 root root 28 Jun 15 07:53 20-pspell.ini -> ../mods-available/pspell.ini

    I have restarted my webserver after installing the package.

    Still have error...

    Do I need to include/specify enchant.ini in some other file for it to work?

    By the way, I am running XAMPP on Ubuntu 12.10.


    Regards,
    Srini

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •