Quartus 19.1 has issues with its perl distribution on Linux. When generating a Qsys project, I get the following error:
Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module) (
) at /opt/altera/19.1/quartus/../ip/altera/sopc_builder_ip/altera_avalon_pio/generate_rtl.pl line 18.
It seems like the perl distribution points to the wrong directory because the library is located at `/opt/altera/19.1/quartus/linux64/perl/lib/5.28.1/Getopt/Long.pm`
I've found a bunch references in the perl distribution pointing to the wrong directory ( https://pastebin.com/wfUKcSjq )
A "fix" seems to be to link to the system perl executeable: http://www.armadeus.org/wiki/index.php?title=Quartus_installation_on_Linux#Perl_Getopt::Long
Full log: https://pastebin.com/b91vNq3k
Linux Distribution: Arch
$ quartus --version
Quartus Prime Design Software
Version 19.1.0 Build 670 09/22/2019 SJ Lite Edition
$ which quartus
I found a forum case that has a similar issue with yours. Perhaps the solution could help in your current case.
For me inserting the line
solved the problem. Please note that the application must be restarted to inherit the environment variable.
Yeah, but this wasn't necessary with previous versions of Quartus and it could cause further problems or compatibility issues with my systems perl installation.
I have already another "fix" in use (as mentioned above), but would prefer if Intel would recognize this bug and fix it in the next build/release