开发者

sudo rake with parameters

Is:

sudo rake install -- --with-mysql-dir=/usr/local/mysql/

a valid terminal command? I try to run this but it doesn't seem to pass in the variable correctly..开发者_运维知识库

However something like this works fine:

sudo gem install do_mysql -- --with-mysql-dir=/usr/local/mysql/


What are you trying to accomplish with that rake install command? rake is a scripting utility, pulling it's tasks from the next available "Rakefile", which is being watched for in the current and all preceding directories. You'd need an "install" task which processed the arguments (stored in ARGV-array in Ruby) if you wanted this to work


Yes that's fine, sudo isn't your problem here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜