You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Giulio Troccoli <Gi...@uk.linedata.com> on 2007/10/08 10:55:41 UTC

svn_load_dirs.pl error

I am trying to use the svn_load_dirs.pl script. I have downloaded id
from the subversion website and chmod 744 it.

When I do

./svn_load_dirs.pl <URL to branch> . <temp dir>

I get

./svn_load_dirs.pl: ./svn_load_dirs.pl: cannot execute binary file

What's wrong?
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn_load_dirs.pl error

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 9, 2007, at 02:37, Giulio Troccoli wrote:

>>> I am trying to use the svn_load_dirs.pl script. I have downloaded id
>>> from the subversion website and chmod 744 it.
>>>
>>> When I do
>>>
>>> ./svn_load_dirs.pl <URL to branch> . <temp dir>
>>>
>>> I get
>>>
>>> ./svn_load_dirs.pl: ./svn_load_dirs.pl: cannot execute binary file
>>>
>>> What's wrong?
>>
>> If you downloaded svn_load_dirs.pl.in from the Subversion repository,
>> then you should replace "@SVN_BINDIR@" with the directory where
>> Subversion is installed on your system, and save the file as
>> svn_load_dirs.pl.
>>
>> The first line of the script is "#!/usr/bin/perl -w" which means if
>> you give svn_load_dirs.pl the execute bit (as you've done with your
>> chmod command) and try to run it, it will try to run /usr/bin/perl.
>> Does perl exist and work on your system?
>>
>> What is your OS? What version of Subversion?
>
> Thanks for your answer. I have replaced @SVN_BINDIR@ with the proper
> directory (/usr/bin/ in my case) but I still have the same problem.  
> Perl
> is installed and working. What does the -w mean? I don't know anything
> about perl sorry.
>
> ln1sub01 svn> perl -v
>
> This is perl, v5.8.5 built for i386-linux-thread-multi
>
> ln1sub01 svn> svn --version
> svn, version 1.4.4 (r25188)
>    compiled Jun 30 2007, 10:31:29
>
> ln1sub01 svn> uname -a
> Linux xxxxx.xxxxx.xxxxx 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5  
> 17:13:01 EST
> 2006 i686 i686 i386 GNU/Linux

According to "man perl", "-w" turns on warnings.

This is not really a Subversion problem at this point. Googling that  
error message, I see suggestions like these:

http://lists.terrasoftsolutions.com/pipermail/yellowdog-general/2002- 
August/003788.html

Off the top of my head: does the file perhaps have the wrong line  
endings? Like, DOS line endings when it should have LF line endings?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: svn_load_dirs.pl error

Posted by Giulio Troccoli <Gi...@uk.linedata.com>.
> 
 
 
Linedata Services (UK) Ltd
Registered Office: Bishopsgate Court, 4-12 Norton Folgate, London, E1 6DB
Registered in England and Wales No 3027851     VAT Reg No 778499447
 
-----Original Message-----
 

> From: Ryan Schmidt [mailto:subversion-2007b@ryandesign.com]
> Sent: 08 October 2007 19:38
> To: Giulio Troccoli
> Cc: users@subversion.tigris.org
> Subject: Re: svn_load_dirs.pl error
> 
> On Oct 8, 2007, at 05:55, Giulio Troccoli wrote:
> 
> > I am trying to use the svn_load_dirs.pl script. I have downloaded id
> > from the subversion website and chmod 744 it.
> >
> > When I do
> >
> > ./svn_load_dirs.pl <URL to branch> . <temp dir>
> >
> > I get
> >
> > ./svn_load_dirs.pl: ./svn_load_dirs.pl: cannot execute binary file
> >
> > What's wrong?
> 
> If you downloaded svn_load_dirs.pl.in from the Subversion repository,
> then you should replace "@SVN_BINDIR@" with the directory where
> Subversion is installed on your system, and save the file as
> svn_load_dirs.pl.
> 
> The first line of the script is "#!/usr/bin/perl -w" which means if
> you give svn_load_dirs.pl the execute bit (as you've done with your
> chmod command) and try to run it, it will try to run /usr/bin/perl.
> Does perl exist and work on your system?
> 
> What is your OS? What version of Subversion?
> 

Ryan,

Thanks for your answer. I have replaced @SVN_BINDIR@ with the proper
directory (/usr/bin/ in my case) but I still have the same problem. Perl
is installed and working. What does the -w mean? I don't know anything
about perl sorry.

ln1sub01 svn> perl -v

This is perl, v5.8.5 built for i386-linux-thread-multi

ln1sub01 svn> svn --version
svn, version 1.4.4 (r25188)
   compiled Jun 30 2007, 10:31:29

ln1sub01 svn> uname -a
Linux xxxxx.xxxxx.xxxxx 2.6.9-22.0.2.ELsmp #1 SMP Thu Jan 5 17:13:01 EST
2006 i686 i686 i386 GNU/Linux

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn_load_dirs.pl error

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Oct 8, 2007, at 05:55, Giulio Troccoli wrote:

> I am trying to use the svn_load_dirs.pl script. I have downloaded id
> from the subversion website and chmod 744 it.
>
> When I do
>
> ./svn_load_dirs.pl <URL to branch> . <temp dir>
>
> I get
>
> ./svn_load_dirs.pl: ./svn_load_dirs.pl: cannot execute binary file
>
> What's wrong?

If you downloaded svn_load_dirs.pl.in from the Subversion repository,  
then you should replace "@SVN_BINDIR@" with the directory where  
Subversion is installed on your system, and save the file as  
svn_load_dirs.pl.

The first line of the script is "#!/usr/bin/perl -w" which means if  
you give svn_load_dirs.pl the execute bit (as you've done with your  
chmod command) and try to run it, it will try to run /usr/bin/perl.  
Does perl exist and work on your system?

What is your OS? What version of Subversion?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org