mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2026-06-03 20:40:30 +08:00
fix(install): support libstdcxx-ng on GCC 16+ hosts
When system GCC major version exceeds the highest libstdcxx-ng pin available on conda-forge, install the latest libstdcxx-ng instead of libstdcxx-ng>=N, which may not exist yet.
This commit is contained in:
parent
08d627c333
commit
4de3a6236e
10
install.sh
10
install.sh
@ -196,8 +196,14 @@ if [ "$(uname)" != "Darwin" ]; then
|
||||
echo -e "${INFO}Detected GCC Version: $gcc_major_version"
|
||||
echo -e "${INFO}Skip Installing GCC & G++ From Conda-Forge"
|
||||
echo -e "${INFO}Installing libstdcxx-ng From Conda-Forge"
|
||||
run_conda_quiet "libstdcxx-ng>=$gcc_major_version"
|
||||
echo -e "${SUCCESS}libstdcxx-ng=$gcc_major_version Installed..."
|
||||
# Arch GCC 16+: conda 尚无 libstdcxx-ng>=16,装最新版即可
|
||||
if [ "$gcc_major_version" -gt 15 ]; then
|
||||
run_conda_quiet libstdcxx-ng
|
||||
echo -e "${SUCCESS}libstdcxx-ng (latest) Installed..."
|
||||
else
|
||||
run_conda_quiet "libstdcxx-ng>=$gcc_major_version"
|
||||
echo -e "${SUCCESS}libstdcxx-ng=$gcc_major_version Installed..."
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if ! xcode-select -p &>/dev/null; then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user