草庐IT

page-object-gem

全部标签

ruby - gem eventmachine fatal error : 'openssl/ssl.h' file not found

刚刚安装了ElCapitan,无法安装gemeventmachine1.0.7。openssl位于1.0.2a-1。尝试使用--with-ssl-dir但它似乎被忽略了。报告给他们的githubrepo非常感谢任何建议。谢谢。$ls/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h/usr/local/Cellar/openssl/1.0.2a-1/include/openssl/ssl.h$geminstalleventmachine-v'1.0.7'----with-ssl-dir=/usr/local/Cellar/o

ruby-on-rails - 安装 ruby​​gems 时出现 SSL 错误,无法从“https ://rubygems. org/”提取数据

我正在尝试完成MichaelHartl教程。当我尝试在我的gemset中安装rails3.2.14时,出现以下问题:$geminstallrails-v3.2.14ERROR:Couldnotfindavalidgem'rails'(=3.2.14),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_connectreturned=1errno=0state=SSLv3readservercertificateB:certificateverifyfailed(https://s3.amazonaws.com/pro

ruby - 如何在 Ubuntu 上安装 PostgreSQL 的 pg gem?

我正在尝试为Ruby安装PostgreSQL的pggem。我发出了以下命令:geminstallpg我使用RVM安装了Ruby1.9.2。上面的命令显示了以下错误。错误是:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Failedtobuildgemnativeextension./home/User/.rvm/rubies/ruby-1.9.2-preview3/bin/rubyextconf.rbcheckingforpg_config...yescheckingforlib

ruby - 如何安装本地 gem?

如果我将.gem文件下载到计算机中的文件夹中,我可以稍后使用geminstall安装它吗? 最佳答案 此外,您可以使用geminstall--localpath_to_gem/filename.gem这将跳过在您离开--local时发生的通常的gem存储库扫描。您可以使用geminstall--help找到其他魔法。 关于ruby-如何安装本地gem?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/

ruby-on-rails - 如何在我的 Gemfile 中指定本地 gem?

我希望Bundler加载本地gem。有选择吗?或者我是否必须将gem文件夹移动到.bundle目录中? 最佳答案 我相信你能做到:gem"foo",path:"/path/to/foo" 关于ruby-on-rails-如何在我的Gemfile中指定本地gem?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/4487948/

ruby - 卸载旧版本的 Ruby gems

我有多个版本的Rubygem:$gemlistrjb(1.3.4,1.3.3,1.1.9)如何删除旧版本但保留最新版本? 最佳答案 #removealloldversionsofthegemgemcleanuprjb#choosewhichonesyouwanttoremovegemuninstallrjb#removeversion1.1.9onlygemuninstallrjb--version1.1.9#removeallversionslessthan1.3.4gemuninstallrjb--version'

ruby - 如果因权限错误而失败,如何安装 gem 或更新 RubyGems

我正在尝试使用geminstallmygem安装gem或使用gemupdate--system更新RubyGems,但失败并出现此错误:ERROR:Whileexecutinggem...(Gem::FilePermissionError)Youdon'thavewritepermissionsforthe/Library/Ruby/Gems/2.0.0directory.有没有人知道如何解决这个问题? 最佳答案 尝试添加--user-install而不是使用sudo:geminstallmygem--user-install

Ruby:如何安装特定版本的 ruby​​ gem?

使用命令行gem工具,如何安装特定版本的gem? 最佳答案 使用-v标志:$geminstallfog-v1.8 关于Ruby:如何安装特定版本的ruby​​gem?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/17026441/

ruby - 如何使 --no-ri --no-rdoc 成为 gem 安装的默认设置?

我不使用我安装在我的机器或我处理的服务器中的gem的RI或RDoc输出(我使用其他文档方式)。我安装的每个gem默认安装RI和RDoc文档,因为我忘记设置--no-ri--no-rdoc。有没有办法让这两个标志成为默认标志? 最佳答案 您只需将以下行添加到您的本地~/.gemrc文件(它位于您的home文件夹中):gem:--no-document通过echo'gem:--no-document'>>~/.gemrc或者您可以将此行添加到全局gemrc配置文件中。以下是如何找到它(在Linux中):stracegemsource2>

javascript - react : Invoke redirect to page, 并传递参数

我正在构建我的第一个React应用程序。在我的代码中,我使用重定向到另一个页面(一个组件)browserHistory.push(pathToMyComponent)我也尝试过react-routerLink-element。Link元素使我能够将数据传递到目标组件,而无需将其显示在URL中,如下所示:但现在我不想创建链接。相反,我想在按下按钮时执行一些操作,然后使用一些计算数据进行重定向。我该怎么做?编辑:这是我的代码。在登录页面中,用户可以执行facebook登录。我想要的是在登录成功后将用户重定向到大厅。我想将userid传递给大厅。window.scrollTo(0,0)}>这