Skip to main content
Visitor II
December 8, 2020
Solved

Clean shell when sourcing this environment script

  • December 8, 2020
  • 2 replies
  • 3710 views

Hello

I switched to the Distribution package to have access to the layers provided by ST.

After I use command repo sync I, a file named layer is created.

When I:

DISTRO=openstlinux-weston MACHINE=stm32mp1-disco source layers/meta-st/scripts/envsetup.sh 

I get the following error

[source layers/openembedded-core/oe-init-build-env][from nothing]

Error: The OE SDK/ADT was detected as already being present in this shell environment. Please use a clean shell when sourcing this environment script.

How can I clean the shell environment ?

    This topic has been closed for replies.
    Best answer by Olivier GALLIEN

    Hi @SigmaPrime​ 

    Indeed you can not use Distribution in a shell you initially source the SDK for Developer package.

    Simple way is just to open a new shell terminal.

    Olivier

    2 replies

    Technical Moderator
    December 8, 2020

    Hi @SigmaPrime​ 

    Indeed you can not use Distribution in a shell you initially source the SDK for Developer package.

    Simple way is just to open a new shell terminal.

    Olivier

    Visitor II
    December 8, 2020

    Oh I get it now!

    I misread your comment

    Thank you

    Visitor II
    May 12, 2021

    I also had the same error and recovered by opening a new terminal. Thank you