sudo rake 带参数
是:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你想用 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
是的,没关系,sudo 不是你的问题。
Yes that's fine, sudo isn't your problem here.