草庐IT

PECL-Extension

全部标签

php - 为什么 docker-php-ext-install 不包含一些扩展,并且它比 pecl 有优势?

让我们考虑这些命令:我们使用基于alpine的php7.2启动docker镜像。dockerrun-itphp:7.2-fpm-alpine3.7sh我们尝试像安装任何其他扩展一样安装php-mongodbdocker-php-ext-installmongodb但是我们得到错误:error:/usr/src/php/ext/mongodbdoesnotexistusage:/usr/local/bin/docker-php-ext-install[-jN]ext-name[ext-name...]ie:/usr/local/bin/docker-php-ext-installgdmy

php - 排序在新的 mongodb PECL 扩展中是如何工作的?

我刚刚从旧的Mongo扩展转移到最新的PHP驱动程序(mongodb)。我还使用为mongodb提供的PHP库。以前,我可以简单地在游标实例上执行->sort(),但自从出现此错误后,情况似乎不再如此:Fatalerror:UncaughtError:CalltoundefinedmethodMongoDB\Driver\Cursor::sort()现在排序/限制/跳过的替代方案是什么? 最佳答案 我在相应的Githubrepository上得到了关于这个的答案.为了能够使用find进行排序,您只需使用第二个find参数,如下所示:

mongodb - Silex 和 MongoDB,其中 Silex Extension

我想将Silex与MongoDB一起使用。我想最好的方法是使用再次使用DoctrineMongoDB库的Silex扩展。现在有两个SilexExtensions似乎提供了这个功能。https://github.com/fate/Silex-Extensions和https://github.com/docteurklein/SilexExtensions除了第一个带来更多其他扩展和第二个使用子模块(我更喜欢)而不是vendors.sh,还有更多的事情要处理吗?有人可以推荐其中之一吗? 最佳答案 更新:以下扩展已过时,请使用上面的答案

node.js - js-bson : Failed to load c++ bson extension, 使用纯JS版本

我尝试在archlinux迷你计算机(cubox)上安装mean.io堆栈。所以我安装了nodejs和mongodb包。我用Git检索了堆栈,进行了npm安装(没问题)但是然后:输入“grunt”后出现此错误:[nodemon]v1.2.1[nodemon]torestartatanytime,enter`rs`[nodemon]watching:*.*[nodemon]starting`node--debugserver.js`debuggerlisteningonport5858{[Error:Cannotfindmodule'../build/Release/bson']code

PHP PDO Mysql 未加载。 extension在extensions.ini中,php_mysql.so存在,但是phpinfo只显示sqlite和dblib

我正在尝试让mysqlphppdo在FreeBSD9.1上运行。Mysql版本:5.5.28PHP版本:5.4.7Extensions.ini适用内容:extension=pdo_dblib.soextension=mysql.soextension=pdo.soextension=pdo_mysql.soextension=pdo_sqlite.soPHP信息:启用PDO支持PDO驱动dblib、sqlite启用FreeTDS/SybaseDB-lib的PDO驱动程序flavorfreetds启用SQLite3.x的PDO驱动程序SQLite库3.7.14.1所以,没有pdo_mys

java - 撒克逊转换错误- XTDE1450 : Unknown extension instruction

我正在尝试使用SQL查询从XSLT2.0查询MySQL数据库,并在我的XSLT文件中填充一个参数。我正在使用saxon9ee.jar连同saxon9-sql.jar.我找到了this链接,但它没有解决我的问题。我遇到以下错误:ConnectingMySQL...Connected...Erroronline43ofDB_Query_XSLT_Test.xsl:XTDE1450:Unknownextensioninstruction;SystemID:file:///C:/Users/davo/platform/src/config/xslt/DB_Query_XSLT_Test.xsl

mysql - 捆绑安装 : Failed to build gem native extension

我有gitclonegit://github.com/jalagrange/excel_test_app.git安装bundle时出现以下错误,我的其他应用程序不会发生这种情况。跟随误差Installingmysql2(0.3.6)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension.C:/RailsInstaller/Ruby1.9.3/bin/ruby.exeextconf.rbcheckingforrb_thread_blocking_region

mysql - Mac 10.12 上的错误 : Error installing mysql2: ERROR: Failed to build gem native extension.

Itriedeverysolutionsimilartothequestion:最近,我从ubuntu转移到Mac,我试图在Sierra上安装mysqlgem,在我安装了Ruby、Rails、Mysql之后,我还输入brewinstallmysql并且它可以下载mysql但不能下载gem,所以我的问题不相似。我输入了这个mysql--version我得到了mysqlVer14.14Distrib5.7.16,forosx10.12(x86_64)usingEditLinewrapper我尝试安装mysql2gemforrails来构建一个新的应用程序我输入了这个sudogeminsta

php - 带有 PHP 选择器的 cPanel 显示 WordPress 错误 "PHP installation appears to be missing the MySQL extension which is required by WordPress"

在将MySQL升级为使用MariaDB10之后,我的CloudLinuxcPanel服务器上的多个站点只是白屏Error:YourPHPinstallationappearstobemissingtheMySQLextensionwhichisrequiredbyWordPress我可以为每个帐户选择PHP版本,但从5.3到5.6中选择任何版本仍然无效。没有任何工作,正在使用/scripts/easyapache/重建Apache和PHP不工作,正在运行在失败的网站上显示没有mysql或mysqli扩展名。如何解决这个问题? 最佳答案

mysql - 安装 mysql2 gem : Failed to build gem native extension 时出错

WindowsXP。ruby1.9.2。rails已安装。已安装MySQL。当我尝试运行geminstallmysql2(或bundleinstall)时出现错误:C:\ruby\cred2>geminstallmysql2Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingmysql2:ERROR:Failedtobuildgemnativeextension.C:/Ruby192/bin/ruby.exeextconf.rbcheckingforrb_thread_blocking_region()