问题描述
gem install pg --with-pg-include = / Library / PostgreSQL / 9.0 / include / --with-pg-lib = / Library / PostgreSQL / 9.0 / lib /
我可以在Gemfile中包含这些选项吗?在我的Gemfile中, pg
命令是
gempg, 0.12.2
我想在版本号后提供一些选项。
thx,
tux
这里是相关文章已在评论中:
gem install mysql - --with-mysql-config = / usr / local / mysql / bin / mysql_config
bundle config build.mysql --with-mysql-config = / usr / local / mysql / bin / mysql_config
这是自定义构建选项的另一个例子,在这种情况下,指定从rubygems以外下载的特定源代码:
bundle config build.popen4 --source http://gemcutter.org
I have a gem, that must be build with some options.
gem install pg --with-pg-include=/Library/PostgreSQL/9.0/include/ --with-pg-lib=/Library/PostgreSQL/9.0/lib/
Can I include this options in the Gemfile? In my Gemfile the pg
command is
gem "pg", "0.12.2"
I want to provide some options after the version number.
thx,tux
Here is the relevant text from the link posted in comments already:
gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
bundle config build.mysql --with-mysql-config=/usr/local/mysql/bin/mysql_config
Here is another example of custom build options, in this case specifying a specific source to download from other than rubygems:
bundle config build.popen4 --source http://gemcutter.org
这篇关于Rails:构建bundler gemfile的选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!