NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
zfil
Jul 14, 2008Aspirant
Subversion : some progress
Hello
I've managed to build a working subversion server :
wget http://subversion.tigris.org/downloads/ ... 5.0.tar.gz
wget http://subversion.tigris.org/downloads/ ... 5.0.tar.gz
First untar both previously downloaded tgz.
cd subversion-1.5.0/zlib
./configure && make test && make install
cd ..
./configure --build=sparc-linux --enable-all-static --with-ssl --without-serf --with-zlib=/usr/local
make
make check
make install
56 tests out of 56 must run successfully.
The key is to build static otherwise svn and svnsync command coredump ...
The problem now is that the subversion server is very very slow, it is not a cpu problem, more a networking I think (the cpu is idle).
I'm using svnserve (svnserve -d), it is my usual setup on other platform and I never experienced any slowness (but it wasn't svn 1.5).
I've managed to build a working subversion server :
wget http://subversion.tigris.org/downloads/ ... 5.0.tar.gz
wget http://subversion.tigris.org/downloads/ ... 5.0.tar.gz
First untar both previously downloaded tgz.
cd subversion-1.5.0/zlib
./configure && make test && make install
cd ..
./configure --build=sparc-linux --enable-all-static --with-ssl --without-serf --with-zlib=/usr/local
make
make check
make install
56 tests out of 56 must run successfully.
The key is to build static otherwise svn and svnsync command coredump ...
The problem now is that the subversion server is very very slow, it is not a cpu problem, more a networking I think (the cpu is idle).
I'm using svnserve (svnserve -d), it is my usual setup on other platform and I never experienced any slowness (but it wasn't svn 1.5).
41 Replies
Replies have been turned off for this discussion
- ianadaviesAspirantYeah, I had this problem you have to install dev-libc or somthing , if you go to the how to's on the readynas home page and follow the instructions for setting up a development environment first you will be ok
Also I did not change the dev/urandom and it works fine for me it's not slow at all, I could not get it to work with https though once built i use ssh+svn instead. Let me know if it works with https for you - gromeenAspirantOkay, I've gotten farther, but still error out. These are the steps I've taken:
1. started with a fresh factory default ReadyNAS 1100 (RAIDiator 4.1.3-T136 [1.00a146] in X-RAID)
2. downloaded EnableRootSSH and APT from here
3. installed those .bin files via FrontView, System>Update>Local
4. logged into my ReadyNAS via SSH (putty)
5. apt-get update (see http://www.readynas.com/?p=145 for details - thanks ianadavies)
apt-get install nano
apt-get install libc6-dev
apt-get install gcc
apt-get install gdb
apt-get install libtag1-dev (this one gave me errors)
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libtag1-dev: Depends: libtag1 (= 1.4-2bpo2.netgear1) but 1.4-2bpo2.netgear2 is to be installed
E: Broken packages
apt-get install uuid-dev
6. wget http://subversion.tigris.org/downloads/ ... 5.1.tar.gz
7. wget http://subversion.tigris.org/downloads/ ... 5.1.tar.gz
8. tar xvzf subversion-1.5.1.tar.gz
9. tar xvzf subversion-deps-1.5.1.tar.gz
10. rm *.gz (why keep the tarballs?)
11. cd subversion-1.5.1/zlib/
12. ./configure && make test && make install (this is where I got stuck last time but ianadavies pointed me in the right direction)
13. cd ..
14. ./configure --build=sparc-linux --enable-all-static --with-ssl --without-serf --with-zlib=/usr/local
If I understand correctly, at this point my ReadyNAS started chugging along creating the proper configuration for subversion on my machine.
By the way, one of the status lines I got waschecking for entropy source... /dev/urandom
Does this mean that I don't need to worry about the /dev/random vs /dev/urandom issue mentioned in previous posts?
Eventually, however, the configuration erred out with the following (I've cut and pasted the last dozen lines of the 1000+ output lines):configure: IPv6 support is enabled
checking for working AI_ADDRCONFIG... yes
checking for socklen_t... yes
checking for struct tm.tm_gmtoff... yes
checking for struct tm.__tm_gmtoff... no
configure: zlib not enabled
checking whether to enable ACL support in neon... yes
checking for pkg-config... no
checking for library containing RSA_new... not found
configure: error: could not find library containing RSA_new
configure failed for neon
There were a few other questionable configuration outputs but I'm not sure if they were actually errors or just standard occurrences. I can provide the entire output line dump if necessary.
Does anyone have any insights that might help with this? - ianadaviesAspiranttry
apt-get install libssl-dev ' I think I came accross this issue too.
See if that fixes it, and yes don't worry about the dev/urandom issue unless it becomes an issue once you start using it.
Cheers
Ian - wishyouAspirantI get a problem build apr which is a part of subversion 1.5.4
Anyone have a solution to this problem?
readynas:~/svn-install/subversion-1.5.4$ make
------ making all in apr
make[1]: Entering directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make[2]: Entering directory `/home/XXX/svn-install/subversion-1.5.4/apr'
/bin/sh /home/XXX/svn-install/subversion-1.5.4/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I./include -I/home/XXX/svn-install/subversion-1.5.4/apr/include/arch/unix -I./include/arch/unix -I/home/XXX/svn-install/subversion-1.5.4/apr/include -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
passwd/apr_getpass.c:78: warning: static declaration for `getpass' follows non-static
passwd/apr_getpass.c: In function `getpass':
passwd/apr_getpass.c:81: error: `stderr' undeclared (first use in this function)
passwd/apr_getpass.c:81: error: (Each undeclared identifier is reported only once
passwd/apr_getpass.c:81: error: for each function it appears in.)
passwd/apr_getpass.c:82: error: `stdin' undeclared (first use in this function)
make[2]: *** [passwd/apr_getpass.lo] Error 1
make[2]: Leaving directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make: *** [external-all] Error 1
readynas:~/svn-install/subversion-1.5.4$
The zlib build worked fine so all libs should be in place...
Wish - zfilAspirantHello
I don't understand why it is not working for you ...
I've done the usual stuff :
Download sourceswget http://subversion.tigris.org/downloads/subversion-1.5.4.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.5.4.tar.bz2
Build
First untar both previously downloaded tgz.cd subversion-1.5.4/zlib
./configure && make test && make install
cd ..
./configure --build=sparc-linux --enable-all-static --with-ssl --without-serf --with-zlib=/usr/local --with-devrandom=/dev/urandom
make
make check
56 tests out of 56 must run successfully.make install
And it is working very well :lol:
For the record I use svnserve (svn protocol), this build don't create the apache module but anyway for a NAS I think it is MUCH better to use a svnserve as it lightweight as faster.
Here the configuration steps I've done :
Create svn user and groupecho svn:!:100:102:svn:/c/home/svn:/bin/bash >> /etc/passwd
echo svn:x:102: >> /etc/group
mkdir -p /c/home/svn/repository
chown svn:svn /c/home/svn
Create repositorysu - svn
svnadmin create /c/home/svn/repository
cd repository/conf/
vi passwd svnserve.conf
passwd and svnserve.conf must be configured for the authentication
Add lines to /etc/services like these (if they don't already exist):svn 3690/tcp # Subversion
svn 3690/udp # Subversion
Add this line to /etc/inetd.conf:svn stream tcp nowait svn /usr/local/bin/svnserve svnserve -i -r /c/home/svn/repository
Restart inetdkillall -HUP inetd
- da9lAspirantHi!
Had the exact same problems. I finally made it make after:
Reinstalling APT addon (the latest seems to be dated 2008-10-31) in order to get the most recent and most correct sources.lists file.
Adding all libraries as described in the setting up development environment howto.
Running:
apt-get install python (the tests depends on python)
apt-get install coreutils (some stuff in configure is dependent on the uniq command)
apt-get install libtool (Might have something to do with our problem below)
Make sure that you do ./configure with all options again.
Regards, da9l.wishyou wrote: I get a problem build apr which is a part of subversion 1.5.4
Anyone have a solution to this problem?
readynas:~/svn-install/subversion-1.5.4$ make
------ making all in apr
make[1]: Entering directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make[2]: Entering directory `/home/XXX/svn-install/subversion-1.5.4/apr'
/bin/sh /home/XXX/svn-install/subversion-1.5.4/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I./include -I/home/XXX/svn-install/subversion-1.5.4/apr/include/arch/unix -I./include/arch/unix -I/home/XXX/svn-install/subversion-1.5.4/apr/include -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
passwd/apr_getpass.c:78: warning: static declaration for `getpass' follows non-static
passwd/apr_getpass.c: In function `getpass':
passwd/apr_getpass.c:81: error: `stderr' undeclared (first use in this function)
passwd/apr_getpass.c:81: error: (Each undeclared identifier is reported only once
passwd/apr_getpass.c:81: error: for each function it appears in.)
passwd/apr_getpass.c:82: error: `stdin' undeclared (first use in this function)
make[2]: *** [passwd/apr_getpass.lo] Error 1
make[2]: Leaving directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/XXX/svn-install/subversion-1.5.4/apr'
make: *** [external-all] Error 1
readynas:~/svn-install/subversion-1.5.4$
The zlib build worked fine so all libs should be in place...
Wish - stevepiercyAspirant
zfil wrote: For the record I use svnserve (svn protocol), this build don't create the apache module but anyway for a NAS I think it is MUCH better to use a svnserve as it lightweight as faster.
Here the configuration steps I've done :
Create svn user and groupecho svn:!:100:102:svn:/c/home/svn:/bin/bash >> /etc/passwd
This step fails for me:# echo svn:!:100:102:svn:/c/home/svn:/bin/bash >> /etc/passwd
-bash: :100: bad word specifier
Does that mean the numeric userid is not valid?
What do I need to do instead to set up a user named 'svn'?
Thank you! - zfilAspirantNo it is
da9l wrote: Does that mean the numeric userid is not valid?
What do I need to do instead to set up a user named 'svn'?
It is because ! in shell is used to lookup history command.
So with proper escaping that's give :echo svn:\!:100:102:svn:/c/home/svn:/bin/bash >> /etc/passwd
Sorry for that - stevepiercyAspirantThank you, zfil. That got me a few steps closer.
But now this command fails:$ svnadmin create /c/home/svn/repository
svnadmin: Repository creation failed
svnadmin: Creating lock dir
svnadmin: Can't create directory '/c/home/svn/repository/locks': Permission denied
I'd greatly appreciate any further assistance. Thank you! - zfilAspirantIt's a permission problem.
As root try a :chown -R svn:svn /c/home/svn
Then make sure to su - svn first :# su - svn
svn ~$ id
uid=100(svn) gid=102(svn) groups=102(svn)
svn ~$ pwd
/c/home/svn
svn ~$ ls -la
total 64
drwxr-xr-x 3 svn svn 16384 2008-11-09 18:23 .
drwxr-xr-x 5 admin admin 16384 2008-11-09 18:07 ..
-rw------- 1 svn svn 185 2008-12-07 15:27 .bash_history
drwxr-xr-x 6 svn svn 16384 2008-11-09 18:19 repository
svn ~$ svnadmin create /c/home/svn/repository
Then the svn create should work fine :)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!