草庐IT

gem_original_require

全部标签

mysql - Sequel gem & MySQL (Ruby + Windows) : load mysql. so文件,不是mysql.rb

使用ruby​​gem'sequel',当我尝试Sequel.connect("mysql://localhost")时,出现以下错误:Sequel::AdapterNotFound:LoadError:require'mysql'didnotdefineMysql::CLIENT_MULTI_RESULTS!Youareprobablyusingthepurerubymysql.rbdriver,whichSequeldoesnotsupport.YouneedtoinstalltheCbasedadapter,andmakesurethatthemysql.sofileisload

php - 文件不存在但可以 require_once() 它

start.phpconfig.php我有WindowsXP+XAMPP和PHP版本5.3.8。如果我运行start.php,它会给我这个错误:Notice:UseofundefinedconstantTEST-assumed'TEST'inC:\programs\xampp\htdocs\start.phponline3现在我将start.php修改为以下内容,他给了我我的Hamsters:file_exists()说文件不存在但没有条件仍然能够require_once()声称不存在的文件? 最佳答案 做一个要求(或包含)条件是你

eclipse - Eclipse开普勒中的"EPIC requires a Perl interpreter"

我已经安装了EclipseKepler和EPIC、Java开发工具包和ActivePerl。当我创建一个Perl脚本并尝试以Perl本地方式运行它时,出现错误Tooperatecorrectly,EPICrequiresaPerlinterpreter我不明白这是为什么。我会因为安装了ActivePerl而出错吗?为什么我的Perl解释器没有被EPIC检测到?我从thebetashere安装了EPIC.我转到Help/Installnewsoftware/Add然后输入此链接并按照说明进行操作。然后我的Eclipse也重启了由于上述错误,我仍然无法运行Perl脚本。

windows - 证书失败和 Windows10 gem 版本 2.4.5.1

我对其中的大部分内容都不熟悉:我的问题始于installrails.com进程的railsnewsample_app阶段。它会执行它的操作,开始runbundleinstall并出现错误“CouldnotverifytheSSLcertificateforhttps://rubygems.org/”。我搜索并了解我必须更新证书,如下所述:http://guides.rubygems.org/ssl-certificate-update/我在上面的页面中了解到ruby​​gems2.4.x对于windows是坏的,因此没有下载来更新我的证书。所以我尝试更新$gemupdate--syst

windows - "gem install"卡住在 "updating Gem source index for [..]"

几个星期以来,我根本无法在Windows中运行geminstall。它坚持这条线:C:\Windows\System32>geminstallrails--version2.1.2BulkupdatingGemsourceindexfor:http://gems.rubyforge.org/有什么想法吗? 最佳答案 我在gem版本 关于windows-"geminstall"卡住在"updatingGemsourceindexfor[..]",我们在StackOverflow上找到一个类

ruby - 安装 json gem : The 'json' native gem requires installed build tools 时出错

当我尝试安装这个gem时,它声称我需要安装一个devkit,尽管我确信我已经安装了它。它还建议我需要在PATH中更新我的系统变量,我已经直接链接到ruby​​中的devkit文件。我在StackOverflow上看到了其他问题,但它们不适用于我的问题。这是完整的错误消息:C:\Users\Mahamoud>geminstalljsonERROR:Errorinstallingjson:The'json'nativegemrequiresinstalledbuildtools.PleaseupdateyourPATHtoincludebuildtoolsordownloadtheDevK

windows - 不会让我在 Ruby 提示符下安装 Gem

WindowsVista,Ruby3.3.5版C:\>geminstallrmagickBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingrmagick:ERROR:Failedtobuildgemnativeextension.C:/Ruby19/bin/ruby.exeextconf.rbcheckingforRubyversion>=1.8.5...yesInvaliddrivespecification.UnabletogetImageMagickversion***extconf.rbfai

php - require_once 和 include_once 不能正确解析文件

PHP的require_once、require、include_once和include函数无法正确解析文件时出现问题。我在装有Apache2.2.11的WindowsVista上运行PHP5.3.1。这些是我遇到的问题:file_exists('C:/wamp/www/park_factor_network/system/application/shared/config/language.php')返回真is_readable('system/application/shared/config/language.php')返回真$fp=fopen('C:/wamp/www/par

ruby - Windows 中的 `gem install berkshelf` 失败

我正在使用这个包在Windows中使用chef。http://www.opscode.com/chef/install.msi当我运行$geminstallberkshelf时,我遇到了这个错误。我该如何解决这个错误?TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...Fetching:dep_selector-1.0.3.gem(100%)Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorins

ruby-on-rails - 在 Windows 上为 "libv8"安装 "therubyracer"gem

我在Windows上安装therubyracergem时遇到问题。使用Ruby2.1.632位并运行geminstalllibv8-v'3.16.14.3'----with-system-v8这是我得到的错误:Installingtherubyracer0.12.1withnativeextensionsGem::Ext::BuildError:ERROR:Failedtobuildgemnativeextension.C:/Ruby21/bin/ruby.exeextconf.rbcheckingformain()in-lpthread...nocheckingforv8.h...n