草庐IT

configure

全部标签

configuration - 关闭特定文件的 eslint 规则

是否可以关闭整个文件的eslint规则?比如://eslint-disable-fileno-use-before-define(类似于eslint-disable-line。)我经常遇到这种情况,在某个文件中,我在很多地方都违反了对该文件来说可以的特定规则,但我不希望禁用整个项目的规则,我也不想禁用该特定文件的其他规则。 最佳答案 您可以通过将配置放在文件顶部来关闭/更改文件的特定规则。/*eslintno-use-before-define:0*///-->OFFor/*eslintno-use-before-define:2*

linux - Linux 中 "./configure"的各种选项/参数是什么

我已经看到,在Linux中安装新软件时,我总是必须先使用configure它。但有时我们需要像我今天所做的那样传递各种选项来安装lxml:./configure--with-python=/opt/python27/bin/python--prefix=/usr/local--with-libxml-prefix=/usr/local--with-libxml-include-prefix=/usr/local/include--with-libxml-libs-prefix=/usr/local/lib现在我想知道,这个人怎么知道可以使用什么类型的参数,如--with-python?

php - 在 ubuntu 上构建 php5.3.8,得到错误 : configure: error: Unable to locate gmp. h

我使用的是ubuntu13.10x64,我正在尝试构建php5.3.8,我下载了源代码并运行了配置:./configure--enable-fpm--with-fpm-user=www-data--with-fpm-group=www-data--with-tidy--with-config-file-path=/usr/local/php/conf--with-config-file-scan-dir=/usr/local/php/conf.d--enable-debug--with-openssl--with-kerberos--with-zlib--enable-calendar

linux - 典型的 ./configure 在 Linux 中做了什么?

即使所有内容都在makefile中指定,为什么还需要它? 最佳答案 运行时的配置脚本通常会:检查机器的一些细节该软件将在其上安装。该脚本检查对您的系统有很多依赖项。使特定软件工作正确地,它可能需要很多存在于你身上的东西机器已经。如果您的系统缺少任何主要要求,则配置脚本将exit并且您无法继续安装,直到您获得这些必需的东西。创建Makefile以用于下一步。 关于linux-典型的./configure在Linux中做了什么?,我们在StackOverflow上找到一个类似的问题:

编译Ruby报错: Failed to configure openssl. 不会安装

在OSX上,下载rubyrepository后来自github的最新提交并按照说明进行构建,我运行make但出现错误:Failedtoconfigureopenssl.Itwillnotbeinstalled.如果我运行makecheck,我会得到更多信息。Skipping`gemcert`tests.opensslnotfound....`':uninitializedconstantTestGemRemoteFetcher::OpenSSL(NameError)显然它找不到openssl,但我通过Brew安装了它。我错过了什么?这类问题有很多答案(this,forexample),

ruby-on-rails - 无法加载 `Rails.application.database_configuration` : (NoMethodError) with launching to Heroku

我是一名中级Rails开发人员,我使用远程数据库作为生产环境中的唯一连接。我的堆栈是Rails5和Ruby2.4.0。我已经为数据库设置了环境变量,例如USERNAME和PASSWORD。当我部署到Heroku时,我收到此错误消息:Cannotload`Rails.application.database_configuration`:(NoMethodError)undefinedmethod`[]'fornil:NilClass我假设这是因为Rails看不到环境变量,但即使我对数据库的用户名和密码进行硬编码以进行测试,也会发生相同的错误。这是我的database.ymldefaul

ruby - Tiny_tds : Connect: Server name not found in the configuration files

require"rubygems"require"tiny_tds"client=TinyTds::Client.new(:username=>'sa',:password=>'',:host=>'RICHARD_PC\SQLEXPRESS')result=client.execute("SELECT*FROM[Contacts]")result.eachdo|row|//Dosomethingend我一直收到同样的错误:“连接:在配置文件中找不到服务器名称”。我需要做的就是至少能够连接到SqlServer。那么如果主机不是我机器上安装的sqlexpress实例,那它是什么呢?在Git

ruby - 如何编写 expect {}.to raise_error when rspec's syntax is configured with only should

我在rspec上有这个配置:config.expect_with:rspecdo|c|c.syntax=:shouldend它使expect{}.toraise_error无效,我怎么能用should语法编写这个错误引发测试? 最佳答案 我建议仅在最新的RSpecexpect{code()}.toraise_error语法对您不可用时才使用它:lambda{foo(:bad_param)}.shouldraise_error或lambda{foo(:bad_param)}.shouldraise_error(ArgumentErro

ruby-on-rails - "configuration"是保留名称吗?

我正在创建一个名为“configuration”的脚手架,但它不起作用,显示错误:"undefinedmethod`all'forActiveSupport::Configurable::Configuration:Class"我尝试了相同的脚手架,但名称不同,一切正常。我想知道——“配置”是保留名称吗? 最佳答案 您不能使用Configuration,因为它是alreadyusedinRails. 关于ruby-on-rails-"configuration"是保留名称吗?,我们在St

ruby-on-rails - TinyTDS : Server name not found in configuration files

我一直看到这个错误,我无法连接到远程服务器上的数据库。我得到了一个数据库连接字符串,如下所示:datasource=qsss.gar.de\SQL2012,3000;initialcatalog=City;persistsecurityinfo=True;userid=user_me;password=user_me##2009;现在,我已经根据该连接字符串创建了一个database.yml文件,如下所示:development:adapter:'sqlserver'host:'qsss.gar.de\SQL2012,3000'port:1433database:'City'usern