Error: parent directory is world writable but not sticky
2017-01-18 09:15
507 查看
在本地安装pyenv的时候,出现了如下的报错:
解决方法:
先查看自己本机 /private/tmp 的文件夹的读写权限,在我的mac机器上如下:
为了解决这个 'sticky' permission of /private/tmp ,需要执行如下的命令:
执行完之后,再安装就成功了:
➜ brew install pyenv ==> Downloading https://github.com/yyuu/pyenv/archive/v20160310.tar.gz Already downloaded: /Library/Caches/Homebrew/pyenv-20160310.tar.gz Error: parent directory is world writable but not sticky Please report this bug: https://git.io/brew-troubleshooting /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/tmpdir.rb:92:in `mktmpdir' /usr/local/Library/Homebrew/utils/fork.rb:6:in `safe_fork' /usr/local/Library/Homebrew/formula_installer.rb:572:in `build' /usr/local/Library/Homebrew/formula_installer.rb:231:in `install' /usr/local/Library/Homebrew/cmd/install.rb:214:in `install_formula' /usr/local/Library/Homebrew/cmd/install.rb:93:in `block in install' /usr/local/Library/Homebrew/cmd/install.rb:93:in `each' /usr/local/Library/Homebrew/cmd/install.rb:93:in `install' /usr/local/Library/brew.rb:83:in `<main>'
解决方法:
先查看自己本机 /private/tmp 的文件夹的读写权限,在我的mac机器上如下:
➜ ls -ld /tmp lrwxr-xr-x@ 1 root wheel 11 11 13 2014 /tmp -> private/tmp ➜ ls -ld /private/tmp drwxrwxrwt 13 root wheel 442 1 18 09:07 /private/tmp
为了解决这个 'sticky' permission of /private/tmp ,需要执行如下的命令:
sudo chmod +t /private/tmp/
执行完之后,再安装就成功了:
➜ brew install pyenv ==> Downloading https://github.com/yyuu/pyenv/archive/v20160310.tar.gz Already downloaded: /Library/Caches/Homebrew/pyenv-20160310.tar.gz ==> Caveats To use Homebrew's directories rather than ~/.pyenv add to your profile: export PYENV_ROOT=/usr/local/var/pyenv To enable shims and autocompletion add to your profile: if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi ==> Summary 🍺 /usr/local/Cellar/pyenv/20160310: 469 files, 2M, built in 0 seconds
相关文章推荐
- brew install tmux: Error: parent directory is world writable but not sticky
- brew install Error: parent directory is world writable but not sticky
- android java.io.IOException: Parent directory of file is not writable: /sdcard/...
- Android问题集锦之一:android java.io.IOException: Parent directory of file is not writable: /sdcard/...
- java.io.IOException: Parent directory of file is not writable:/sdcard/方面
- java.io.IOException: Parent directory of file is not writable
- MPI编译C++程序出现#error "SEEK_SET is #defined but must not be for the C++ binding of MPI" 的解决方法
- #Redis Error #MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details a
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- 关于homebrew使用时遇到的问题: Error: Could not symlink bin/gdb/usr/local/bin is not writable.
- PCL编译提示CMake Error: Boost not Found(common is required but boost was not found)
- OpenWRT 编译 error GNU libiconv not in use but included iconv.h is from libiconv
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk
- git repo sync 报错error: hebei_server/: branch master is published (but not merged) and is now 1 comm
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk.
- mysql无法启动ERROR! MySQL is running but PID file could not be found ?
- (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on d
- Redis (error) MISCONF Redis is configured to save RDB snapshots, but is currently not able to persis
- Swift:Call can throw, but it is not marked with 'try' and the error is not handled
- 首个WICKET HELLOL World 报错Can not determine Markup. Component is not yet connected to a parent.