Sourcetree 在尝试从书签访问项目时显示此错误 'git status' failed with code -1",而且我无法从远程列表或通过 url 手动克隆任何其他项目。
SSH 连接良好。命令
ssh -T git@github.com显示 -Hi "name"! You've successfully authenticated, but GitHub does not provide shell access.
命令git clone也可以正常工作并获取项目。
我正在我的新 Mac m1 上构建这个(https://github.com/solana-labs/solana),但失败了。
作者ring表示可以通过升级依赖项来修复它(https://github.com/briansmith/ring/issues/1163)。
我尝试添加ring = "0.16.19"但cargo.toml失败了,因为this virtual manifest specifies a [dependencies] section, which is not allowed
我尝试在项目目录中搜索ring,但只在cargo.lock.
这似乎ring是 Solana 的依赖项。我是 Rust 新手,我不知道如何解决这个问题。
error: failed to run custom build command for `ring v0.16.12`
Caused by:
process didn't exit successfully: `/Users/pt/code/solana/target/debug/build/ring-15a328b7ae57ee29/build-script-build` (exit code: 101)
--- stdout
CARGO: /Users/pt/.rustup/toolchains/stable-aarch64-apple-darwin/bin/cargo
CARGO_CFG_TARGET_ARCH: aarch64
CARGO_CFG_TARGET_ENDIAN: little
CARGO_CFG_TARGET_ENV:
CARGO_CFG_TARGET_FAMILY: unix
CARGO_CFG_TARGET_OS: macos
CARGO_CFG_TARGET_POINTER_WIDTH: 64
CARGO_CFG_TARGET_VENDOR: apple
CARGO_CFG_UNIX:
CARGO_FEATURE_ALLOC: …Run Code Online (Sandbox Code Playgroud) 我有一台新的 MacBook Air M1。Firebase 一直在工作,直到我上周将 firebase-tools 从 9.7.0 升级到 9.8.0。升级后,每次尝试运行任何“firebase”语句时都会出现此错误。
对于关闭原始问题的人,此问题没有直接涉及的源代码。要复制此问题,您必须拥有 M1 mac 并使用 firebase。
我该如何解决这个问题?
(请注意遇到此问题的其他人,答案由@RandomDude 在下面的评论中提供:只需将 firebase-tools 降级到 9.7.0)
steve@steves-air functions % firebase
dyld: lazy symbol binding failed: Symbol not found: __Z18sse42_is_availablev
Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
Expected in: flat namespace
dyld: Symbol not found: __Z18sse42_is_availablev
Referenced from: /opt/homebrew/lib/node_modules/firebase-tools/node_modules/sse4_crc32/build/Release/crc32c.node
Expected in: flat namespace
zsh: abort firebase
Run Code Online (Sandbox Code Playgroud) 我在构建后端 docker(特别是安装 Puppeteer)时遇到错误。我使用的是 M1 MacBook,我在本地计算机上找到了解决方案(https://github.com/puppeteer/puppeteer/issues/6622),但这在 docker 上不起作用。有人在 docker 上遇到过同样的 Puppeteer 问题吗?
#12 15.58 npm ERR! code 1
#12 15.58 npm ERR! path /app/node_modules/puppeteer
#12 15.58 npm ERR! command failed
#12 15.58 npm ERR! command sh -c node install.js
#12 15.58 npm ERR! The chromium binary is not available for arm64.
#12 15.58 npm ERR! If you are on Ubuntu, you can install with:
#12 15.58 npm ERR!
#12 15.58 npm ERR! sudo apt install chromium
#12 15.58 npm …Run Code Online (Sandbox Code Playgroud) 我尝试在 M1 MacbookPro 上的 IntelliJ (Apple-Silicon) 中编译https://github.com/CuriousNikhil/k5-compose,出现以下错误
Caused by: org.jetbrains.skiko.LibraryLoadException: Cannot find libskiko-macos-arm64.dylib.sha256, proper native dependency missing.
at org.jetbrains.skiko.Library.load(Library.kt:71)
at org.jetbrains.skiko.HardwareLayer.<clinit>(HardwareLayer.kt:10)
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?
当我运行以下命令来安装tensorflow时,出现此错误。
python3 -m pip install tensorflow-macos
Run Code Online (Sandbox Code Playgroud)
ERROR: Failed building wheel for h5py
Failed to build h5py
ERROR: Could not build wheels for h5py, which is required to install pyproject.toml-based projects
Run Code Online (Sandbox Code Playgroud)
我厌倦了从官方链接( https://pypi.org/project/h5py/#files )手动安装这个轮子,它已正确安装,但我仍然遇到相同的错误。
我在 Mac Book M1 芯片上遇到了上述问题。
我正在 M1 mac 上构建一个 Linux docker 镜像(如果有的话,可以从 ruby:3.0.2-alpine3.12 开始)。
当我尝试在容器中执行捆绑执行时,ruby 抱怨它无法加载 nokogiri。如果我只是启动 ruby 并尝试要求 nokogiri 我会得到相同的结果:
bash-5.0# irb
irb(main):001:0> require 'nokogiri'
<internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- nokogiri (LoadError)
from <internal:/usr/local/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
from (irb):1:in `<main>'
from /usr/local/lib/ruby/gems/3.0.0/gems/irb-1.3.5/exe/irb:11:in `<top (required)>'
from /usr/local/bin/irb:23:in `load'
from /usr/local/bin/irb:23:in `<main>'
Run Code Online (Sandbox Code Playgroud)
宝石已安装
ls -la /app/vendor/bundle/ruby/3.0.0/gems/
<snip>
drwxr-xr-x 6 root root 4096 Feb 2 22:43 nokogiri-1.13.1-aarch64-linux
<snip
Run Code Online (Sandbox Code Playgroud)
一件有点奇怪的事情是
bash-5.0# ruby --version
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [aarch64-linux-musl]
Run Code Online (Sandbox Code Playgroud)
我不认为 musl 平台导致了不匹配。我们的生产机器是 amd64,并且存在类似的 amd64/amd64-musl 不匹配问题,但它们可以正确运行容器。
有办法让它发挥作用吗?
我已经能够通过在捆绑时禁用预编译 …
用于安装的命令:
npm install -g grpc-工具
纱线添加全局 grpc-tools
尝试在 mac m1 BigSur 上安装 grpc-tools 时。我遇到了下面粘贴的错误:
npm ERR! code 1
npm ERR! path /Users/abdulmoiz_ahmer/.nvm/versions/node/v16.13.1/lib/node_modules/grpc-tools
npm ERR! command failed
npm ERR! command sh -c node-pre-gyp install
npm ERR! response status 404 Not Found on https://node-precompiled-binaries.grpc.io/grpc-tools/v1.11.2/darwin-arm64.tar.gz
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@1.0.8
npm ERR! node-pre-gyp info using node@16.13.1 | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/abdulmoiz_ahmer/.nvm/versions/node/v16.13.1/lib/node_modules/grpc-tools/bin/grpc_tools.node" (not found)
npm …Run Code Online (Sandbox Code Playgroud) 我有一台 M1 macbook pro,运行专用的 R aarch64 版本,并且运行 macOS Monterey。
R version 4.1.0 (2021-05-18)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS 12.2.1
Run Code Online (Sandbox Code Playgroud)
R 拒绝使用超过 1.8GB 的 RAM(8GB 之外),而是更喜欢使用交换,导致在运行内存昂贵的东西时计算速度慢得可笑。
我已经尝试了我所知道的各种技巧来让 R 使用更多内存 - 请不要关闭以提出其中一个作为答案的问题:
memory.limit()并且memory.size()是 Windows 特定的并且不适用。gc()确实有效并给了我:$ R_MAX_VSIZE=8000000 R_MAX_MEM_SIZE=8gb R --vanilla -e "gc()"
R version 4.1.0 (2021-05-18) -- "Camp Pontanezen"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin20 (64-bit)
[...]
> gc()
used (Mb) gc trigger (Mb) max used (Mb)
Ncells 273458 14.7 666994 …Run Code Online (Sandbox Code Playgroud) 我有 python 3.10 代码可以启动一个进程,但如果它在 M1 Mac 上运行,则需要运行不同的进程。
即使 python 进程在 Rosetta 中运行,有没有一种方法可以可靠地检测您是否在 M1 Mac 上?
我试过这个:
print(sys.platform)
# On Intel silicon:
darwin
# On M1 silicon:
darwin
Run Code Online (Sandbox Code Playgroud)
但它总是打印“darwin”。
我尝试在 os.* 和 sys.* 库中进行嗅探,我发现的最好的结果是:
print(os.uname())
# On Intel silicon:
posix.uname_result(sysname='Darwin', nodename='XXX', release='21.5.0', version='Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:22 PDT 2022; root:xnu-8020.121.3~4/RELEASE_X86_64', machine='x86_64')
# On M1 silicon:
posix.uname_result(sysname='Darwin', nodename='XXX', release='21.4.0', version='Darwin Kernel Version 21.4.0: Fri Mar 18 00:47:26 PDT 2022; root:xnu-8020.101.4~15/RELEASE_ARM64_T8101', machine='x86_64')
Run Code Online (Sandbox Code Playgroud)
我假设它machine= 'x86_64'在 M1 机器上返回,因为 Python 正在 …