开发者

sudo rake with parameters

开发者 https://www.devze.com 2022-12-13 05:26 出处:网络
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..开发者_运维知识库

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

精彩评论

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