threads / discuss / 35514

Compiling git svn from source

Subject: Compiling git svn from source

## tl;dr

4 messages between Dec 10, 2013 and Dec 10, 2013.

replies: 3people: 3as markdown or json

avinash r· Dec 10, 2013, 13:57 UTC · lore

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· Dec 10, 2013, 19:01 UTC · re: avinash r · lore

Re: Compiling git svn from source

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.
[...]
Show 5 quoted lines
> 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· Dec 10, 2013, 20:24 UTC · re: Jonathan Nieder · lore

Re: Compiling git svn from source

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:
Show 5 quoted lines
> 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· Dec 10, 2013, 22:34 UTC · re: avinash r · lore

Re: Compiling git svn from source

On Wed, Dec 11, 2013 at 01:54:26AM +0530, avinash r wrote:
Show 8 quoted lines
> 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

← back to recent threads