Matlab: Difference between revisions
imported>Mazurel m Added no hardware support entry and slightly modified structure of the document |
m fix typo: runned -> run |
||
(One intermediate revision by one other user not shown) | |||
Line 21: | Line 21: | ||
After successful installation, you should add Matlab do your <code>configuration.nix</code> file. Personally I have used modified tvitii[https://github.com/tviti/nix-cfg/tree/aunuu/pkgs/matlab] files. I have simply switched <code>runPath</code> to the path of freshly installed Matlab folder. Then in my configuration.nix I have used his matlab folder like so: | After successful installation, you should add Matlab do your <code>configuration.nix</code> file. Personally I have used modified tvitii[https://github.com/tviti/nix-cfg/tree/aunuu/pkgs/matlab] files. I have simply switched <code>runPath</code> to the path of freshly installed Matlab folder. Then in my configuration.nix I have used his matlab folder like so: | ||
< | <syntaxHighlight lang=nix> | ||
... | ... | ||
let | let | ||
Line 30: | Line 30: | ||
environment.systemPackages = [ ... tviti-matlab.matlab ... ]; | environment.systemPackages = [ ... tviti-matlab.matlab ... ]; | ||
... | ... | ||
</ | </syntaxHighlight> | ||
{{Evaluate}} | {{Evaluate}} | ||
Line 39: | Line 39: | ||
In case you have java errors, and you are using tvitii[https://github.com/tviti/nix-cfg/tree/master/pkgs/matlab] derivation, you may need to modify <code>matlab.nix</code> to something like this: | In case you have java errors, and you are using tvitii[https://github.com/tviti/nix-cfg/tree/master/pkgs/matlab] derivation, you may need to modify <code>matlab.nix</code> to something like this: | ||
< | <syntaxHighlight lang=nix> | ||
{ common, buildFHSUserEnv }: | { common, buildFHSUserEnv }: | ||
buildFHSUserEnv { | buildFHSUserEnv { | ||
Line 48: | Line 48: | ||
runScript = "${common.runPath}/bin/matlab"; | runScript = "${common.runPath}/bin/matlab"; | ||
} | } | ||
</ | </syntaxHighlight> | ||
=== Other possible issues === | === Other possible issues === | ||
Line 61: | Line 61: | ||
Summarizing this answer: | Summarizing this answer: | ||
< | <syntaxHighlight lang=bash> | ||
cd <your_matlab_location>/sys/os/glnxa64/ | cd <your_matlab_location>/sys/os/glnxa64/ | ||
sudo mv libstdc++.so.6 libstdc++.so.6.bak | |||
sudo ln -s /usr/lib64/libstdc++.so.6 libstdc++.so.6 | |||
</ | </syntaxHighlight> | ||
You will not have <code>/usr/lib64/libstdc++.so.6</code> at the time of following the steps, but Matlab will be | You will not have <code>/usr/lib64/libstdc++.so.6</code> at the time of following the steps, but Matlab will be run in FHS env, and this path will be visible for it. | ||
[[Category:Applications]] | [[Category:Applications]] |