# Centos7 compiling git

2 messages from 2019-06-06 to 2019-06-07. Participants: Andres Llopis, brian m. carlson.
Thread: https://gitlist.dev/t/51250

## Andres Llopis, 2019-06-06 14:34

Subject: Centos7 compiling git
Message-ID: <_d10F4jbR7a1KdFnFMJF5IkXQ5YxZdCttXeYWn87WkJ3GwHgAgJ4M9KSedHDliZTv9Xt4EDTrWV1YxiHoosF_lqSY_6p8aV563WdG5qMhd4=@protonmail.com>
URL: https://gitlist.dev/e/_d10F4jbR7a1KdFnFMJF5IkXQ5YxZdCttXeYWn87WkJ3GwHgAgJ4M9KSedHDliZTv9Xt4EDTrWV1YxiHoosF_lqSY_6p8aV563WdG5qMhd4%3D%40protonmail.com

```
Hello,

I have a problem in my centos 7 machine. I am compiling git 2.18 from source. When I use git svn  it works fine with the subversion that comes with the system. However, if I have a different subversion in my path:

PATH=/home/tools/sw/subversion/svn-1.8.8/rhel7-x86_64/bin:$PATH
LD_LIBRARY_PATH=/home/tools/sw/subversion/svn-1.8.8/rhel7-x86_64/lib:$LD_LIBRARY_PATH
then I get the following error:

    Can't load '/usr/lib64/perl5/vendor_perl/auto/SVN/_Core/_Core.so' for module SVN::_Core: /usr/lib64/perl5/vendor_perl/auto/SVN/_Core/_Core.so: undefined symbol: svn_uri__is_child at /usr/lib64/perl5/DynaLoader.pm line 190.
     at /usr/lib64/perl5/vendor_perl/SVN/Base.pm line 59.
    BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/SVN/Core.pm line 5.
    Compilation failed in require at /home/machine/.local/share/perl5/Git/SVN/Utils.pm line 6.
    BEGIN failed--compilation aborted at /home/machine/.local/share/perl5/Git/SVN/Utils.pm line 6.
    Compilation failed in require at /home/machine/.local/share/perl5/Git/SVN.pm line 32.
    BEGIN failed--compilation aborted at /home/machine/.local/share/perl5/Git/SVN.pm line 32.
    Compilation failed in require at /home/machine/.local/libexec/git-core/git-svn line 22.
    BEGIN failed--compilation aborted at /home/machine/.local/libexec/git-core/git-svn line 22.

Please help, thanks a lot!







```

## brian m. carlson, 2019-06-07 10:25

Subject: Re: Centos7 compiling git
Message-ID: <20190607102505.GV8616@genre.crustytoothpaste.net>
URL: https://gitlist.dev/e/20190607102505.GV8616%40genre.crustytoothpaste.net
In-Reply-To: <_d10F4jbR7a1KdFnFMJF5IkXQ5YxZdCttXeYWn87WkJ3GwHgAgJ4M9KSedHDliZTv9Xt4EDTrWV1YxiHoosF_lqSY_6p8aV563WdG5qMhd4=@protonmail.com>

```
On 2019-06-06 at 14:34:13, Andres Llopis wrote:
> Hello,
> 
> I have a problem in my centos 7 machine. I am compiling git 2.18 from source. When I use git svn  it works fine with the subversion that comes with the system. However, if I have a different subversion in my path:
> 
> PATH=/home/tools/sw/subversion/svn-1.8.8/rhel7-x86_64/bin:$PATH
> LD_LIBRARY_PATH=/home/tools/sw/subversion/svn-1.8.8/rhel7-x86_64/lib:$LD_LIBRARY_PATH
> then I get the following error:
> 
>     Can't load '/usr/lib64/perl5/vendor_perl/auto/SVN/_Core/_Core.so' for module SVN::_Core: /usr/lib64/perl5/vendor_perl/auto/SVN/_Core/_Core.so: undefined symbol: svn_uri__is_child at /usr/lib64/perl5/DynaLoader.pm line 190.
>      at /usr/lib64/perl5/vendor_perl/SVN/Base.pm line 59.
>     BEGIN failed--compilation aborted at /usr/lib64/perl5/vendor_perl/SVN/Core.pm line 5.
>     Compilation failed in require at /home/machine/.local/share/perl5/Git/SVN/Utils.pm line 6.
>     BEGIN failed--compilation aborted at /home/machine/.local/share/perl5/Git/SVN/Utils.pm line 6.
>     Compilation failed in require at /home/machine/.local/share/perl5/Git/SVN.pm line 32.
>     BEGIN failed--compilation aborted at /home/machine/.local/share/perl5/Git/SVN.pm line 32.
>     Compilation failed in require at /home/machine/.local/libexec/git-core/git-svn line 22.
>     BEGIN failed--compilation aborted at /home/machine/.local/libexec/git-core/git-svn line 22.
> 
> Please help, thanks a lot!

It looks like you're using the system-provided Subversion Perl modules
instead of building your own. In general, this isn't going to work,
because those modules depend on internal features of the library.

You'd need to build appropriate Perl modules as part of the Subversion
build process and either install them in a suitable location for Git or
set PERL5LIB to point to the right set of modules.
-- 
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204

```
