Skip to content

Need gliblocales installed on some systems #2415

Open
@devSarry

Description

@devSarry

What happened?

Using the laravel template redis fails to start with the error "Failed to configure LOCALE for invalid locale name."

I'm running in fedora 41 and I guess I'm missing that pacakge.

A fix that worked for me was adding it to my packages. I think it might be a good idea to add it to the template too.

modified packages

    "packages": {
        "php81Packages.composer": "latest",
        "php81Extensions.xdebug": "latest",
        "php": "8.1",
        "nodejs": "18",
        "redis": "latest",
        "mariadb": "11.4.4",
        "glibcLocales": {
            "version":   "latest",
            "platforms": ["x86_64-linux", "aarch64-linux"]
        }
    },

Steps to reproduce

  1. On Fedora 41
  2. devbox create --template laravel
  3. devbox services up

Command

services

devbox.json

{
  "packages": [
    "php81Packages.composer@latest",
    "php81Extensions.xdebug@latest",
    "[email protected]",
    "nodejs@18",
    "mariadb@latest",
    "redis@latest"
  ],
  "shell": {
    "init_hook": [],
    "scripts": {
      "create-project": [
        "composer create-project laravel/laravel tmp",
        "mv tmp/* tmp/.* ."
      ],
      "db:create": "mysql -u root -e 'CREATE DATABASE laravel;'",
      "db:migrate": "php artisan migrate",
      "db:mysql": "mysql -u root -D laravel_test",
      "serve:dev": "php artisan serve"
    }
  }
}

Devbox version

0.13.4

Nix version

2.24.7

What system does this bug occur on?

Linux (x86-64)

Debug logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions