Community
cancel
Showing results for 
Search instead for 
Did you mean: 
PGötz
Beginner
1,816 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
1,182 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,182 Views

Thanks, I haven't found this thread :)

1,182 Views

Hi Paul,

Do you able to solve the issue?

PGötz
Beginner
1,182 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,182 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,182 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

1,182 Views

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

Reply