git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Compiling git svn from source
@ 2013-12-10 13:57 avinash r
  2013-12-10 19:01 ` Jonathan Nieder
  0 siblings, 1 reply; 4+ messages in thread
From: avinash r @ 2013-12-10 13:57 UTC (permalink / raw)
  To: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling git svn from source
  2013-12-10 13:57 Compiling git svn from source avinash r
@ 2013-12-10 19:01 ` Jonathan Nieder
  2013-12-10 20:24   ` avinash r
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Nieder @ 2013-12-10 19:01 UTC (permalink / raw)
  To: avinash r; +Cc: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling git svn from source
  2013-12-10 19:01 ` Jonathan Nieder
@ 2013-12-10 20:24   ` avinash r
  2013-12-10 22:34     ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: avinash r @ 2013-12-10 20:24 UTC (permalink / raw)
  To: Jonathan Nieder; +Cc: git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Compiling git svn from source
  2013-12-10 20:24   ` avinash r
@ 2013-12-10 22:34     ` Jeff King
  0 siblings, 0 replies; 4+ messages in thread
From: Jeff King @ 2013-12-10 22:34 UTC (permalink / raw)
  To: avinash r; +Cc: Jonathan Nieder, git@vger.kernel.org

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-10 22:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-10 13:57 Compiling git svn from source avinash r
2013-12-10 19:01 ` Jonathan Nieder
2013-12-10 20:24   ` avinash r
2013-12-10 22:34     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).