Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
SVN

Subject: SVN

From: Jessica

Date: 15 May, 2013 18:50:09

Message: 1 of 2

I recently updated to Mountain Lion and am trying to get Matlab to communicate with subversion client (needed for Psych Toolbox). I followed online tips to install Xcode and then install Command Line Tools. However, this still did not fix the problem.

In the terminal, it seems that svn is installed (version 1.6.18). However, Matlab does not seem to detect it. Do I need to manually set my path to where subversion is saved? And if so, how do I find out where that path is?

I am running Matlab 2010a.

Subject: SVN

From: Doug Schwarz

Date: 15 May, 2013 19:35:42

Message: 2 of 2

In article <kn0ld1$nai$1@newscl01ah.mathworks.com>,
 "Jessica " <jyorzinski@ucdavis.edu> wrote:

> I recently updated to Mountain Lion and am trying to get Matlab to
> communicate with subversion client (needed for Psych Toolbox). I followed
> online tips to install Xcode and then install Command Line Tools. However,
> this still did not fix the problem.
>
> In the terminal, it seems that svn is installed (version 1.6.18). However,
> Matlab does not seem to detect it. Do I need to manually set my path to where
> subversion is saved? And if so, how do I find out where that path is?
>
> I am running Matlab 2010a.

In my startup.m file I have this block of code:

% Set unix path.
upath = getenv('PATH');
udirs = regexp(upath,pathsep,'split');
if ~ismember('/opt/subversion/bin',udirs)
    udirs = [{'/opt/subversion/bin'},udirs];
end
if ~ismember('/usr/local/bin',udirs)
    udirs = [udirs,{'/usr/local/bin'}];
end
upath = sprintf(['%s',pathsep],udirs{:});
upath(end) = [];
setenv('PATH',upath)

which adds '/opt/subversion/bin' to the beginning of the unix path, and
'/usr/local/bin' to the end. Make adjustments for your paths as
necessary. (I am using a downloaded version of svn because the version
in /usr/bin does not handle encrypted communications with the
repository.)

Note: this code only changes the unix PATH as seen from MATLAB -- it has
no effect on the PATH environment variable in the Terminal.

--
Doug Schwarz
dmschwarz&ieee,org
Make obvious changes to get real email address.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us