国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Mac M1通過homebrew安裝Redis報錯(perl: unknown or unsupported macOS version: :dunno)

這篇具有很好參考價值的文章主要介紹了Mac M1通過homebrew安裝Redis報錯(perl: unknown or unsupported macOS version: :dunno)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

〇、解決方案

升級homebrew,命令如下:

brew update-reset

一、問題現(xiàn)象

通過命令brew install redis安裝Redis,異常如下:

fatal: not in a git directory
Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update!
Warning: You are using macOS 14.
We do not provide support for this pre-release version.
It is expected behaviour that some formulae will fail to build in this pre-release version.
It is expected behaviour that Homebrew will be buggy and slow.
Do not create any issues about this on Homebrew's GitHub repositories.
Do not create any issues even if you think this message is unrelated.
Any opened issues will be immediately closed without response.
Do not ask for help from MacHomebrew on Twitter.
You may ask for help in Homebrew's discussions but are unlikely to receive a response.
Try to figure out the problem yourself and submit a fix as a pull request.
We will review it but may or may not accept it.

==> Downloading https://www.openssl.org/source/openssl-1.1.1s.tar.gz
Already downloaded: /Users/heyday/Library/Caches/Homebrew/downloads/c475ad5547bf6708c42aaf180620e38a33a1798ae3c6a59725b6bf60f52f2249--openssl-1.1.1s.tar.gz
==> Downloading https://download.redis.io/releases/redis-7.0.5.tar.gz
Already downloaded: /Users/heyday/Library/Caches/Homebrew/downloads/1901d254697ab7e72b48bc6e85b1375acbbcfb740ee1eab1358b21ffa211c8ba--redis-7.0.5.tar.gz
==> Installing dependencies for redis: openssl@1.1
==> Installing redis dependency: openssl@1.1
Error: An exception occurred within a child process:
  FormulaUnreadableError: perl: unknown or unsupported macOS version: :dunno

二、嘗試解決

參考博文MAC 升級后brew報錯后,運行命令brew update-reset,結(jié)果如下:

==> Fetching /opt/homebrew...
remote: Enumerating objects: 27472, done.
remote: Counting objects: 100% (3242/3242), done.
remote: Total 27472 (delta 3242), reused 3242 (delta 3242), pack-reused 24230
Receiving objects: 100% (27472/27472), 10.60 MiB | 13.25 MiB/s, done.
Resolving deltas: 100% (18433/18433), completed with 1014 local objects.
From https://mirrors.ustc.edu.cn/brew
   aea140c04..e57a87cfe  master     -> origin/master
 * [new tag]             3.6.14     -> 3.6.14
 * [new tag]             3.6.15     -> 3.6.15
 * [new tag]             3.6.16     -> 3.6.16
......
* [new tag]             4.1.7      -> 4.1.7
 * [new tag]             4.1.8      -> 4.1.8
 * [new tag]             4.1.9      -> 4.1.9

==> Resetting /opt/homebrew...
branch 'master' set up to track 'origin/master'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

==> Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-cask...
remote: Enumerating objects: 113910, done.
remote: Counting objects: 100% (8170/8170), done.
remote: Total 113910 (delta 8170), reused 8170 (delta 8170), pack-reused 105740
Receiving objects: 100% (113910/113910), 57.91 MiB | 22.36 MiB/s, done.
Resolving deltas: 100% (85215/85215), completed with 1709 local objects.
From https://mirrors.ustc.edu.cn/homebrew-cask
   d0ac851913..3233b1b002  master     -> origin/master

==> Resetting /opt/homebrew/Library/Taps/homebrew/homebrew-cask...
branch 'master' set up to track 'origin/master'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

==> Fetching /opt/homebrew/Library/Taps/homebrew/homebrew-core...
remote: Enumerating objects: 330567, done.
remote: Counting objects: 100% (19485/19485), done.
remote: Total 330567 (delta 19485), reused 19485 (delta 19485), pack-reused 311082
Receiving objects: 100% (330567/330567), 148.87 MiB | 4.08 MiB/s, done.
Resolving deltas: 100% (244544/244544), completed with 3769 local objects.
From https://mirrors.ustc.edu.cn/homebrew-core
   cd5dc44cfa5..f348ed27b41  master     -> origin/master

==> Resetting /opt/homebrew/Library/Taps/homebrew/homebrew-core...
branch 'master' set up to track 'origin/master'.
Reset branch 'master'
Your branch is up to date with 'origin/master'.

Warning: No remote 'origin' in /opt/homebrew/Library/Taps/homebrew/homebrew-services, skipping update and reset!

查看homebrew版本(brew --version),結(jié)果為:

Homebrew 4.1.15
Homebrew/homebrew-core (git revision f348ed27b41; last commit 2023-10-10)
Homebrew/homebrew-cask (git revision 3233b1b002; last commit 2023-10-09)

最終解決
上述brew update-reset升級命令即為該問題的解決辦法。homebrew升級完成后,重新運行Redis安裝命令brew install redis,結(jié)果如下:

==> Downloading https://formulae.brew.sh/api/formula.jws.json
############################################################################################################################################################################## 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
############################################################################################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/redis/manifests/7.2.1-1
############################################################################################################################################################################## 100.0%
==> Fetching dependencies for redis: ca-certificates and openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2023-08-22
############################################################################################################################################################################## 100.0%
==> Fetching ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/blobs/sha256:a331e92e7a759571296581f029e5cc2ec7cee70cd92dc0b5f8eb76095f94a21a
############################################################################################################################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.1.3
############################################################################################################################################################################## 100.0%
==> Fetching openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/blobs/sha256:fd6e90e00f1c395feb60d0244eb66583caab494f8e0a0988afaa838511265d98
############################################################################################################################################################################## 100.0%
==> Fetching redis
==> Downloading https://ghcr.io/v2/homebrew/core/redis/blobs/sha256:53943e914be8be83327314d5e23a550f4b6ee31cb4ebebe85e27aa1bce80968a
############################################################################################################################################################################## 100.0%
==> Installing dependencies for redis: ca-certificates and openssl@3
==> Installing redis dependency: ca-certificates
==> Downloading https://ghcr.io/v2/homebrew/core/ca-certificates/manifests/2023-08-22
Already downloaded: /Users/heyday/Library/Caches/Homebrew/downloads/a8cd32e30cae0b7335779e93a6554f294f09485802fc253a3a8be441337a6115--ca-certificates-2023-08-22.bottle_manifest.json
==> Pouring ca-certificates--2023-08-22.arm64_sonoma.bottle.tar.gz
==> Downloading https://formulae.brew.sh/api/formula.jws.json
-=O=-                                                                      #             #             #             #                                                              
==> Regenerating CA certificate bundle from keychain, this may take a while...
??  /opt/homebrew/Cellar/ca-certificates/2023-08-22: 3 files, 221.7KB
==> Installing redis dependency: openssl@3
==> Downloading https://ghcr.io/v2/homebrew/core/openssl/3/manifests/3.1.3
Already downloaded: /Users/heyday/Library/Caches/Homebrew/downloads/f038f540886a6a94c000296efb3058dc47e867eef00f0c6836b8ff310bc04daa--openssl@3-3.1.3.bottle_manifest.json
==> Pouring openssl@3--3.1.3.arm64_sonoma.bottle.tar.gz
??  /opt/homebrew/Cellar/openssl@3/3.1.3: 6,495 files, 28.4MB
==> Installing redis
==> Pouring redis--7.2.1.arm64_sonoma.bottle.1.tar.gz
==> Caveats
To start redis now and restart at login:
  brew services start redis
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/redis/bin/redis-server /opt/homebrew/etc/redis.conf
==> Summary
??  /opt/homebrew/Cellar/redis/7.2.1: 14 files, 2.4MB
==> Running `brew cleanup redis`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/heyday/Library/Caches/Homebrew/redis--7.0.5.tar.gz... (2.8MB)
Removing: /Users/heyday/Library/Caches/Homebrew/redis--7.0.5... (1003.0KB)
==> Caveats
==> redis
To start redis now and restart at login:
  brew services start redis
Or, if you don't want/need a background service you can just run:
  /opt/homebrew/opt/redis/bin/redis-server /opt/homebrew/etc/redis.conf

至此,Redis已安裝成功!

三、啟動服務(wù)

接下來就要啟動Redis服務(wù),并登錄客戶端,測試簡單實用。
使用redis-server命令啟動Redis服務(wù)。啟動結(jié)果如下:

18066:C 10 Oct 2023 16:14:48.320 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18066:C 10 Oct 2023 16:14:48.320 * Redis version=7.2.1, bits=64, commit=00000000, modified=0, pid=18066, just started
18066:C 10 Oct 2023 16:14:48.320 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
18066:M 10 Oct 2023 16:14:48.320 * Increased maximum number of open files to 10032 (it was originally set to 256).
18066:M 10 Oct 2023 16:14:48.320 * monotonic clock: POSIX clock_gettime
                _._                                                  
           _.-``__ ''-._                                             
      _.-``    `.  `_.  ''-._           Redis 7.2.1 (00000000/0) 64 bit
  .-`` .-```.  ```\/    _.,_ ''-._                                  
 (    '      ,       .-`  | `,    )     Running in standalone mode
 |`-._`-...-` __...-.``-._|'` _.-'|     Port: 6379
 |    `-._   `._    /     _.-'    |     PID: 18066
  `-._    `-._  `-./  _.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |           https://redis.io       
  `-._    `-._`-.__.-'_.-'    _.-'                                   
 |`-._`-._    `-.__.-'    _.-'_.-'|                                  
 |    `-._`-._        _.-'_.-'    |                                  
  `-._    `-._`-.__.-'_.-'    _.-'                                   
      `-._    `-.__.-'    _.-'                                       
          `-._        _.-'                                           
              `-.__.-'                                               

18066:M 10 Oct 2023 16:14:48.321 # WARNING: The TCP backlog setting of 511 cannot be enforced because kern.ipc.somaxconn is set to the lower value of 128.
18066:M 10 Oct 2023 16:14:48.322 * Server initialized
18066:M 10 Oct 2023 16:14:48.322 * Ready to accept connections tcp

四、登錄客戶端

通過redis-cli -p 6379(或redis-cli)登錄客戶端,測試結(jié)果:

127.0.0.1:6379> hset office id 16 name finance
(integer) 2
127.0.0.1:6379> hget office
(error) ERR wrong number of arguments for 'hget' command
127.0.0.1:6379> hget office id
"16"
127.0.0.1:6379> hget office name
"finance"
127.0.0.1:6379> set a 'bbb'
OK
127.0.0.1:6379> get a
"bbb"

通過info命令查看Redis信息,結(jié)果為:

127.0.0.1:6379> info
# Server
redis_version:7.2.1
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:7b8617dd94058f85
redis_mode:standalone
os:Darwin 23.0.0 arm64
arch_bits:64
monotonic_clock:POSIX clock_gettime
multiplexing_api:select
atomicvar_api:c11-builtin
gcc_version:4.2.1
process_id:18066
process_supervised:no
run_id:ebee4f34c6d4a9765df9b2af8076613a363a4b4e
tcp_port:6379
server_time_usec:1696927718666614
uptime_in_seconds:2030
uptime_in_days:0
hz:10
configured_hz:10
lru_clock:2428902
executable:/opt/homebrew/opt/redis-server
config_file:
io_threads_active:0
listener0:name=tcp,bind=*,bind=-::*,port=6379

# Clients
connected_clients:1
cluster_connections:0
maxclients:10000
client_recent_max_input_buffer:16
client_recent_max_output_buffer:0
blocked_clients:0
tracking_clients:0
clients_in_timeout_table:0
total_blocking_keys:0
total_blocking_keys_on_nokey:0

# Memory
used_memory:914816
used_memory_human:893.38K
used_memory_rss:7110656
used_memory_rss_human:6.78M
used_memory_peak:1130576
used_memory_peak_human:1.08M
used_memory_peak_perc:80.92%
used_memory_overhead:771176
used_memory_startup:769024
used_memory_dataset:143640
used_memory_dataset_perc:98.52%
allocator_allocated:895120
allocator_active:7078912
allocator_resident:7078912
total_system_memory:68719476736
total_system_memory_human:64.00G
used_memory_lua:31744
used_memory_vm_eval:31744
used_memory_lua_human:31.00K
used_memory_scripts_eval:0
number_of_cached_scripts:0
number_of_functions:0
number_of_libraries:0
used_memory_vm_functions:32768
used_memory_vm_total:64512
used_memory_vm_total_human:63.00K
used_memory_functions:216
used_memory_scripts:216
used_memory_scripts_human:216B
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
allocator_frag_ratio:7.91
allocator_frag_bytes:6183792
allocator_rss_ratio:1.00
allocator_rss_bytes:0
rss_overhead_ratio:1.00
rss_overhead_bytes:31744
mem_fragmentation_ratio:7.94
mem_fragmentation_bytes:6215536
mem_not_counted_for_evict:0
mem_replication_backlog:0
mem_total_replication_buffers:0
mem_clients_slaves:0
mem_clients_normal:1824
mem_cluster_links:0
mem_aof_buffer:0
mem_allocator:libc
active_defrag_running:0
lazyfree_pending_objects:0
lazyfreed_objects:0

# Persistence
loading:0
async_loading:0
current_cow_peak:0
current_cow_size:0
current_cow_size_age:0
current_fork_perc:0.00
current_save_keys_processed:0
current_save_keys_total:0
rdb_changes_since_last_save:3
rdb_bgsave_in_progress:0
rdb_last_save_time:1696925688
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
rdb_saves:0
rdb_last_cow_size:0
rdb_last_load_keys_expired:0
rdb_last_load_keys_loaded:0
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_rewrites:0
aof_rewrites_consecutive_failures:0
aof_last_write_status:ok
aof_last_cow_size:0
module_fork_in_progress:0
module_fork_last_cow_size:0

# Stats
total_connections_received:2
total_commands_processed:11
instantaneous_ops_per_sec:0
total_net_input_bytes:527
total_net_output_bytes:409203
total_net_repl_input_bytes:0
total_net_repl_output_bytes:0
instantaneous_input_kbps:0.00
instantaneous_output_kbps:0.00
instantaneous_input_repl_kbps:0.00
instantaneous_output_repl_kbps:0.00
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
expired_stale_perc:0.00
expired_time_cap_reached_count:0
expire_cycle_cpu_milliseconds:62
evicted_keys:0
evicted_clients:0
total_eviction_exceeded_time:0
current_eviction_exceeded_time:0
keyspace_hits:6
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
pubsubshard_channels:0
latest_fork_usec:0
total_forks:0
migrate_cached_sockets:0
slave_expires_tracked_keys:0
active_defrag_hits:0
active_defrag_misses:0
active_defrag_key_hits:0
active_defrag_key_misses:0
total_active_defrag_time:0
current_active_defrag_time:0
tracking_total_keys:0
tracking_total_items:0
tracking_total_prefixes:0
unexpected_error_replies:0
total_error_replies:5
dump_payload_sanitizations:0
total_reads_processed:17
total_writes_processed:21
io_threaded_reads_processed:0
io_threaded_writes_processed:0
reply_buffer_shrinks:2
reply_buffer_expands:0
eventloop_cycles:19625
eventloop_duration_sum:2617787
eventloop_duration_cmd_sum:2100
instantaneous_eventloop_cycles_per_sec:9
instantaneous_eventloop_duration_usec:292
acl_access_denied_auth:0
acl_access_denied_cmd:0
acl_access_denied_key:0
acl_access_denied_channel:0

# Replication
role:master
connected_slaves:0
master_failover_state:no-failover
master_replid:ab7606e5334f65e93b29c63f072666c60ab8186b
master_replid2:0000000000000000000000000000000000000000
master_repl_offset:0
second_repl_offset:-1
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:2.177440
used_cpu_user:0.937600
used_cpu_sys_children:0.000000
used_cpu_user_children:0.000000

# Modules

# Errorstats
errorstat_ERR:count=5

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=2,expires=0,avg_ttl=0

可見,版本是7.2.1,還是目前最新的穩(wěn)定版。文章來源地址http://www.zghlxwxcb.cn/news/detail-724443.html

到了這里,關(guān)于Mac M1通過homebrew安裝Redis報錯(perl: unknown or unsupported macOS version: :dunno)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Mac本安裝homebrew后git報錯解決1

    安裝完成homebrew后,運行brew -v 提示 Homebrew 4.0.6-186-g98a2923 fatal: detected dubious ownership in repository at \\\'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core\\\' To add an exception for this directory, call: git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core Homebrew/homebrew-core (no Git re

    2024年02月04日
    瀏覽(20)
  • 【FFmpeg】在 Mac OS 中編譯 FFmpeg 源碼 ① ( homebrew 安裝 | 通過 gitee 源安裝 homebrew | 安裝 FFmpeg 編譯所需的軟件包 )

    【FFmpeg】在 Mac OS 中編譯 FFmpeg 源碼 ① ( homebrew 安裝 | 通過 gitee 源安裝 homebrew | 安裝 FFmpeg 編譯所需的軟件包 )

    在 Mac 系統(tǒng)中 homebrew 是一款 軟件包管理工具 , 可以 輕松的 安裝 / 卸載 / 更新 / 查看 / 搜索 軟件包 , 可以簡單方便地對軟件包進行管理 , 無需用戶 處理 復(fù)雜的依賴關(guān)系 問題 ; homebrew 是 基于 Git 的倉庫 的 , 用戶 跟蹤 和 獲取最新版本的軟件包 ; homebrew 的 默認安裝位置是 /u

    2024年04月13日
    瀏覽(20)
  • Mac安裝Dart時,Homebrew報錯 Error: Failure while executing

    最近準備開發(fā)Flutter項目時,在安裝環(huán)境時,安裝Homebew時遇到了以下報錯信息,在這里分享一下。 安裝 ARM 版 Homebrew ARM版Homebrew最終被安裝在/opt/homebrew路徑下。 直接執(zhí)行: 然后還需設(shè)置環(huán)境變量,具體操作步驟如下,一定要仔細閱讀。 在終端執(zhí)行命令echo $SHELL獲得終端類型

    2024年02月10日
    瀏覽(29)
  • Mac M1:通過docker安裝RocketMQ、RocketMQ-Dashboard

    Mac M1:通過docker安裝RocketMQ、RocketMQ-Dashboard

    最近本地啟動以前docker安裝的rocketmq發(fā)現(xiàn)報錯了,因為是從老mac遷移過來的,發(fā)現(xiàn)支持的芯片還是amd的,于是重新在docker下安裝rocketmq,并記錄下步驟,方便大家后續(xù)參考。 1、先下載項目源碼 2、在官方項目rocketmq-docker中已經(jīng)說明了docker安裝rocketmq的步驟,因此我們只需要根據(jù)

    2024年04月29日
    瀏覽(44)
  • mac M1安裝opencv方法及類型報錯解決

    安裝opencv: pip install opencv-python pip install --user opencv-contrib-python pip install opencv-python == 4.5.2.54 numpy ==1.25.2 安裝過程中報錯如下: python-類型錯誤:“numpy._DTypeMeta”對象不可下標 TypeError: ‘numpy._DTypeMeta’ object is not subscriptable[] 解決方法: opencv和numpy的版本不匹配,需要升高或降低

    2024年02月12日
    瀏覽(26)
  • MacBook Pro M1 安裝Homebrew記錄

    知乎文章地址:https://zhuanlan.zhihu.com/p/111014448 蘋果電腦標準安裝腳本:(推薦 優(yōu)點全面 缺點慢一點) 蘋果電腦極速安裝腳本:(優(yōu)點安裝速度快 缺點update功能需要命令修復(fù) ) Linux 標準安裝腳本: 蘋果電腦卸載腳本: Linux卸載腳本:

    2024年02月07日
    瀏覽(23)
  • MacOS M1命令行安裝homebrew、node、git、docker

    MacOS M1命令行安裝homebrew、node、git、docker

    1、安裝homebrew、node、git 1.1 安裝homebrew 創(chuàng)建安裝目錄并設(shè)置其權(quán)限 進入 opt 目錄下載homebrew并解壓 輸入序列號選擇下載源、是否執(zhí)行腳本以及輸入Mac開機密碼 注意如果彈出要需要安裝工具的選項,安裝完成后要再重新執(zhí)行上述步驟; brew安裝成功后,輸入序列號配置國內(nèi)源,

    2024年01月20日
    瀏覽(19)
  • Mac Apple Silicon M1/M2 homebrew miniforge conda pytorch yolov5深度學(xué)習(xí)環(huán)境搭建并簡單測試MPS GPU加速

    Mac Apple Silicon M1/M2 homebrew miniforge conda pytorch yolov5深度學(xué)習(xí)環(huán)境搭建并簡單測試MPS GPU加速

    筆者使用的是一臺M2版本的Macbook Air,雖然蘋果作為深度學(xué)習(xí)的訓(xùn)練機不太合適,但是由于macbook作為打字機實在是無可挑剔,所以使用macbook調(diào)試一下pytorch的代碼再放到集群上訓(xùn)練或者直接在mac上調(diào)試運行代碼都是不錯的體驗,本文以在mac上直接調(diào)試yolov5為目標,大概記錄一下

    2024年02月02日
    瀏覽(23)
  • 記錄 | mac打開終端時報錯:login: /opt/homebrew/bin/zsh: No such file or directory [進程已完成]

    記錄 | mac打開終端時報錯:login: /opt/homebrew/bin/zsh: No such file or directory [進程已完成]

    mac打開終端時報錯: login: /opt/homebrew/bin/zsh: No such file or directory [進程已完成],導(dǎo)致終端沒有辦法使用的情況 說明 zsh 沒有安裝或者是安裝路徑不對 可以看看 /bin 下有沒有 zsh ,若沒有,肯定是有 bash 那就把終端默認 shell 改成 /bin/bash 或者有 zsh 的話就改成 /bin/zsh ,就行 具體

    2024年01月19日
    瀏覽(32)
  • docker執(zhí)行報錯:no such file or directory: unknown

    在linux下編譯的golang程序放到docker的busybox鏡像里無法執(zhí)行,顯示報錯信息: exec: No such file or directory 在Docker化的今天, 我們經(jīng)常需要靜態(tài)編譯一個Go程序,以便方便放在Docker容器中。 即使你沒有引用其它的第三方包,只是在程序中使用了標準庫 net ,你也會發(fā)現(xiàn)你編譯后的程

    2024年02月07日
    瀏覽(34)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包