如何在 php5/ubuntu 中安装 pspell? [英] how can I install pspell in php5/ubuntu?

查看:35
本文介绍了如何在 php5/ubuntu 中安装 pspell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Ubuntu 中为 PHP 5 安装 pspell.我已经安装了运行 pspell 所需的 aspell 库,如图 here

I am trying to install pspell for PHP 5 in Ubuntu. I have installed the aspell library which is required to run pspell as shown here

我不确定是否需要更改任何设置等

I am not sure if there are any settings I need to change, etc.

当我尝试执行下面提到的代码行

When I try to execute the below mentioned line of code

$pspell_link = pspell_new("en");

出现错误

致命错误:调用未定义的函数pspell_new()

知道什么是错误的吗?

非常感谢任何帮助.

推荐答案

就做

sudo apt-get install libpspell-dev 
sudo apt-get install php5-pspell
sudo apt-get install aspell-en

然后使用以下命令重新启动 apache2 服务器

then restart your apache2 server with the following command

sudo service apache2 restart 

它会自动添加到你的 php.ini

it will be added automatically to your php.ini

你可以试试这个例子

这篇关于如何在 php5/ubuntu 中安装 pspell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆