LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-21-2011, 01:33 PM   #1
rmedinac007
LQ Newbie
 
Registered: Oct 2007
Posts: 7

Rep: Reputation: 0
matlab and .bashrc


Hello forum:
I installed matlab in my pc. I want to run it from any directory.
I added this line to my ".bashrc" file:

alias matlab="~/usr/local/MATLAB/R2011b/bin/matlab"


But it does not work.
However it works when I run it form the path where matlab is installed.
Do I need to do it in the root ".bashrc" file?
I am confused. Any help is appreciated.
Thanks

P.S. Also I would like to put the direct access icon to my favorites. Anyone knows how to do it?
 
Old 12-21-2011, 01:42 PM   #2
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,656

Rep: Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233Reputation: 1233
Hello,

I would make a symbolic link to the binary instead; type as root :
Code:
ln -s /home/your_user_name/usr/local/MATLAB/R2011b/bin/matlab usr/bin/matlab
And i suggest you avoid the ~ shortcut anyway in configuration files.

P.S. Do you really have a /usr/local directory in your /home/your_use_name directory ?

Other than that, please indicate which distribution and desktop you use to help answer your P.S.
 
  


Reply

Tags
alias, bashrc, matlab


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installed MATLAB in /home/c/Desktop/MATLAB But Cannot ACCESS it hitmen Linux - Newbie 10 09-25-2011 01:11 PM
.bashrc / .bash_profile /etc/profile /etc/bashrc deadeyes Red Hat 2 02-13-2010 12:22 PM
Matlab Distributed Computing Server: Connecting to Matlab client fails OEP Linux - Server 0 12-21-2009 03:18 PM
Setting path: /etc/profile, /etc/bashrc or ~/.bashrc Swakoo Linux - General 1 08-07-2007 11:59 PM
Terminal cmd for starting Matlab M-file editor without starting matlab fubzot Linux - Software 2 02-15-2005 07:49 AM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration