MacOSXYosemite10.10brew error: mktemp: mkdtempfailedon/tmp/git-LIPo: Nosuchfileordirectory

Source: Internet
Author: User
Tags mcrypt

MacOSXYosemite10.10brew error: mktemp: mkdtempfailedon/tmp/git-LIPo: Nosuchfileordirectory

This problem has plagued me for a long time, so I have to spend some time talking about the solution.

The thing is: two days ago, I updated the baby mac to 10.10 happily. Everything looks so beautiful, .. Mcrypt is required when I reinstall magento !; I installed it before, but I didn't have it after updating it. Okay, reinstall it !! However, at this time, we found that brew update cannot be used !! Pitfall !! So reinstall brew !, It's hard to install it. When brew installs mcrypt, the following problems occur:

Already downloaded:/Library/Caches/Homebrew/mhash-0.9.9.9.tar.gzmktemp: mkdtemp failed on/tmp/mhash-N7EaNg: No such file or directoryError: Failed to create sandbox

Have you seen a terrible error? What does TMD say can't be a sandbox or a bird's tongue. No way, Baidu .. No .. Google .. No. There is no way. solve it by yourself. It probably means there is a problem under/tmp. Well, let's change the installation directory. Edit ~ /. Bash_profile file, add

Export HOMEBREW_TEMP = "/usr/local/Cellar /"
Then update:
Source ~ /. Bash_profile
OK. I got the bitter feeling from the sky, and re-install it !!!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.