# MATLAB install error

**URL:** <https://psychtoolbox.discourse.group/t/matlab-install-error/3289>\
**Category:** Programming Help\
**Created:** [July 9, 2020, 12:21pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289 "2020-07-09T12:21:13Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![PinkInk22](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@PinkInk22](https://psychtoolbox.discourse.group/u/PinkInk22)\
**Post date:** [July 9, 2020, 12:21pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/1 "2020-07-09T12:21:14Z")

</div>

Hello I am currently on MACOS Catalina running MATLABR2020\_a I am currently trying to install psychotoolbox into MATLAB but I keep on receiving the error messages below:  
svn: error: The subversion command line tools are no longer provided by Xcode.  
Sorry, the download command “CHECKOUT” failed with error code 72:  
svn: error: The subversion command line tools are no longer provided by Xcode.  
However I have installed subversion and do have svn under /usr/bin/. In the terminal I am able to run svn help and print a list of commands so I am a bit stuck. Hope someone can help me out thank you

---

<div class="post-metadata">

**Author:** ![mcwilson844](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@mcwilson844](https://psychtoolbox.discourse.group/u/mcwilson844)\
**Post date:** [July 9, 2020, 5:02pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/2 "2020-07-09T17:02:40Z")

</div>

Hello! I have been struggling with this same error for a few days and found a solution that works for me.

In addition to downloading/installing Subversion, I needed to download XCode from the AppStore: [https://apps.apple.com/us/app/xcode/id497799835](https://apps.apple.com/us/app/xcode/id497799835). You don’t need to actually use it, just download and open the application once to make sure it is installed. I read a few articles that implied that XCode/Subversion would already be installed on new Macbooks running Catalina, but that didn’t appear to be the case on my own.

For good measure, I also added the folder where Subversion was installed to my MATLAB path, as suggested by the Psychtoolbox download problems section: [http://psychtoolbox.org/download.html#download-problems](http://psychtoolbox.org/download.html#download-problems).

With those things in place, I ran DownloadPsychtoolbox and it worked fine. Found the correct location for my Subversion client with no checkout errors.

Hope this helps for you as well.

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [July 9, 2020, 8:08pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/3 "2020-07-09T20:08:13Z")

</div>

Apparently the iToy company was again hard at work to reward their users with a even more broken experience in exchange for lots of money 😕 - Must have taken them a few extra engineering hours to break a previously working XCode svn setup, but they really go the extra mile for their customers…

If svn works in a terminal window, does “which svn” report the same path for the working svn executable as the one that DownloadPsychtoolbox reports as being used? That would be most peculiar. As @mcwilson844 pointed out, our troubleshooting tips tell you how to specify the path to the proper executable, should there be multiple ones installed. Also the same section describes how to do a manual download and setup as zip file. More disk space used, and you lose the advantages of version control, but a quick workaround.

---

<div class="post-metadata">

**Author:** ![PinkInk22](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@PinkInk22](https://psychtoolbox.discourse.group/u/PinkInk22)\
**Post date:** [July 10, 2020, 12:09pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/4 "2020-07-10T12:09:27Z")

</div>

I ended up having to manually download psychtoolbox because I already had xcode installed along with subversion and I added the folder to the path for MATLAB The psychotoolbox ended up installing but MATLAB still does not recognize svn commands which is annoying but I’m not positive how much I will need them from here on out I am not too familiar with MATLAB and just trying to set up a github repo program.

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [July 10, 2020, 8:20pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/5 "2020-07-10T20:20:21Z")

</div>

Please provide the info i requested. Even if you managed to solve your problem, although i can’t quite follow what folder you did add to the Matlab path, it helps to fix this more properly in the future for the benefit of others who may run into the same problem.

Thanks.

---

<div class="post-metadata">

**Author:** ![Ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Ben](https://psychtoolbox.discourse.group/u/Ben)\
**Post date:** [April 15, 2021, 2:59pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/6 "2021-04-15T14:59:29Z")

</div>

Had the same issue. The following procedure solved the issue for me (as per [macos - Mac command line tools 11.4 no longer has svn - Stack Overflow](https://stackoverflow.com/questions/60869347/mac-command-line-tools-11-4-no-longer-has-svn)):

→ In Terminal: _brew install svn_ (installing stand-alone version of SVN)

→ followed by _sudo mkdir -p /Library/Java/Extensions_ and _ln -s /usr/local/lib/libsvnjavahl-1.dylib /Library/Java/Extensions/libsvn_ as recommended (not sure whether these two were needed)

→ In MATLAB: _addpath(genpath(’/usr/local/opt/subversion/’))_ (which was the path indicated by the installation routine in Terminal; otherwise PTB still tried to use the old path)

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [April 15, 2021, 8:53pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/7 "2021-04-15T20:53:49Z")

</div>

Our current `DownloadPsychtoolbox` downloader from our website should deal with this stuff automatically, using Matlab’s builtin svn client, or falling back to svn, and doing a `brew install svn` automatically if needed, and permission is given by the user.

-mario

---

<div class="post-metadata">

**Author:** ![Ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Ben](https://psychtoolbox.discourse.group/u/Ben)\
**Post date:** [April 15, 2021, 9:07pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/8 "2021-04-15T21:07:15Z")

</div>

Thanks, that’s good to know and excellent service!

I should have clarified I came across the issue using UpdatePsychtoolbox (which implies my PTB version was somewhat outdated). So the fix may only be relevant for people as lazy as me about their updates 😉

---

<div class="post-metadata">

**Author:** ![mariokleiner](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@mariokleiner](https://psychtoolbox.discourse.group/u/mariokleiner)\
**Post date:** [April 16, 2021, 3:42pm UTC](https://psychtoolbox.discourse.group/t/matlab-install-error/3289/9 "2021-04-16T15:42:06Z")

</div>

`UpdatePsychtoolbox` had to update itself before gaining that new capability for future use, chicken & egg problem…

-mario
