转载自堆栈溢出
刚刚注意到 shell 提示符中显示“您有邮件”。内容如下:
$ mail
Mail version 8.1 6/6/93. Type ? for help.
"/var/mail/pain": 1 message 1 new
>N 1 [email protected] Wed Apr 8 14:00 21/804 "Cron <pain@nick> /usr"
? 1
Message 1:
From [email protected] Wed Apr 8 14:00:03 2015
X-Original-To: pain
Delivered-To: [email protected]
From: [email protected] (Cron Daemon)
To: [email protected]
Subject: Cron <pain@nick> /usr/local/Cellar/openssl-osx-ca/1.0.4/bin/openssl-osx-ca /usr/local/bin/brew
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=pain>
X-Cron-Env: <USER=pain>
X-Cron-Env: <HOME=/Users/pain>
Date: Wed, 8 Apr 2015 14:00:01 +0700 (ICT)
Usage error; try -help.
rehash failed to verify, something is wrong
check /tmp/openssl-osx-ca.cGoXW7MU/cert.pem for problems
/tmp/openssl-osx-ca.cGoXW7MU/cert.pem
只是一份长达一英里的认证清单。
这是什么意思?我该怎么办?谢谢。
答案1
更新您的“openssl-osx-ca” brew 配方:
$ brew update
$ brew upgrade openssl-osx-ca
然后仔细检查你的 crontab 是否已更新到刚刚安装的版本;截至撰写本文时,它是“1.0.5”,因此你的 cronjob 定义应如下所示
$ crontab -l
@hourly /usr/local/Cellar/openssl-osx-ca/1.0.5/bin/openssl-osx-ca /usr/local/bin/brew