How to configure enchant on Ubuntu 12.10
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,
$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
Did you enable the module that "php5-enchant" provides in your php.ini configuration file?
oh, I have not done that. How do I enable it?
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?
Yes, I see the file @ /etc/php5/conf.d/enchant.ini
Here is the directory listing:
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.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)