You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Praveen kumar Dayanithi <pr...@hotmail.com> on 2007/03/18 18:38:57 UTC

svn as webmaintanance tool

Hi all,
      I was trying to use Subversion as webmaintance tool for a live website. Let me exaplain the setup i have.... I have a repository on a unix box and also have the live website folder in same box. 
      Now i m just trying to run a cgi-script which actually has "svn update" command to update the working copy(live website folder).
The script looks like this, 
 
#!/bin/bash# get today.s dateOUTPUT="$(date)"# You must add following two lines before# outputting data to the web browser from shell# scriptecho "Content-type: text/html"echo ""echo "<html><head><title>Demo</title></head><body>"echo "Today is $OUTPUT <br>"echo "Current directory is $(pwd) <br>"echo "Shell Script name is $0"
cd /home/classes/pdayan/eese/eese/TestWebsvn update 
echo "</body></html>"
 
Here /home/classes/pdayan/eese/eese/TestWeb is the working copy or live website folder path. I made this script executable also.
When i run the script manually at the $ prompt it runs fine but if run cgi-script from browser it says the following error.
 
ld.so.1: svn: fatal: libssl.so.0.9.7: open failed: No such file or directory
can you help me please?
 
 
Thanks in advance,Praveen Dayanithi
_________________________________________________________________
Live Search Maps – find all the local information you need, right when you need it.
http://maps.live.com/?icid=wlmtag2&FOR M=MGAC01

Re: svn as webmaintanance tool

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Mar 18, 2007, at 13:38, Praveen kumar Dayanithi wrote:

>       I was trying to use Subversion as webmaintance tool for a  
> live website. Let me exaplain the setup i have.... I have a  
> repository on a unix box and also have the live website folder in  
> same box.
>       Now i m just trying to run a cgi-script which actually has  
> "svn update" command to update the working copy(live website folder).
>
> The script looks like this,
>
> #!/bin/bash
> # get today.s date
> OUTPUT="$(date)"
> # You must add following two lines before
> # outputting data to the web browser from shell
> # script
> echo "Content-type: text/html"
> echo ""
> echo "<html><head><title>Demo</title></head><body>"
> echo "Today is $OUTPUT <br>"
> echo "Current directory is $(pwd) <br>"
> echo "Shell Script name is $0"
> cd /home/classes/pdayan/eese/eese/TestWeb
> svn update
> echo "</body></html>"
>
> Here /home/classes/pdayan/eese/eese/TestWeb is the working copy or  
> live website folder path. I made this script executable also.
> When i run the script manually at the $ prompt it runs fine but if  
> run cgi-script from browser it says the following error.
>
> ld.so.1: svn: fatal: libssl.so.0.9.7: open failed: No such file or  
> directory
> can you help me please?

Where is libssl.so.0.9.7? Why can it be found when running the script  
at the prompt but not through the web server? Do you maybe have an  
environment variable like LD_LIBRARY_PATH defined, and your software  
requires that to be set? If so, you should recompile your Subversion  
and dependencies so that LD_LIBRARY_PATH is not required. If that's  
not possible, then define LD_LIBRARY_PATH to the appropriate value in  
the CGI before trying to call svn.


-- 

To reply to the mailing list, please use your mailer's Reply To All  
function


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