马春杰杰 Exit Reader Mode

Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.

使用port安装程序的时候,提示:

Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Fetching archive for libiconv
--->  libiconv-1.17_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch libiconv-1.17_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/libiconv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:01:01 --:--:--     0
--->  Attempting to fetch libiconv-1.17_0.darwin_21.x86_64.tbz2 from https://nue.de.packages.macports.org/libiconv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1523k  100 1523k    0     0   482k      0  0:00:03  0:00:03 --:--:--  482k
--->  Attempting to fetch libiconv-1.17_0.darwin_21.x86_64.tbz2.rmd160 from https://nue.de.packages.macports.org/libiconv
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   512  100   512    0     0   2273      0 --:--:-- --:--:-- --:--:--  2275
--->  Installing libiconv @1.17_0
--->  Cleaning libiconv
--->  Removing work directory for libiconv
--->  Deactivating libiconv @1.16_1
--->  Cleaning libiconv
--->  Removing work directory for libiconv
--->  Activating libiconv @1.17_0
x ./
x ./+PORTFILE
x ./+CONTENTS
x ./+DESC
x ./+STATE
x ./opt/
x ./+COMMENT
x ./opt/local/
x ./opt/local/bin/
x ./opt/local/include/
x ./opt/local/lib/
x ./opt/local/share/
x ./opt/local/share/man/
x ./opt/local/share/doc/
x ./opt/local/share/doc/libiconv/
x ./opt/local/share/doc/libiconv/iconv_close.3.html
x ./opt/local/share/doc/libiconv/iconv.3.html
x ./opt/local/share/doc/libiconv/iconvctl.3.html
x ./opt/local/share/doc/libiconv/iconv_open_into.3.html
x ./opt/local/share/doc/libiconv/iconv_open.3.html
x ./opt/local/share/doc/libiconv/iconv.1.html
x ./opt/local/share/man/man3/
x ./opt/local/share/man/man1/
x ./opt/local/share/man/man1/iconv.1.gz
x ./opt/local/share/man/man3/iconv_open.3.gz
x ./opt/local/share/man/man3/iconv.3.gz
x ./opt/local/share/man/man3/iconvctl.3.gz
x ./opt/local/share/man/man3/iconv_close.3.gz
x ./opt/local/share/man/man3/iconv_open_into.3.gz
x ./opt/local/lib/libcharset.a
x ./opt/local/lib/libcharset.1.dylib
x ./opt/local/lib/libiconv.2.dylib
x ./opt/local/lib/libiconv.dylib
x ./opt/local/lib/libcharset.dylib
x ./opt/local/lib/libiconv.a
x ./opt/local/include/libcharset.h
x ./opt/local/include/localcharset.h
x ./opt/local/include/iconv.h
x ./opt/local/bin/iconv
--->  Cleaning libiconv
--->  Removing work directory for libiconv

Warning: The macOS 12 SDK does not appear to be installed. Ports may not build correctly.
Warning: You can install it as part of the Xcode Command Line Tools package by running `xcode-select --install'.
--->  Fetching archive for ncurses
--->  ncurses-6.3_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch ncurses-6.3_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/ncurses
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:15 --:--:--     0^C

解决:

先下载对应的command line工具,打开:More – Downloads – Apple Developer

找到对应的工具,如Command_Line_Tools_for_Xcode_14,然后下载安装即可。

[~]$ sudo port -v install e2fsprogs
Password:
--->  Fetching archive for ncurses
--->  ncurses-6.3_0.darwin_21.x86_64.tbz2 doesn't seem to exist in /opt/local/var/macports/incoming/verified
--->  Attempting to fetch ncurses-6.3_0.darwin_21.x86_64.tbz2 from https://packages.macports.org/ncurses
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1346k  100 1346k    0     0  2399k      0 --:--:-- --:--:-- --:--:-- 2404k
--->  Attempting to fetch ncurses-6.3_0.darwin_21.x86_64.tbz2.rmd160 from https://packages.macports.org/ncurses
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   512  100   512    0     0   6895      0 --:--:-- --:--:-- --:--:--  6918
--->  Installing ncurses @6.3_0
--->  Cleaning ncurses
--->  Removing work directory for ncurses
--->  Deactivating ncurses @6.2_0
--->  Cleaning ncurses
--->  Removing work directory for ncurses
--->  Activating ncurses @6.3_0
x ./
x ./+PORTFILE
x ./+CONTENTS
x ./+DESC
x ./+STATE
x ./opt/
x ./+COMMENT
x ./opt/local/
x ./opt/local/bin/
x ./opt/local/include/

 

本文最后更新于2022年9月25日,已超过 1 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!