Subversion core on a sharedhosting
I've signed up for a shared hosting plan in bluehost and tried installing a subversion by following this instruction: bluehost forum svn install script all goes well at first even tried svnadmin create project_name
and was a success but then when I traverse to project_name
I got this error "svn: '.' is not a working copy
" when I run svn info
.
I think I may have encountered an error on the compilation process, can't remember exactly but i think it has something to do with a ".so" file when I run the make && make install
command , something about permission.
UPDATE:
Re-run 开发者_运维百科the install again and received this compile error:
cp .libs/mod_dav_svn.soT /usr/lib64/httpd/modules/mod_dav_svn.so
cp: cannot create regular file `/usr/lib64/httpd/modules/mod_dav_svn.so': Read-only file system
apxs:Error: Command failed with rc=65536
.
make: *** [install-mods-shared] Error 1
Any help or suggestion is very much appreciated. Thanks!
when creating files/users or executing commands use su, sudo or the like for your distro to do so ad root.
Edit: Also, most shared host do not allow custom apache extensions.
Try this.
cd ~
mkdir src
cd ~/src
wget http://www.gtlib.gatech.edu/pub/apache/apr/apr-util-1.2.12.tar.gz
wget http://www.gtlib.gatech.edu/pub/apache/apr/apr-1.2.12.tar.gz
wget http://subversion.tigris.org/downloads/subversion-1.4.6.tar.gz
wget http://www.webdav.org/neon/neon-0.28.0.tar.gz
tar -xzf apr-util-1.2.12.tar.gz
tar -xzf apr-1.2.12.tar.gz
tar -xzf subversion-1.4.6.tar.gz
tar -xzf neon-0.28.0.tar.gz
cd ~/src/apr-1.2.12
./configure --prefix=$HOME LDFLAGS="-L/lib64"
make
make install
cd ~/src/apr-util-1.2.12
./configure --prefix=$HOME --with-apr=$HOME LDFLAGS="-L/lib64"
make
make install
cd ~/src/neon-0.28.0
./configure --enable-shared --prefix=$HOME LDFLAGS="-L/lib64"
make
make install
cd ~/src/subversion-1.4.6
./configure --prefix=$HOME --without-berkeley-db --with-zlib --with-ssl LDFLAGS="-L/lib64"
make
make install
Compliments of Blue Host Forum
finally solved it :D I rerun the script with the –-without-apxs
option
so to modify it from this find, here's the new script:
./configure --prefix=$HOME –-without-apxs --without-berkeley-db --with-ssl LDFLAGS="-L/lib64" make && makeinstall
精彩评论