# Compiling git svn from source

4 messages from 2013-12-10 to 2013-12-10. Participants: avinash r, Jonathan Nieder, Jeff King.
Thread: https://gitlist.dev/t/35514

## avinash r, 2013-12-10 13:57

Subject: Compiling git svn from source
Message-ID: <CAHCisteVsy4_GX_1PNZfO44w1WmW28vAY0PBfwo9CL_Ze8fw2A@mail.gmail.com>
URL: https://gitlist.dev/e/CAHCisteVsy4_GX_1PNZfO44w1WmW28vAY0PBfwo9CL_Ze8fw2A%40mail.gmail.com

```
Hi,
I'm compiling git from source due to outdated binaries in
Linux-flavour 'X'. I followed the installation instructions at
git-scm.com, but somehow the sub-command svn (git svn) is not being
installed.

How us it that I would be able to install it from source?

I have Googled for this,  and the top result suggests to ask here.

Here is how i'm compiling:

$ make all

$ sudo make install

I'm hoping that I'm in the right place.

Thank you,
Avinash R

```

## Jonathan Nieder, 2013-12-10 19:01

Subject: Re: Compiling git svn from source
Message-ID: <20131210190129.GD2311@google.com>
URL: https://gitlist.dev/e/20131210190129.GD2311%40google.com
In-Reply-To: <CAHCisteVsy4_GX_1PNZfO44w1WmW28vAY0PBfwo9CL_Ze8fw2A@mail.gmail.com>

```
Hi,

avinash r wrote:

>                    I followed the installation instructions at
> git-scm.com, but somehow the sub-command svn (git svn) is not being
> installed.
[...]
> Here is how i'm compiling:
>
> $ make all
>
> $ sudo make install

What is the content of "config.mak"?  Is there a file named
"config.mak.autogen"?  What is the output of "git help -a | grep svn"?

Curious,
Jonathan

```

## avinash r, 2013-12-10 20:24

Subject: Re: Compiling git svn from source
Message-ID: <CAHCistfcBt0oOz=whsrifSB3M6cN8Bk=UHOq-G_+EYOHhrXjkw@mail.gmail.com>
URL: https://gitlist.dev/e/CAHCistfcBt0oOz%3DwhsrifSB3M6cN8Bk%3DUHOq-G_%2BEYOHhrXjkw%40mail.gmail.com
In-Reply-To: <20131210190129.GD2311@google.com>

```
Hi Jonathan,

I managed to get `git svn` installed using old school commands
executed before the commands I mentioned.

$ make configure
$ ./configure

I wrote before:
> $ make all
>
> $ sudo make install

thanks for asking about the config.

Jonathan Nieder wrote:
> What is the content of "config.mak"?  Is there a file named
> "config.mak.autogen"?  What is the output of "git help -a | grep svn"?
>
> Curious,
> Jonathan

but running the command,

$ git svn init --username=<username> http://mydomain.com/myrepo causes
the command to fail with the following error:

Can't locate SVN/Core.pm in @INC (@INC contains:
/usr/local/share/perl/5.14.2 /etc/perl /usr/local/lib/perl/5.14.2
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14
/usr/share/perl/5.14 /usr/local/lib/site_perl .) at
/usr/local/share/perl/5.14.2/Git/SVN/Utils.pm line 6.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.14.2/Git/SVN/Utils.pm line 6.
Compilation failed in require at
/usr/local/share/perl/5.14.2/Git/SVN.pm line 33.
BEGIN failed--compilation aborted at
/usr/local/share/perl/5.14.2/Git/SVN.pm line 33.
Compilation failed in require at /usr/local/libexec/git-core/git-svn line 25.
BEGIN failed--compilation aborted at
/usr/local/libexec/git-core/git-svn line 25.

I'm using the version 1.8.5.1.

--
Avinash R

```

## Jeff King, 2013-12-10 22:34

Subject: Re: Compiling git svn from source
Message-ID: <20131210223456.GA7643@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20131210223456.GA7643%40sigill.intra.peff.net
In-Reply-To: <CAHCistfcBt0oOz=whsrifSB3M6cN8Bk=UHOq-G_+EYOHhrXjkw@mail.gmail.com>

```
On Wed, Dec 11, 2013 at 01:54:26AM +0530, avinash r wrote:

> but running the command,
> 
> $ git svn init --username=<username> http://mydomain.com/myrepo causes
> the command to fail with the following error:
> 
> Can't locate SVN/Core.pm in @INC (@INC contains:
> /usr/local/share/perl/5.14.2 /etc/perl /usr/local/lib/perl/5.14.2
> [...]

git-svn relies on having subversion's own perl libraries installed by
the system. If you are on a debian/ubuntu-based system, "apt-get install
libsvn-perl" should do it; I don't know the package-name offhand for
other systems.

-Peff

```
