此處的方法僅是自己的經驗筆記,不具正確性,若您使用此處指令嘗試安裝afdko,導致任何損失,本人概不負責。
嘗試透過指令安裝套件:
$ apt-cyg install automake clang libxml2 libxml2-devel libxslt libxslt-devel make python3-clang python3-devel python3-libxml2 python3-lxml python3-lxml-debuginfo python3-wheel python-libxml2 python-libxslt zlib-debuginfo
$ apt-cyg install make cmake automake gdb nasm yasm wget pkg-config
安裝以上套件後,透過 pip 安裝套件應該可以正常編譯 AFDKO 的 Python 包了,尤其是 Ninja 套件。
$ pip3.8 install ninja
$ pip3.8 install afdko
透過以下方式安裝特定版本的 python pip 套件,如果還是不成功,透過此方式嘗試舊版本:
$ pip3.8 install afdko==3.6.2
指定安裝版本,若透過 --force-reinstall
強制重新安裝時,有時候會損害pip環境,尤其透過此指令降版pip
時,如不慎遇到時,請透過此方式修正。
嘗試的指令(未整理):
735 2021-03-17 08:36:38 apt-cyg find python
736 2021-03-17 08:42:13 apt-cyg install python3
737 2021-03-17 08:44:01 pip
738 2021-03-17 08:44:06 apt-cyg install python3-pip
748 2021-03-17 08:58:02 history | less
753 2021-03-17 14:38:39 pip3 install afdko
754 2021-03-17 14:56:47 apt-cyg find wheel
755 2021-03-17 16:58:06 apt-cyg install python3-wheel
756 2021-03-17 16:58:27 pip3 install afdko
758 2021-03-17 17:03:20 apt-cyg install python3-lxml
759 2021-03-17 17:05:21 pip3 install afdko
919 2021-04-07 09:24:46 pip
920 2021-04-07 09:24:47 pip3
921 2021-04-07 09:24:56 pip3 install afdko
922 2021-04-07 09:32:04 apt-cyg search wheel
923 2021-04-07 09:32:22 apt-cyg find wheel
924 2021-04-07 09:32:43 apt-cyg find lxml
925 2021-04-07 09:33:15 apt-cyg install python3-lxml python3-wheel
926 2021-04-07 09:34:02 apt-cyg install python3-lxml-debuginfo python3-wheel
927 2021-04-07 09:34:46 pip3 install afdko
928 2021-04-07 09:41:50 apt-cyg find libxml
929 2021-04-07 09:42:24 apt-cyg find libxslt
930 2021-04-07 09:42:56 apt-cyg install python3-libxml2
931 2021-04-07 09:43:12 apt-cyg find clang
932 2021-04-07 09:43:28 apt-cyg install python3-clang clang
933 2021-04-07 09:46:47 pip3 install afdko
934 2021-04-07 10:08:36 apt-cyg install python-libxslt
935 2021-04-07 10:09:06 pip3 install afdko
936 2021-04-07 10:11:09 pip3 install --upgrade pip
937 2021-04-07 10:11:41 pip3 install -U afdko --pre
938 2021-04-07 10:11:50 pip3
939 2021-04-07 10:11:53 pip3 install --upgrade pip
940 2021-04-07 10:12:11 pip3 install --upgrade pip
943 2021-04-07 10:15:22 apt-cyg find libxslt
944 2021-04-07 10:15:58 apt-cyg find libxml libxslt
945 2021-04-07 10:16:32 apt-cyg install libxml2 libxslt
946 2021-04-07 10:17:41 apt-cyg install python3-dev
947 2021-04-07 10:18:00 apt-cyg find python
948 2021-04-07 10:19:12 apt-cyg install python3-lxml python3-wheel
949 2021-04-07 10:12:21 pip3 install -U afdko --pre
950 2021-04-07 10:22:36 apt-cyg find zlib
951 2021-04-07 10:23:11 apt-cyg install zlib
952 2021-04-07 10:23:30 apt-cyg install zlib-devel
953 2021-04-07 10:23:47 apt-cyg install zlib-debuginfo
954 2021-04-07 10:24:02 pip3 install -U afdko --pre
955 2021-04-07 10:25:54 ERROR: Command errored out with exit status 1:
956 2021-04-07 10:26:00 python -m pip install --upgrade setuptools
957 2021-04-07 10:26:25 python -m pip --version
958 2021-04-07 10:26:38 pip3 --version
959 2021-04-07 10:26:52 pip3 install --upgrade pip -vvv
960 2021-04-07 10:31:45 apt-cyg install python-devel
961 2021-04-07 10:32:07 apt-cyg install python3-devel
962 2021-04-07 10:32:39 apt-cyg-old remove python2
963 2021-04-07 10:32:52 apt-cyg-old --help
964 2021-04-07 10:33:06 apt-cyg-old list python2
965 2021-04-07 10:33:30 apt-cyg-old remove python2*
966 2021-04-07 10:33:35 apt-cyg-old remove "python2*"
967 2021-04-07 10:40:22 apt-cyg install python3-lxml
968 2021-04-07 10:34:17 apt-cyg-old remove python2-devel python27 python27-devel python27-libxml2 python27-pip python27-setuptools
969 2021-04-07 10:40:42 apt-cyg install python3-libxml2
970 2021-04-07 10:41:44 cygcheck -p libxml/xpath.h
971 2021-04-07 10:42:10 apt-cyg install libxml2-devel
972 2021-04-07 10:45:23 apt-cyg install libxml2-devel
973 2021-04-07 10:47:01 pip install wheel
974 2021-04-07 10:42:44 pip3 install afdko
975 2021-04-07 10:47:09 pip install lxml
976 2021-04-07 10:48:17 pip cache purge
977 2021-04-07 10:48:24 pip install lxml
978 2021-04-07 10:49:26 pip cache purge
979 2021-04-07 10:50:11 apt-cyg install libxml2 libxml2-devel libxslt libxslt-devel python-libxml2 python-libxslt.
980 2021-04-07 10:50:15 apt-cyg install libxml2 libxml2-devel libxslt libxslt-devel python-libxml2 python-libxslt
981 2021-04-07 10:51:14 pip cache purge
982 2021-04-07 10:53:34 pip --version
983 2021-04-07 10:53:53 pip3 --version
984 2021-04-07 10:51:19 pip install lxml
985 2021-04-07 10:58:49 history
986 2021-04-07 10:59:17 history | grep afdko
987 2021-04-07 10:59:47 pip3 install afdko
988 2021-04-07 11:01:42 apt-cyg install automake
989 2021-04-07 11:13:35 pip3 install afdko
990 2021-04-07 11:14:58 apt-cyg install build-essential
991 2021-04-07 11:15:19 apt-cyg install build-essential
992 2021-04-07 11:15:25 apt-cyg install make
993 2021-04-07 12:47:40 fonttools
994 2021-04-07 12:48:19 fonttools --help
995 2021-04-07 12:50:51 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic .
996 2021-04-07 12:50:55 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic
997 2021-04-07 12:51:13 otc2otf --help
998 2021-04-07 12:51:36 otc2otf -r GenYoGothic-R.ttc
999 2021-04-07 12:51:48 otc2otf GenYoGothic-*.ttc
1000 2021-04-07 12:52:45 otc2otf GenYoGothic-EL.ttc
1001 2021-04-07 12:53:26 find . -name "*.ttc"
1002 2021-04-07 12:53:46 find . -name "*.ttc" -exec sh -c "" \;
1003 2021-04-07 12:55:19 find . -name "*.ttc" -exec sh -c "otc2otf {}" \;
1004 2021-04-07 12:57:30 cd ~
1005 2021-04-07 12:57:35 ls
1006 2021-04-07 12:57:41 mkdir git
1007 2021-04-07 12:57:44 cd git/
1008 2021-04-07 12:57:47 git clone --recursive https://github.com/google/woff2.git
1009 2021-04-07 12:58:39 cd woff2/
1010 2021-04-07 12:58:44 make clean all
1011 2021-04-07 13:00:44 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic .
1012 2021-04-07 13:00:46 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic
1013 2021-04-07 13:01:47 find . -name "*.ttf" -exec sh -c "woff2_compress {}" \;
1014 2021-04-07 13:02:23 mv ~/git/woff2 .
1015 2021-04-07 13:02:54 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic/woff2
1016 2021-04-07 13:03:05 find . -name "*.ttf" -exec sh -c "./woff2_compress {}" \;
1017 2021-04-07 13:37:06 mv /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoGothic/woff2 ~/git/
1018 2021-04-07 13:37:29 /home/root/git/woff2/woff2_compress.exe
1019 2021-04-07 13:37:52 find . -name "*.ttf" -exec sh -c "/home/root/git/woff2/woff2_compress {}" \;
1020 2021-04-07 13:37:59 /home/root/git/woff2/woff2_compress
1021 2021-04-07 14:04:55 cd /cygdrive/c/Users/best/Documents/字型/源様シリーズ/GenYoMin/TTF
1022 2021-04-07 14:04:59 find . -name "*.ttf" -exec sh -c "/home/root/git/woff2/woff2_compress {}" \;
1023 2021-04-07 14:05:13 find . -name "*.ttc" -exec sh -c "otc2otf {}" \;
1024 2021-04-07 14:05:18 cd ../
1025 2021-04-07 14:05:20 find . -name "*.ttc" -exec sh -c "otc2otf {}" \;
1026 2021-04-07 14:05:49 find . -maxdepth 1 -name "*.ttc" -exec sh -c "otc2otf {}" \;
1027 2021-04-07 14:06:23 cd GenYoGothic/
1028 2021-04-07 14:06:25 find . -maxdepth 1 -name "*.ttc" -exec sh -c "otc2otf {}" \;
1029 2021-04-07 14:07:15 cd ../
1030 2021-04-07 14:07:20 cd GenYoMin/
1031 2021-04-07 14:07:23 find . -maxdepth 1 -name "*.ttc" -exec sh -c "otc2otf {}" \;
1032 2021-04-07 14:07:46 find . -maxdepth 1 -name "*.ttf" -exec sh -c "/home/root/git/woff2/woff2_compress {}" \;