• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

-v: unexpected operator error in WSL agbcc build

bitKoder

completely unreasonable
  • 36
    Posts
    8
    Years
    • Seen Jun 22, 2025
    I am building pokeemerald on my Windows 10 PC according to the tutorial on the github repository.
    I have cloned the pokeemerald repo and then the agbcc repo, but when I cd into the agbcc folder and run the
    Code:
    ./build.sh
    command, it gives me these 2 errors:
    Code:
    ./build.sh: 7: [: -v: unexpected operator
    Code:
    ./build.sh: 14: make: not found

    If I ignore it and go ahead to run
    Code:
    ./install.sh ../pokeemerald
    I get this error:
    Code:
    cp: cannot stat 'agbcc': No such file or directory

    Any advice on how I can sort this out?
     
    Back
    Top