From: katman on
Many thanks to Charles for his excellent solution to the problem of
the missing libstdc++.so.6. In my system, the libstdc++.so.6 was found
in the /usr/lib folder though.

After successfully installing MATLAB, I tried to follow the
instructions on https://help.ubuntu.com/community/MATLAB in order to
solve the "permissions problem for storing MATLAB preferences, since
the directory and files inside of ~/.matlab will be created for the
root user." This I did by typing sudo chown -R ${USER}:${USER}
~/.matlab in the terminal, but got an error message saying "chown:
cannot access `/home/XYZ/.matlab': No such file or directory".

Would anyone know how to find the hidden folder called .matlab? Also,
should I type the sudo chown command at the first prompt in the
terminal or from some other directory?

Thanks in advance from an Ubuntu newbie.
From: Moacir on
You should first CREATE the folder, since before Matlab runs, it
really does not exists.
So, do: mkdir ~/.matlab
and, then, sudo chown -R ${USER}:${USER} ~/.matlab

I also have some "system freezing" problems when trying to write
images (imwrite) in a subfolder of home. I did not manage to fix it
yet.

To editpath you also have to make the /usr/local/matlab folder
available for the user, so I typed:
sudo chown -R ${USER}:${USER} /usr/local/matlab

It is really annoying to have to deal with these permission problems
and freezing, that did not occurred when I was using Kubuntu 8.04 /
Matlab for Unix 2008


On Jul 4, 2:58 am, katman <nilakant...(a)gmail.com> wrote:
> Many thanks to Charles for his excellent solution to the problem of
> the missing libstdc++.so.6. In my system, the libstdc++.so.6 was found
> in the /usr/lib folder though.
>
> After successfully installing MATLAB, I tried to follow the
> instructions onhttps://help.ubuntu.com/community/MATLABin order to
> solve the "permissions problem for storing MATLAB preferences, since
> the directory and files inside of ~/.matlab will be created for the
> root user." This I did by typing sudo chown -R ${USER}:${USER}
> ~/.matlab in the terminal, but got an error message saying "chown:
> cannot access `/home/XYZ/.matlab': No such file or directory".
>
> Would anyone know how to find the hidden folder called .matlab? Also,
> should I type the sudo chown command at the first prompt in the
> terminal or from some other directory?
>
> Thanks in advance from an Ubuntu newbie.