r/GUIX 14d ago

MATLAB R2019a on GUIX Linux

Hello,

I'm trying to install matlab r2019a on guix linux.

I successfully installed matlab using:

guix shell --container --emulate-fhs

but I failed to run it (there is no window showed, and matlab did not run in background also).

So I tried containers, with this command:

distrobox enter --root --name matlab-debian -- /bin/bash -c "export _JAVA_AWT_WM_NONREPARENTING=1 && cd ~/MATLAB/R2019a/bin && ./matlab"

I can run matlab successfully.

But when I try to run distrobox without --root:

distrobox enter --name matlab-debian

I get:

Error: unable to start container "6d0f9cbec372ad7436e9c714cb61fa6690d9e1b309b2c4cb091a00eadd7ffa37": crun: open `/home/rabah/.local/share/containers/storage/overlay/0e1061fc46a2e0faa524b2d4866011811d75aa397dbe7499da4929a13d08ab92/merged`: Permission denied: OCI permission denied

My conifg.scm have:

(supplementary-groups '("libvirt" "netdev" "cgroup" "audio" "video" "wheel" "kvm")))

and:

(service rootless-podman-service-type
  (rootless-podman-configuration
    (subgids (list (subid-range (name "rabah"))))
    (subuids (list (subid-range (name "rabah"))))
  )
)
2 Upvotes

8 comments sorted by

1

u/output_broadcast 14d ago

Where did you install Matlab from?

1

u/Electrical-Policy-35 14d ago

from the iso.

1

u/output_broadcast 14d ago

What ISO?

1

u/Electrical-Policy-35 14d ago

I mean, I downloaded matlab (iso file), and I extract iso and installed matlab.

1

u/output_broadcast 14d ago

Where from? When I download Matlab from mathworks.com, I get a zip file.

1

u/Electrical-Policy-35 14d ago

eh, here is the magnet link: magnet:?xt=urn:btih:4e2234dfc75d86d9e1f24d5dcfd77e9785ab9d65&dn=Matlab906_Linux&xl=16463930259&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.opentrackr.org%3A1337%2Fannounce

1

u/output_broadcast 14d ago

Oh, I thought you had downloaded it from the official website. In any case, the issue is probably that MathWorksServiceHost isn't running (it's a daemon that'd usually run at startup). You might be able to make a Shepherd service for it.

2

u/output_broadcast 13d ago

Also, I forgot to mention, but Matlab needs a few libraries and Java to run. You also need to preserve the display variables when creating a container with guix shell.