升级到Mojave后,还有一个问题不能在Mac上编译C程序,而该问题的答案已涵盖了发生问题的大多数变体。
现在-从2019年10月7日星期一开始-您可以升级到macOS Catalina 10.15。再次,在升级过程中/usr/include,即使在从Mojave 10.14.6升级到Catalina之前安装了XCode 11.0 ,该目录也被更新所破坏。因此,编译器期望没有/usr/include目录就不再起作用。
建议的解决Mojave问题的主要步骤-使用以下命令:
Run Code Online (Sandbox Code Playgroud)open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
由于目录/Library/Developer/CommandLineTools/Packages/不存在(因此尚无.pkg要打开的文件),因此无法正常工作。
有没有一种好的(官方)方法来创建和填充目录/usr/include?
我已经第一次下载了Visual Studio Code,但是在下面我一直收到消息:

无法打开“ Visual Studio代码”,因为Apple无法检查它是否包含恶意软件。
该软件需要更新。请与开发人员联系以获取更多信息。
我的MacBook是最新的,我什至在他们的网站上更新了VSC的最新版本(2019年9月(1.39版); 10月没有更新),但仍然给了我同样的信息。
调查他们的常见问题,我了解了有关重新安装VS Code的信息。我做到了,但仍然行不通。
我尝试使用命令“brew install valgrind”安装 Valgrind,我收到一条消息:
“valgrind:由于上游不兼容,此公式无法在比 Sierra 更新的 macOS 版本上按预期编译或运行。错误:未满足的要求使此构建失败。”
我还尝试在代码的头部部分“brew edit valgrind”并用“git://sourceware.org/git/valgrind.git”替换“sourceware.org/git/valgrind.git”,然后在Iterm上写“ brew install --HEAD valgrind“但它给了我:
Last 15 lines from /Users/m/Library/Logs/Homebrew/valgrind/02.configure:
checking for gcc-ar... no
checking for perl... /usr/bin/perl
checking for gdb... /no/gdb/was/found/at/configure/time
checking dependency style of clang... none
checking for diff -u... yes
checking for clang option to accept ISO C99... none needed
checking for a supported version of gcc... ok (clang-11.0.0)
checking build system type... x86_64-pc-darwin
checking host system type... x86_64-pc-darwin
checking for a supported CPU... ok …Run Code Online (Sandbox Code Playgroud) 我使用新的macOS Catalina运行了Django项目,并且运行良好。
我安装了oh_my_zsh,然后尝试运行它因以下错误而崩溃的同一项目。我卸载了oh_my_zsh并再次尝试,但没有成功。
Path: /usr/local/Cellar/python/3.7.4_1/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python
Identifier: Python
Version: 3.7.4 (3.7.4)
Code Type: X86-64 (Native)
Parent Process: Python [7526]
Responsible: Terminal [7510]
User ID: 501
Date/Time: 2019-10-07 20:59:20.675 +0530
OS Version: Mac OS X 10.15 (19A582a)
Report Version: 12
Anonymous UUID: CB7F20F6-96C0-4F63-9EC5-AFF3E0989687
Time Awake Since Boot: 3000 seconds
System Integrity Protection: enabled
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
/usr/lib/libcrypto.dylib
abort() called
Invalid dylib load. Clients should not …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用命令行将现有项目添加到 GitHub。我在终端的相关工作目录中,正在尝试使用该git init -b main命令。
最初,我收到与 xcode 相关的错误:
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Run Code Online (Sandbox Code Playgroud)
我尝试过,xcode-select --install但更新服务器上的软件不可用,所以我从https://developer.apple.com/download/more/下载了“Xcode 12 的命令行工具” 。
现在进入git init -b main我得到以下信息:
error: unknown switch `b'
usage: git init [-q | --quiet] [--bare] [--template=<template-directory>] [--shared[=<permissions>]] [<directory>]
--template <template-directory>
directory from which templates will be used
--bare create a bare repository
--shared[=<permissions>]
specify that the git repository is to be shared amongst several users
-q, --quiet be …Run Code Online (Sandbox Code Playgroud) 从macOS 11 (Big Sur) 开始,say命令行实用程序似乎不知道 Siri 的声音:
say -v '?' 没有列出 Siri 的声音。
明确针对 Siri 语音不起作用:
say -v NoraSiri hi! 找不到 Nora Siri 语音(这是默认的 Siri 语音)。使用捆绑 ID(例如,com.apple.speech.synthesis.voice.custom.siri.nora.premium)[1]不会抱怨未知声音,但语音输出失败并显示Open speech channel failed: -86:
say -v com.apple.speech.synthesis.voice.custom.siri.nora.premium hi!
表面上,任何带有前缀的字符串都会com.apple.speech.synthesis.voice.custom触发这个错误。
同样,NSSpeechSynthesizer不将 Siri 语音列为可用,也不支持选择一种语音输出。
MacOS的大苏尔本身是能够使用Siri语音TTS对的,就证明了的事实,你可以选择一个作为系统的声音System Preferences > Accessibility > Speech,例如,在与基于快捷键组合Speak selected text when the key is pressed功能。
(但奇怪的是,如果您右键单击文本并从上下文菜单中选择并且可能也不适用于其他辅助功能,则被选为系统语音的 Siri 语音不会生效- 这种差异是 …
macos text-to-speech siri macos-catalina nsspeechsynthesizer
在 macOS Catalina 10.15.3 上,我在运行npm run dev或时收到以下错误消息npm run watch。这似乎与某些事情有关,nodejs但不知道如何解决。
“fse.node”无法打开,因为无法验证开发者。macOS 无法验证此应用程序是否没有恶意软件。
我正在尝试运行作曲家更新,出现以下错误
Problem 1
- The requested PHP extension ext-zip * is missing from your system. Install or enable PHP's zip extension.
Problem 2
- maatwebsite/excel 3.1.10 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.11 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.12 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 1.9.0].
- maatwebsite/excel 3.1.13 requires phpoffice/phpspreadsheet ^1.6 -> satisfiable by phpoffice/phpspreadsheet[1.6.0, 1.7.0, 1.8.0, …Run Code Online (Sandbox Code Playgroud) 描述错误
我试图做一个gem install puma和gem install thin并得到一个错误。
我有一台全新的 Mac 正在设置:MacOS Catalina 10.15.6 (19G73)
我已经发现任何版本 <= 4.2.1 在我的计算机上都可以正常工作我正在使用asdf版本管理器
gem install puma -v '4.2.1'gem install puma -v '4.3.0'或gem install pumad彪马的错误
我已经尝试了这些命令中的每一个来让它工作
gem install puma
gem install puma -v '4.3.0' -- --with-ldflags=-L/usr/local/opt/openssl@1.1/lib --with-cppflags=-I/usr/local/opt/openssl@1.1/include
gem install puma -v '4.3.0' -- --with-ldflags=-L/usr/local/opt/openssl@1.1/lib --with-cppflags=-I/usr/local/opt/openssl@1.1/include --with-opt-dir=/usr/local/opt/openssl@1.1
Run Code Online (Sandbox Code Playgroud)
Building native extensions. This could take a while...
ERROR: Error installing puma:
ERROR: Failed to build gem native extension. …Run Code Online (Sandbox Code Playgroud) 我想将添加到该行下方的环境变量设置为~/.bash_profile,~/.profile但是它不起作用。
export JBOSS_HOME=/Users/{USERNAME}/Desktop/jboss7
Run Code Online (Sandbox Code Playgroud)