Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
15337 Discussions

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

PGötz
Beginner
2,347 Views

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
RichardTanSY_Intel
1,713 Views

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

PGötz
Beginner
1,713 Views
RichardTanSY_Intel
1,713 Views

Hi Paul,

Do you able to solve the issue?

PGötz
Beginner
1,713 Views

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

SSchu40
Beginner
1,713 Views

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.

PGötz
Beginner
1,713 Views

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

RichardTanSY_Intel
1,713 Views

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

Reply