Skip to content

jq was compiled without ONIGURUMA regex library error #6

Description

@BobBurgess

Hello Everyone,

I'm trying to run this script on a machine running Batocera 41 (not a steamdeck). I'm getting the following error:

"jq: error (at :775): jq was compiled without ONIGURUMA regex library. match/test/sub and related functions are not available."

Then I get the message:

🧹 Cleaning up temporary modules...

and then it exits back to the terminal.

Any help with this would be immensely appreciated as I think this could be very useful for many batocera users.

Thanks!

Activity

  1. added 3 commits that reference this issue on Feb 1, 2026
  2. FlyingEwok commented on Apr 25, 2026

    @FlyingEwok
    Owner

    Status review for v3.1.0: still open / likely not fixed.

    Reason: this is about jq builds that lack ONIGURUMA support for regex functions. Current release changes did not fully remove regex-dependent jq usage across the compatibility pipeline.

    Keeping this open for a compatibility patch (or fallback parsing path) for environments like Batocera.

    Release reviewed: https://github.com/FlyingEwok/MinecraftSplitscreenSteamdeck/releases/tag/v3.1.0

  3. FlyingEwok commented on Apr 25, 2026

    @FlyingEwok
    Owner

    I pushed a compatibility fix branch for this:

    fix/issue-6-jq-compat

    It removes regex-dependent jq filters (test(...)) and uses regex-free jq expressions, so it should work on builds without ONIGURUMA.

    Could you please test with this installer URL and share the full output?

    https://raw.githubusercontent.com/FlyingEwok/MinecraftSplitscreenSteamdeck/fix/issue-6-jq-compat/install-minecraft-splitscreen.sh

    If it still fails, please include:

    • distro + version
    • jq --version
    • exact error text
  4. added
    needs productionReady for production validation/deploy
    needs reproductionCannot reproduce yet; waiting for exact repro details
    and removed
    needs productionReady for production validation/deploy
    on Apr 25, 2026
  5. BobBurgess commented on May 22, 2026

    @BobBurgess
    Author

    Thank you for your assistance.

    Attempted to use the new installer script you sent, got this error message:

    ==========================================
    
    ☕ AUTOMATIC JAVA SETUP
    ==========================================
    🔄 Checking Java requirements for Minecraft 26.1.2...
    💡 Minecraft 26.1.2 requires Java 25
    🔄 Searching for Java 25 installation...
    ⚠  Found Java executable but version doesn't match requirement
    ⚠  Java 25 not found on system
    💡 Automatically installing Java 25 using Steam Deck JDK installer...
    💡 This installation:
    💡   • Downloads official Oracle/OpenJDK builds with SHA256 verification
    💡   • Installs to ~/.local/jdk/ (no root access needed)
    💡   • Supports multiple Java versions side-by-side
    💡   • Sets up proper environment variables automatically
    ❌ Git is required to download the JDK installer but is not installed
    ❌ Please install git first: sudo pacman -S git
    ❌ Automatic Java installation failed
    ❌ Please install Java 25 manually and try again
    💡 Manual installation options:
    💡   • Or run the JDK installer separately:
    💡     git clone https://github.com/FlyingEwok/install-jdk-on-steam-deck.git
    💡     JDK_VERSION=25 ./install-jdk-on-steam-deck/scripts/install-jdk.sh
    🧹 Cleaning up temporary modules...
    

    So went here: https://github.com/FlyingEwok/install-jdk-on-steam-deck/tree/main/scripts and downloaded your script and ran that, which appeared to work fine:

    === Change Default Java Version ===
    
    Installed JDK versions:
      1) JDK 25 - openjdk version "25.0.3" 2026-04-21 LTS
      2) JDK 26 - openjdk version "26.0.1" 2026-04-21
    
    Select which JDK to set as default (1-2) [default: 2 for JDK 26 - RECOMMENDED]: 2
    
    ✓ Set JDK 26 as the default Java version (latest version)
      Updated ~/.profile with all installed JDK versions
      For new terminals, restart your shell or run: source ~/.profile
    
    Manual config commands:
      export PATH="/userdata/system/.local/jdk/jdk-26/bin:$PATH"
      export JAVA_HOME="/userdata/system/.local/jdk/jdk-26"
    Installation completed!`
    

    I applied the manual confit commands and that appeared to work:

    [root@BATOCERA /userdata/system]# java -version
    openjdk version "26.0.1" 2026-04-21
    OpenJDK Runtime Environment Temurin-26.0.1+8 (build 26.0.1+8)
    OpenJDK 64-Bit Server VM Temurin-26.0.1+8 (build 26.0.1+8, mixed mode, sharing)
    

    However, running the install-minecraft-splitscreen.sh still produces the same error as before. It is not detecting that I have installed JDK for some reason.

    I am still running Batocera 41. jq --version is jq-1.7.1

    Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproductionCannot reproduce yet; waiting for exact repro details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions