python 源碼編譯安裝報錯
錯誤信息
undefined reference to `PyUnicode_Type'
修改方法
sudo ./configure --prefix=/opt/python38 --enable-optimizations --with-lto --with-system-ffi --with-computed-gotos --enable-loadable-sqlite-extensions --enable-shared LDFLAGS=\"-Wl,-rpath /usr/local/lib\"
sudo make -j "$(nproc)"
sudo make altinstall