我刚刚将计算机从 High Sierra 更新到 Catalina,MacPorts 出现错误。
Error: Current platform "darwin 19" does not match expected platform "darwin 17"
Error: If you upgraded your OS, please follow the migration instructions: https://trac.macports.org/wiki/Migration
Error: /opt/local/bin/port: Failed to initialize MacPorts, OS platform mismatch
Run Code Online (Sandbox Code Playgroud)
但是,当我尝试迁移它时,这些命令sudo port -qv installed > myports.txt也不起作用。
我有一些特定于版本的包来运行我的项目。另外我在他们的网站上找不到对 Catalina 的支持。我需要做什么?
我有一个以下配置的Mac
MacBook Pro (Retina, 15-inch, Mid 2015)
OS: macOS Catalina
CPU: 2.5 GHz Quad-Core Intel Core i7
Memory: 16 GB 1600 MHz DDR3
Graphics: Intel Iris Pro 1536 MB
Run Code Online (Sandbox Code Playgroud)
将我的操作系统从Siera 更新到 Catalina后。苹果听写应用程序和语音识别进程(com.apple.SpeechRecognitionCore.speechrecognitiond)在笔记本电脑启动期间启动,我无法终止或停止这些应用程序和进程。我杀死了这些进程,但它们会一次又一次地自动启动。
我还关闭了偏好听写并重新启动笔记本电脑,这对我来说也不起作用。:(
最危险的是,这些进程占用了我 50% 以上的 CPU,并给我带来了糟糕的 Mac 使用体验。
我累死。我现在应该怎么做?
我的 localhost 在 mac OS Catalina下有问题;这是我获得的错误,我按照本教程https://www.youtube.com/watch?v=hVHFPzjp064进行了正确配置本地服务器的过程,如果您能帮我解决这个问题,也许这是一个安全新的mac。
我的错误:
Forbidden
You don't have permission to access this resource.
Run Code Online (Sandbox Code Playgroud)
我提前谢谢你
我对我的 .bashrc 和 .bash_profile 非常迷失。我运行的是 macOS Catalina 10.15.5。
我在我的主文件夹中创建了一个 .bash_profile 文件,其中包含以下内容:
if [ -f ~/.bashrc ]; then
source ~/.bashrc
fi
Run Code Online (Sandbox Code Playgroud)
和一个包含以下内容的 .bashrc 文件:
export PATH="$PATH:/Users/xavierfrehner"
alias ls='ls -Ga'
Run Code Online (Sandbox Code Playgroud)
每当我重新启动终端/重新启动计算机时,我创建的别名就不起作用。
无论我查找什么,我似乎都无法找到使 bashrc 文件正常工作所需执行的操作的实际运行情况。
我知道 /etc/ 文件夹中的 bashrc 文件,每当我使用 root 权限更改此文件时,我的别名仍然不起作用。
如果有人可以帮助向我解释我需要做什么,我将不胜感激。
我最近尝试编译一个 C++ 程序,但发现它给出了这个错误:
Undefined symbols for architecture x86_64:
"std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
std::__1::ctype<char> const& std::__1::use_facet<std::__1::ctype<char> >(std::__1::locale const&) in test-c64d7d.o
"std::__1::ios_base::getloc() const", referenced from:
std::__1::basic_ios<char, std::__1::char_traits<char> >::widen(char) const in test-c64d7d.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(unsigned long, char)", referenced from:
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::basic_string(unsigned long, char) in test-c64d7d.o
"std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::~basic_string()", referenced from:
std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> > std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char) in test-c64d7d.o
"std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)", referenced from:
std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, …Run Code Online (Sandbox Code Playgroud) 我有一个新的 MacOS Catalina 10.15.6,我正在按照此链接中的步骤显示 git 分支名称在终端 macos 中cd,这样每当我在 git 存储库中时,我就可以在终端上显示分支名称。
我在我的主目录中,所以当我运行时ls -la,我看不到以下任何文件
.zshrc, .bashrc, .bash_profile, .zprofile
Run Code Online (Sandbox Code Playgroud)
列表中显示的唯一相关文件是.bash_history和.zsh_history。
这些是否位于不同的路径上,或者我是否错过了该过程中的任何步骤?
我升级到 Catalina,缩略图预览在我的桌面上停止工作。我尝试了我所知道的一切,勾选了“显示图标预览”,应用预览应用程序来打开各种图像,但仍然只出现通用图标。这非常令人沮丧,因为我正在处理图像和视频文件,我需要快速访问它们。希望有人帮助我解决这个问题。
有人知道__DATA__macOS Catalina 上的 Perl语法是否已被弃用吗?我运行了 perl v5.18.4,即使是这样的简单程序也没有输出(也没有错误);
use strict;
use warnings;
while(<DATA>){
print $_;
}
__DATA__
line1
line2
line3
Run Code Online (Sandbox Code Playgroud)
编辑:这很奇怪。我之前说过我有 2 个 Mac 系统,它们都有同样的问题。不太正确,在一个系统上该程序可以工作,而在另一个系统上相同的程序却没有。
两个系统上的 Hexdump 是相同的:
麦克迷你:
Mac-mini-van-Theo:Programming theo$ hexdump -C test.pl
00000000 75 73 65 20 73 74 72 69 63 74 3b 0d 75 73 65 20 |use strict;.use |
00000010 77 61 72 6e 69 6e 67 73 3b 0d 77 68 69 6c 65 28 |warnings;.while(|
00000020 3c 44 41 54 41 3e …Run Code Online (Sandbox Code Playgroud) 我运行以下命令在我的 Mac 上安装 Nix:
sh <(curl -L https://nixos.org/nix/install) --daemon --darwin-use-unencrypted-nix-store-volume
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
error: refusing to create Nix store volume because the boot volume is
FileVault encrypted, but encryption-at-rest is not available.
Manually create a volume for the store and re-run this script.
See https://nixos.org/nix/manual/#sect-macos-installation
Run Code Online (Sandbox Code Playgroud)
https://nixos.org/nix/manual/#sect-macos-installation说:
如果您使用的是带有T2 芯片的最新 Mac ,您的驱动器仍会在静止状态下加密(在这种情况下,“未加密”有点用词不当)。要使用这种方法,只需安装 Nix:
sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume如果您不喜欢这样的声音,您将需要权衡本节中详述的其他方法和权衡。
我没有带 T2 芯片的 Mac,我该怎么办?
Visual Studio 代码要求页面:https : //code.visualstudio.com/docs/supporting/requirements
甚至没有列出当前的 MacOS 10.14.x (Mojave) 支持。什么时候支持 10.15.x (Catalina)?