I have just installed Matlab R2011a on Ubuntu 12.04 using a standalone licence. The installation appears to have worked properly, and I have run the following to get rid of an error that everyone (including myself) seemed to be having:
This got rid of the error, but I still have a problem launching Matlab. Each time I launch it (by typing "matlab" in terminal), the Mathworks software activation window pops up. I provide the path to the licence file, it appears to activate successfully (no errors), but then Matlab doesn't launch. If I try to run it again, the same thing happens.
I think the licence should be updated. I fixed the problem by requesting a new licence from Mathworks and activating MATLAB with that licence file. They provided the same installation key for my computer's host id, but the 'licence.lic' file is updated. I think reinstallation is not necessary, activation with an updated licence just solves the problem.
Try running /usr/local/MATLAB/R2011a/bin/matlab (change the path according to the location on your system) in the terminal to see if that runs MATLAB. If not, perhaps you can still get some error messages from there that might be useful for your question.
Old thread I know, but I just had this same problem. The problem for me at least, was that it is recommended installing matlab with root priviledges and as such when it came to activation the default user to be granted a licens became root. In this way I could only start matlab when logged in as root. Problem is easily fixed by running the activation again outside of root.
Way too old thread but viewed 4523 times and active 16 days ago so still relevant I guess. Here is how you solve it. In my case the folder "/.matlab/R2015a_licenses/" did not exist. though "/.matlab" did. So I created R2015a_licenses. Now the problem is this folder was accessible only to root. So the activation application could not write the required file. So change the permission of this folder using "sudo chmod 777 R2015a_licenses". Now run matlab normally(no sudo). It should take you to the activation client. otherwise run the activation client manually(no sudo), it is called "activate_matlab.sh" in the bin folder. follow the steps and let it detect the user-name and do not change it. when it exits without error you are done with the licence part. Now there could be another problem that your matlab freezes just after the opening window and doesn't go any further. Take a look at this. "Go to the ".matlab/" directory in the users home directory. Rename the directory named after the version of MATLAB you are using to have _old at the end. If there is a folder with "_licenses" in the name, DO NOT rename that folder" kind of worked. By kind of I mean matlab complained that it cant write preferences in "/.matlab". So I changed the permission for that folder by "chmod" and then it worked.
Hi Dave,
thanks for your reply:)
What I did not mention the last time:
LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so /usr/local/MATLAB/R2011a/bin/matlab
This I do to start matlab, as this would be the output without preloading the module:
One common error that we have seen is Return Code 5100. This indicates that there were existing installs of redistributable Microsoft Visual C++ (for example, MATLAB will install a redistributable Microsoft Visual C++ program as part of its install) and that the installation could not proceed. In that case, you need to uninstall existing Visual C++ redistributable installations. You can see a good summary of the solution:
Version 2.6.2: R and Matlab versions remain at release 2.6 for the moment. SPAMS-python version 2.6.2 corresponds to a library reorganization and installation pipeline improvement. The Python version of SPAMS now has a dedicated Git forge.
Regarding the SPAMS-python package:
Regarding the SPAMS-python package:
If you would like to try this software, please click on rapcont2012a.exe to download the trial version of this software (includes only AnalogInput and Analog Output blocks) for Matlab R2012a (also compatible withMatlab R2007b through Matlab R2022b). Please execute it and follow theon-screen instructions for installation. If you install this version in a different folder, you can use this version and your existing oneconcurrently. This version of the RAPCON software requires the runtimecomponents of Visual C++ Libraries. If you do not have Microsoft VisualC++ 2008 Redistributable Package or Visual C++ 2008 installed on yourcomputer, please download and install the Microsoft Visual C++ 2008Redistributable Package (vcredist_x86.exe for 32-bit Windows and vcredist_x64.exe for 64-bit Windows) before using the library blocks. The packageincludes a simple test model (test.mdl) for illustration. Please enterthe following in your Matlab command window >> T=(sampling period, eg., 0.001), >> S=(stop time, e.g., inf), >> com=(your comport number, e.g., 5), and connect B0 to A0 on the RAPCON board beforerunning this model.
When you issue a 'module load matlab' command the version of MATLAB that will load is indicated by the '(default)' descriptor next to it. In this case R2011a will be loaded. If you wish to use another available version, you must use the full module name. If you were to load R2013a you would use 'module load matlab/R2013a'.
If all input arguments are of different subclasses of a common superclass that is derived from matlab.mixin.Heterogeneous, then the result is a heterogeneous array. The class of the final array is the most specific superclass shared by all input arguments.
dd2b598166