diff --git a/bin/wally-package-install.sh b/bin/wally-package-install.sh index 725d3b201..ce79dc575 100755 --- a/bin/wally-package-install.sh +++ b/bin/wally-package-install.sh @@ -123,5 +123,14 @@ else eval "$UPDATE_COMMAND" # Install packages listed above using appropriate package manager sudo $PACKAGE_MANAGER install -y "${GENERAL_PACKAGES[@]}" "${GNU_PACKAGES[@]}" "${QEMU_PACKAGES[@]}" "${SPIKE_PACKAGES[@]}" "${VERILATOR_PACKAGES[@]}" "${BUILDROOT_PACKAGES[@]}" "${OTHER_PACKAGES[@]}" "${VIVADO_PACKAGES[@]}" + + # Post install steps + # Vivado looks for ncurses5 libraries, but Ubuntu 24.04 only has ncurses6 + # Create symbolic links to the ncurses6 libraries to fool Vivado + if (( UBUNTU_VERSION >= 24 )); then + ln -vsf /lib/x86_64-linux-gnu/libncurses.so.6 /lib/x86_64-linux-gnu/libncurses.so.5 + ln -vsf /lib/x86_64-linux-gnu/libtinfo.so.6 /lib/x86_64-linux-gnu/libntinfo.so.5 + fi + echo -e "${SUCCESS_COLOR}Packages successfully installed.${ENDC}" fi