找不到驱动程序(PHP和Firebird) [英] Could not find driver ( PHP and Firebird )

查看:107
本文介绍了找不到驱动程序(PHP和Firebird)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为portail的基于Web的PHP脚本,因此我想使其在 Ubuntu 上起作用.

I have a web-based PHP script named portail, so I want to make it functional on Ubuntu.

我在 Ubuntu 下安装了 Xampp 5.6 Firebird 2.5 ,然后取消注释该库:

I installed Xampp 5.6 , Firebird 2.5 under Ubuntu, then I uncommented the library:

"extension=php_pdo_firebird.dll"

,然后为 php5 firebird
进行了特定配置 ( https://mapopa.blogspot .com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html ),
但他总是向我显示以下消息

and I made the specific configuration for php5 and firebird
(https://mapopa.blogspot.com/2009/04/php5-and-firebird-pdo-on-ubuntu-hardy.html),
but he always shows me the following message

找不到驱动程序localhost/portail

could not find driver localhost/portail

截屏:

推荐答案

如果默认安装过程尚未安装所需的php扩展名,则应安装. php扩展名是二进制文件,可以帮助php做一些没有它们的事情.例如,还有另一个著名的php扩展名为X-Debug,它可以帮助php开发人员调试其代码.

You should install the required php extension if not already installed by default installation process. Php extensions are binaries which help php do extra things which can not without them. For example there is another well-known php extension called X-Debug which helps php developers debug their code.

首先,使用Ubuntu CLI(命令行界面)检查是否已安装此php_pdo_firebird扩展程序:

First of all check that you have this php_pdo_firebird extension installed (or not), using Ubuntu CLI (Command-Line Interface):

  1. 默认情况下在系统范围内安装:

  1. installed system-wide by default:

php -m | grep -i pdo-firebird

  • 使用您的软件包管理器安装:

  • installed using your package manager:

    dpkg --get-selections | grep -i php-pdo-firebird
    

  • 如果以上均未返回结果,则表明您未安装该扩展名.您应该使用首选的软件包管理器进行安装:

    If none of the above returned a result, then you do not have that extension installed. you should install it using your preferred package manager:

    sudo apt-get update -y
    sudo apt-get install -y php-pdo-firebird
    

    这篇关于找不到驱动程序(PHP和Firebird)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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