gpt4 book ai didi

macos - 在 Mac OS 上获取 chromium 代码时 gclient sync 出错

转载 作者:行者123 更新时间:2023-12-04 18:07:56 30 4
gpt4 key购买 nike

我正在尝试按照 documentation 设置 chromium 代码在 Mac OS X 10.9.2 上。

我可以使用命令成功获取代码:

fetch --nohooks chromium --nosvn=True

但是当我尝试使用 gclient sync 命令同步项目时,它在进程中间中断并抛出以下 OSError:

________ running '/usr/bin/python src/build/download_nacl_toolchains.py --no-arm-trusted --keep' in '/Volumes/NJHD/google'
Updating /Volumes/NJHD/google/src/native_client/toolchain/.tars/toolchain_mac_x86.tar.bz2
from https://storage.googleapis.com/nativeclient-archive2/x86_toolchain/r12790/toolchain_mac_x86.tar.bz2.
.....................................................................................
|------------------------------------------------|
..................................................Traceback (most recent call last):
File "src/build/download_nacl_toolchains.py", line 63, in <module>
sys.exit(Main(sys.argv[1:]))
File "src/build/download_nacl_toolchains.py", line 58, in Main
download_toolchains.main(args)
File "/Volumes/NJHD/google/src/native_client/build/download_toolchains.py", line 414, in main
keep=options.keep, verbose=options.verbose):
File "/Volumes/NJHD/google/src/native_client/build/download_toolchains.py", line 263, in SyncFlavor
tar.Extract()
File "/Volumes/NJHD/google/src/native_client/build/cygtar.py", line 313, in Extract
self.tar.extract(m)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 2084, in extract
self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 2168, in _extract_member
self.makelink(tarinfo, targetpath)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/tarfile.py", line 2252, in makelink
os.link(tarinfo._link_target, targetpath)
OSError: [Errno 45] Operation not supported
Error: Command /usr/bin/python src/build/download_nacl_toolchains.py --no-arm-trusted --keep returned non-zero exit status 1 in /Volumes/NJHD/google
Hook '/usr/bin/python src/build/download_nacl_toolchains.py --no-arm-trusted --keep' took 89.91 secs

在我看来,它是在提示 os.link(tarinfo._link_target, target path),所以我尝试使用该函数创建链接,效果很好。

我还需要注意其他配置吗?

提前致谢!

最佳答案

我和你一样把chromium项目放到了外置硬盘上,也出现了同样的错误。

也许您应该尝试使用内部驱动器中的同步功能。

没试过。希望有所帮助。

关于macos - 在 Mac OS 上获取 chromium 代码时 gclient sync 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22245064/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com