sudo rake 带参数

发布于 2024-08-13 11:02:03 字数 242 浏览 2 评论 0原文

是:

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

有效的终端命令吗?我尝试运行它,但它似乎没有正确传递变量。

但是,像这样的东西工作正常:

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

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/

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

陈甜 2024-08-20 11:02:03

你想用 rake install 命令来完成什么? rake 是一个脚本实用程序,从下一个可用的“Rakefile”中提取任务,该“Rakefile”正在当前目录和所有先前目录中进行监视。如果你想让它工作,你需要一个“安装”任务来处理参数(存储在 Ruby 中的 ARGV 数组中)

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

聽兲甴掵 2024-08-20 11:02:03

是的,没关系,sudo 不是你的问题。

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文