Forum Discussion

DMAHM1's avatar
DMAHM1
Icon for New Contributor rankNew Contributor
7 years ago

Does Platform Designer work on Ubuntu 18.04?

I have Quartus Prime Standard Edition 19.1 working on Ubuntu 18.04. I am trying to use the platform designer. When I try to generate the HDL files, I get an error preceded by some info which are related to Quartus not finding certain Perl libraries which are already installed:

"Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module)"

I am wondering if Platform Designer is supported on Ubuntu.

If it is, how can I fix this issue?

12 Replies

    • DMAHM1's avatar
      DMAHM1
      Icon for New Contributor rankNew Contributor

      I am using Ubuntu 18.04 LTS, I also tried reinstalling Quartus, but the files generation still fails.

    • MSchn21's avatar
      MSchn21
      Icon for New Contributor rankNew Contributor

      I have this exact same problem: Ubuntu 18.04LTS and Quartus 19.1. I have installed the prerequisites per the installation document located at https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/manual/archives/quartus_install-19-1.pdf .

      Qsys fails with this message on a simple PIO:

      Can't locate Getopt/Long.pm in @INC (you may need to install the Getopt::Long module) (@INC contains: /opt/Intel/QuartusPrimeStandard_19.1/quartus/sopc_builder/bin/europa /opt/Intel/QuartusPrimeStandard_19.1/quartus/sopc_builder/bin /opt/Intel/QuartusPrimeStandard_19.1/quartus/../ip/altera/sopc_builder_ip/common /opt/Intel/QuartusPrimeStandard_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/Intel/QuartusPrimeStandard_19.1/quartus/../ip/altera/sopc_builder_ip/altera_avalon_pio/generate_rtl.pl line 18.

      This design didn't have any problem with version 18.1.

    • PGötz's avatar
      PGötz
      Icon for New Contributor rankNew Contributor

      The Problem also appear on Arch Linux using Quartus Lite 19.1 . The same design worked with 18.1 flawlessly!

  • AnandRaj_S_Intel's avatar
    AnandRaj_S_Intel
    Icon for Regular Contributor rankRegular Contributor

    Hi Dina,

    Is this replicable for any new projects in your system environment??

    Please try to reinstall and check.

    If it does not work, We have to install the latest Quartus version and try.

    Based on the information you provided, we can identify if it is a bug.

    Regards

    Anand

    • DMAHM1's avatar
      DMAHM1
      Icon for New Contributor rankNew Contributor

      Yes, I tried for different projects and I get the same warning followed by generation failed error. However, it works fine on a Windows 10 PC.

      I tried reinstalling and it still didn't work. I have the latest version of the Quartus Prime Standard Edition (19.1).

    • DMAHM1's avatar
      DMAHM1
      Icon for New Contributor rankNew Contributor

      I already have these libraries installed, except for lib32bz2-1.0 which I cannot find. Quartus itself works fine, the only problem arises when I try to generate HDL files using platform Designer.

    • PGötz's avatar
      PGötz
      Icon for New Contributor rankNew Contributor

      The problem exists within the included perl distribution being compiled with the wrong paths!

      Full error (with additional line breaks):

      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
  • DMAHM1's avatar
    DMAHM1
    Icon for New Contributor rankNew Contributor

    I figured out the problem. Quartus was unable to locate the latest Perl library files so I had to modify the PERL5LIB environment variable to add the new path.