使用port
安装程序的时候,提示:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
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
,然后下载安装即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
[~]$ 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 年没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!