This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM4378: AM4378

Part Number: AM4378

Hi,

I have downloaded the SDK and trying to build. I am getting below error, can you please suggest.

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- tisdk_am437x-evm_defconfig
LEX scripts/kconfig/lexer.lex.c
/bin/sh: line 1: flex: command not found
make[1]: *** [scripts/Makefile.host:9: scripts/kconfig/lexer.lex.c] Error 127

Thanks.

  • Hi Sunitha,

    Thanks for your query.

    I see that the error message says "Flex command not found"

    Can you try running the following command and then try to run your script?

    command: sudo apt-get install flex

    BR Vaibhav

  • I am using Ubuntu 22.04 and getting below error for command: sudo apt-get install flex

    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Package flex is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'flex' has no installation candidate

  • Hi Sunitha,

    I already installed it a while ago, so this is what show on my end on executing the above command.

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    flex is already the newest version (2.6.4-6).
    0 upgraded, 0 newly installed, 0 to remove and 48 not upgraded.

    Assuming you are using PSDK, can you please make sure to use Ubuntu 18.04.

    Moreover, looks like the packages are not up to date.

    Can you try running: sudo apt-get update

    And then try rerunning the flex installation command.

    BR Vaibhav