SVN within MATLAB 2024b

조회 수: 5 (최근 30일)
Anne Arseneau
Anne Arseneau 2024년 12월 13일
답변: Rebecca Nakhoul 2025년 4월 7일
From one of my end users:
When I try to run ‘svn’ from within MATLAB, I get an error:
>> system('/usr/bin/svn --version')
/usr/bin/svn: symbol lookup error: /lib/x86_64-linux-gnu/libsvn_subr-1.so.1: undefined symbol: apr_crypto_block_cleanup
The same command works fine at the command line and works in MATLAB 2023b, so it feels like another example of MATLAB messing with the libraries it’s loading by default. (I already have something else in my LD_PRELOAD environment variable to get the matlab engine for python to work – conveniently, it’s the same trick that fixed the Ghostscript problems we had a while back!)
Any ideas how to address this?

답변 (2개)

Rebecca Nakhoul
Rebecca Nakhoul 2025년 4월 7일
Another workaround is to reload the environment variables stored in the user's Home folder, before executing svn commands. For example, run the following instead:
!env -i HOME="$HOME" svn --version
Related post here.

Kautuk Raj
Kautuk Raj 2024년 12월 18일
I could also not execute SVN commands in the MATLAB command window while using R2024a/b.
As a workaround, I deleted all the binaries containing /usr/local/MATLAB/R20XXx/bin/glnxa64/libapr.so. This location may change based on where MATLAB is installed. Deleting these binaries should compel MATLAB to use the system's SVN rather than its own, thereby eliminating any conflicts between SVN configurations.
  댓글 수: 1
Bastien
Bastien 2025년 2월 18일
I encountered the same issue.
A perhaps more elegant solution for me was to reset the LD_LIBRARY_PATH before executing the svn command:
system("env LD_LIBRARY_PATH='' /usr/bin/svn --version")

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by