Package Details: java-matlab 1:R2025a.25.1.0.2943329-6

Git Clone URL: https://aur.archlinux.org/matlab.git (read-only, click to copy)
Package Base: matlab
Description: A high-level language for numerical computation and visualization (Java components)
Upstream URL: https://www.mathworks.com/products/matlab.html
Keywords: computation matlab numerical visualization
Licenses: custom:MATLAB EULA
Provides: java-matlab-version
Submitter: ido
Maintainer: vitaliikuzhdin
Last Packager: vitaliikuzhdin
Votes: 41
Popularity: 0.80
First Submitted: 2015-08-15 09:33 (UTC)
Last Updated: 2025-06-25 09:52 (UTC)

Dependencies (5)

Required by (1)

Sources (1)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 .. 26 Next › Last »

Rubo commented on 2022-08-21 20:40 (UTC)

Hi @bbaserdem, thanks for your message. I'm working on a new PKGBUILD with your improvements, hope to release it soon.

silverbluep commented on 2022-08-04 07:11 (UTC)

Couple tidbits;

I'm able to build with just the following makedepends, though my PKGBUILD is slightly different than this one. But mostly similar; as the PKGBUILD is based on mine; and from people whom I used as templates for the previous PKGBUILD.

gendesk
coreutils
findutils
python
ca-certificates
cairo
fontconfig
glib2
krb5
libgcrypt
libselinux
libxcrypt-compat
make
mesa
pam
unzip
util-linux-libs

Do not know if this is the minimal building set; but it is pretty small. Also; in your pkgbuild, the first array of dependencies is enough for me to run matlab without issues. The second array (which I had in the pkgbuild before) seems unneccessary; or at least feature dependent which I did not try. I personally opt to manage dependencies using a metapackage now, since I don't want to reinstall matlab to try new dependencies.

I see that this pkgbuild changes pkgver depending on the installation media. However; it probably won't work for anything 2020> , location of binaries and libraries and their versions are all different. The fixes in the python engine and the package_matlab() version will fail on most older versions. Since it only is guaranteed to work with 2022a, maybe dynamic pkgver is not a good idea?

I initially wrote the python spoofing based on some stuff I found online and through trial and effort. I switched methods; instead of making matlab think it's a lower number of python that is being run I just edited so that python engine thinks it supports 3.10. Have not been able to test if it works this way; but the previous spoofing is disabled (python 3.10 changed the way how sys.version_info works so you can't set it to a tuple, and the engine functions uses different methods which is non-trivial to spoof all around.) My solution is in my pkgbuild here.

Also; my suggestion on people with intel gpu, is that the default driver for mesa is iris; but matlab does not work with it. I used to use i956, but since december 2021; it's out of mesa due to being ancient. zink driver seems to work; so you can launch matlab with MESA_DRIVER_OVERRIDE=zink and hardware acceleration works.

daniel_shub commented on 2022-07-15 15:20 (UTC)

Any chance that MATLAB is lying to you? They have been known to sweep OpenGL issues under the rug

https://www.mathworks.com/matlabcentral/answers/239279-hardware-based-opengl-on-linux#answer_220778

"In the three cases listed previously hardware accelerated versions of Mesa are in fact being used. The problem is that the value of the OpenGL info 'software' field is actually incorrect. This issue has been fixed in R2016a."

Maybe they broke something again.

akristmunds commented on 2022-07-15 10:53 (UTC)

Hi, I messed up my MATLAB installation when I wanted to add additional packages from the GUI. I then decided to uninstall it with sudo pacman -R matlab, and then run the installation again. I followed the installation instructions, this time also installing additional packages. The installation seemed to run correctly, but now when I start matlab from the terminal, I get:MATLAB is selecting SOFTWARE OPENGL rendering., and with $ matlab -nosoftwareopengl, I get nothing. What can I do? Where can I look for error messages or hints of what may be wrong? I'm considering trying to install this again in a VirtualBox.

cxor commented on 2022-07-06 02:08 (UTC)

Also, I keep getting:

Error: No classpath definition jar found.
==> ERROR: A failure occurred in build().

Which apparently means one of the addons can't find the jars in ./matlab/java (./src/matlab/java) that it needs. i'm on a new system and my xorg/i3 isn't quite set up completely. i'm not sure if this is something I can fix by setting the java classpath env var or whether it's actually missing files.

here are the extensions i'm installing:

"MATLAB", "Simulink", "Bioinformatics_Toolbox", "Control_System_Toolbox", "Curve_Fitting_Toolbox", "Deep_Learning_Toolbox", "Econometrics_Toolbox", "Financial_Instruments_Toolbox", "Financial_Toolbox", "Instrument_Control_Toolbox", "MATLAB_Coder", "MATLAB_Compiler", "MATLAB_Report_Generator", "Optimization_Toolbox", "Partial_Differential_Equation_Toolbox", "Reinforcement_Learning_Toolbox", "Robotics_System_Toolbox", "Simulink_3D_Animation", "Simulink_Check", "Simulink_Code_Inspector", "Simulink_Coder", "Simulink Control_Design", "Simulink_Test", "Statistics_and_Machine_Learning_Toolbox", "Symbolic_Math_Toolbox", "Wavelet_Toolbox"

cxor commented on 2022-07-06 01:59 (UTC)

after running the matlab installer, the install.sh script runs makepkg, which can't find these files in the prepare() phase

./src/matlab/installer_input.txt ./src/matlab/install.txt

it seems to pick these up if I just copy them to the required location.

however, running the install.sh script a second time replaces the matlab.tar file with a version of MATLABROOT that has its files deleted. it might help to error out if matlab.tar already exists bc it's been a bit confusing.

another issue that i'm running into is that Ctrl-c on big cp ops leaves my /tmp/ directory full, which causes the script to error again.

Rubo commented on 2022-05-24 10:34 (UTC) (edited on 2022-05-24 10:35 (UTC) by Rubo)

@TheHardew @AlexBocken fixed now, thanks. Can't say how it worked without issues until few weeks ago haha.

AlexBocken commented on 2022-05-24 08:53 (UTC)

I had the same issue as @TheHardew, his proposed fix in line 207 fixed the installation for me.

@Rubo thank you so much for your work on updating this PKGBUILD!

TheHardew commented on 2022-05-20 19:33 (UTC) (edited on 2022-05-20 19:34 (UTC) by TheHardew)

I think it should be ls -d at line 207 in "Changing around locations if spoofing is needed..."? I got errors without it:
mv: cannot stat 'dependency_links.txt'$'\n''PKG-INFO'$'\n''SOURCES.txt'$'\n''top_level.txt': No such file or directory