Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
830 Views

Can't locate Getopt/Long.pm when generating a Qsys Project

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) (

  @INC contains:

     /opt/altera/19.1/quartus/sopc_builder/bin/europa

     /opt/altera/19.1/quartus/sopc_builder/bin

     /opt/altera/19.1/quartus/../ip/altera/sopc_builder_ip/common

     /opt/altera/19.1/quartus/../ip/altera/sopc_builder_ip/altera_avalon_pio

     /tools/perl/5.28.1/linux64/lib/site_perl/5.28.1/x86_64-linux

     /tools/perl/5.28.1/linux64/lib/site_perl/5.28.1

     /tools/perl/5.28.1/linux64/lib/5.28.1/x86_64-linux

     /tools/perl/5.28.1/linux64/lib/5.28.1

  ) 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

/opt/altera/19.1/quartus/bin/quartus

```

0 Kudos
7 Replies
Highlighted
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

Hi,

 

I found a forum case that has a similar issue with yours. Perhaps the solution could help in your current case.

 

https://forums.intel.com/s/question/0D50P00004VQsDh/does-platform-designer-work-on-ubuntu-1804

Highlighted
Beginner
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

Thanks, I haven't found this thread 🙂

0 Kudos
Highlighted
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

Hi Paul,

Do you able to solve the issue?

0 Kudos
Highlighted
Beginner
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

I'm able to use Quartus by using the "fix" I mentioned above. Perl in the Quartus installation is still not working out of the box and requires manual changes

0 Kudos
Highlighted
Beginner
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

For me inserting the line

 

export PERL5LIB=/opt/intel_fpga/quartus/linux64/perl/lib/5.28.1

 

into

 

~/.bashrc

 

solved the problem. Please note that the application must be restarted to inherit the environment variable.

0 Kudos
Highlighted
Beginner
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

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

0 Kudos
Highlighted
196 Views

Re: Can't locate Getopt/Long.pm when generating a Qsys Project

Fyi, this bug will fix in future releases. In the meanwhile, please use the "fix" that you mentioned above.

0 Kudos