setting up symbolic links in linux

  • Follow


Hi,

I recently installed MATLAB2010 on Ubuntu 9.04. It works great and all, except that for one reason or another the symbolic links never got set up... So now I have to go into the command line, hunt under /name/R2010a/bin and then enter ./matlab in order to start it up.

It's a real pain-- ideally I would want to be able to type in 
matlab
in the command prompt and have it start up! (as it's supposed to..)

Can anyone help me with setting up the symbolic links after installation? I don't want to go through a reinstall since it takes so long on this laptop...

Thanks!
0
Reply imost111 (1) 8/3/2010 11:23:09 PM

I also forgot to mention-- I tried double-clicking on the 'matlab' executable from my desktop (in lieu of using the command prompt for linux) and that doesn't work either. Being able to have MATLAB as an executable on my desktop would also be grand..
0
Reply iliz110 8/3/2010 11:24:27 PM


iliz110 wrote:
> I also forgot to mention-- I tried double-clicking on the 'matlab' executable from my desktop (in lieu of using the command prompt for linux) and that doesn't work either. Being able to have MATLAB as an executable on my desktop would also be grand..

The Matlab binary needs a fair number of environment variables to be set 
up before execution, so probably the closest you are going to be able to 
get is to have a shell script marked as executable and double-click on that.
0
Reply Walter 8/4/2010 4:09:09 PM


"Walter Roberson" <roberson@hushmail.com> wrote in message 
news:Fgg6o.63516$0A5.27986@newsfe22.iad...
> iliz110 wrote:
>> I also forgot to mention-- I tried double-clicking on the 'matlab' 
>> executable from my desktop (in lieu of using the command prompt for 
>> linux) and that doesn't work either. Being able to have MATLAB as an 
>> executable on my desktop would also be grand..
>
> The Matlab binary needs a fair number of environment variables to be set 
> up before execution, so probably the closest you are going to be able to 
> get is to have a shell script marked as executable and double-click on 
> that.

The OP _may_ be able to run the installer (with the appropriate permissions) 
and choose to install no products simply to get to the screen that offers 
the option to create the symbolic links.

Alternately, if they want to create the symbolic links manually (again 
assuming they have the right permissions to put the symlinks somewhere 
accessible) they can use the system command ln:

http://en.wikipedia.org/wiki/Symbolic_link

-- 
Steve Lord
slord@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
To contact Technical Support use the Contact Us link on 
http://www.mathworks.com 

0
Reply Steven_Lord 8/4/2010 5:04:37 PM

iliz110 <imost111@gmail.com> wrote in message <338073707.52786.1280895827182.JavaMail.root@gallium.mathforum.org>...
> Hi,
> 
> I recently installed MATLAB2010 on Ubuntu 9.04. It works great and all, except that for one reason or another the symbolic links never got set up... So now I have to go into the command line, hunt under /name/R2010a/bin and then enter ./matlab in order to start it up.
> 
> It's a real pain-- ideally I would want to be able to type in 
> matlab
> in the command prompt and have it start up! (as it's supposed to..)
> 
> Can anyone help me with setting up the symbolic links after installation? I don't want to go through a reinstall since it takes so long on this laptop...
> 
> Thanks!

I was having the same problem too, and I found this: http://www.mathworks.com/support/solutions/en/data/1-9A6FYK/index.html?solution=1-9A6FYK

Basically, you can run the MATLAB settings again, but without actually installing the files.  To set up the symbolic links, run the following script as the root user:

$MATLAB/install_matlab 

where $MATLAB represents the path to the directory where you have installed MATLAB originally.  Then just follow the prompts, and choose "yes" when  you're asked to create symbolic links to the matlab and mex scripts, etc.  And that should take care of that particular problem.

Now it's on to try and see how to eliminate other errors... :(
0
Reply Jane 12/10/2010 11:32:19 PM

I couldn't find "install_matlab".
I'm using R2010b.

Any other ideas?
0
Reply Royi 12/18/2010 8:49:04 PM

"Royi Avital" wrote in message <iej6o0$ldb$1@fred.mathworks.com>...
> I couldn't find "install_matlab".
> I'm using R2010b.
> 
> Any other ideas?

Someone?
0
Reply Royi 12/24/2010 11:36:04 AM

On 24/12/10 5:36 AM, Royi Avital wrote:
> "Royi Avital" wrote in message <iej6o0$ldb$1@fred.mathworks.com>...
>> I couldn't find "install_matlab".
>> I'm using R2010b.
>>
>> Any other ideas?
>
> Someone?

As this is an installation question, you should contact Mathworks 
Technical Support; there is free help for installation matters, even for 
student editions.
0
Reply Walter 12/24/2010 3:37:27 PM

i'm having the same problem

there is no install_matlab in R2010b, so your beautiful solutions for the previous versions won't work for this specific version. We need to know what to do for this specific version

Walter Roberson <roberson@hushmail.com> wrote in message <X63Ro.63645$wf4.4779@newsfe05.iad>...
> On 24/12/10 5:36 AM, Royi Avital wrote:
> > "Royi Avital" wrote in message <iej6o0$ldb$1@fred.mathworks.com>...
> >> I couldn't find "install_matlab".
> >> I'm using R2010b.
> >>
> >> Any other ideas?
> >
> > Someone?
> 
> As this is an installation question, you should contact Mathworks 
> Technical Support; there is free help for installation matters, even for 
> student editions.
0
Reply Gustavo 1/18/2011 4:01:04 PM

sudo ln -sT /usr/local/MATLAB/R2010b/bin/matlab matlab

should ease our pain for the moment

ps. adapt it to your directory

"Gustavo Ulisses" <gustcomer@gmail.com> wrote in message <ih4dg0$luk$1@fred.mathworks.com>...
> i'm having the same problem
> 
> there is no install_matlab in R2010b, so your beautiful solutions for the previous versions won't work for this specific version. We need to know what to do for this specific version
> 
> Walter Roberson <roberson@hushmail.com> wrote in message <X63Ro.63645$wf4.4779@newsfe05.iad>...
> > On 24/12/10 5:36 AM, Royi Avital wrote:
> > > "Royi Avital" wrote in message <iej6o0$ldb$1@fred.mathworks.com>...
> > >> I couldn't find "install_matlab".
> > >> I'm using R2010b.
> > >>
> > >> Any other ideas?
> > >
> > > Someone?
> > 
> > As this is an installation question, you should contact Mathworks 
> > Technical Support; there is free help for installation matters, even for 
> > student editions.
0
Reply Gustavo 1/18/2011 4:08:04 PM

9 Replies
432 Views

(page loaded in 0.204 seconds)

Similiar Articles:













7/23/2012 3:40:56 PM


Reply: