× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Request help installing Subversion on ReadyNas Duo

RydForLyf
Tutor

Request help installing Subversion on ReadyNas Duo

I really need to get Subversion set up on my Duo, so my first question is, can this be done? Which process should I use? I have unsuccessfully tried both the Hosting Subversion service on the ReadyNAS How-To on Readynas.com and "HOWTO: Installing Subversion on ReadyNas NV+" posted here: http://www.readynas.com/forum/viewtopic.php?f=35&t=27249&hilit=svn

I have tried both methods using firmware versions 4.14 and 4.15 with clean factory resets, so the Duo is as virgin as possible with each attempt. In short, my process has been:

Restore Factory defaults.
Install APT add-on
Enable root ssh
Set up the development environment with:
# apt-get update
# apt-get install libc6-dev
# apt-get install gcc
# apt-get install gdb
# apt-get install libtag1-dev
# apt-get install uuid-dev


Download and extract Subversion 1.6.0
Then attempt to set up Subversion with:
# apt-get install autoconf libtool
# apt-get install libapr1-dev
# apt-get install libaprutil1-dev
# apt-get install sqlite
# apt-get install zlib1g-dev
# apt-get install libdb4.2-dev
# apt-get install nano
# apt-get clean


In my latest attempt on a clean 4.1.4 install, I run into a dependency problem when attempting to install libaprutil1-dev:
Hercules:/svn/compile# apt-get install libaprutil1-dev
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:
libaprutil1-dev: Depends: libsqlite3-dev but it is not going to be installed
E: Broken packages


If I attempt to install libsqlite3-dev I receive the following:
Hercules:/svn/compile# apt-get install libsqlite3-dev
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:
libsqlite3-dev: Depends: libsqlite3-0 (= 3.5.9-6.netgear1) but 3.4.2-1.netgear1 is to be installed
E: Broken packages


Any suggestions?

Thanks,

Chuck
Message 1 of 8
RydForLyf
Tutor

Re: Request help installing Subversion on ReadyNas Duo

By-The-Book Installation i.e. (RTFM)

Section II.B Building the Latest Source Under Unix states to run autogen to check for all dependencies:
Start the process by running "autogen.sh":

$ sh ./autogen.sh

This script will make sure you have all the necessary components
available to build Subversion. If any are missing, you will be
told where to get them from. (See the 'Build Requirements' in
section I.)

Note: if the command "autoconf" on your machine does not run
autoconf 2.58 or later, but you do have a new enough autoconf
available, then you can specify the correct one with the
AUTOCONF variable. (The AUTOHEADER variable is similar.) This
may be required on Debian GNU/Linux, where "autoconf" is
actually a Perl script that attempts to guess which version is
required -- because of the interaction between Subversion's and
APR's configuration systems, the Perl script may get it wrong.
So for example, you might need to do:

$ AUTOCONF=autoconf2.58 sh ./autogen.sh


When I run autogen, this is my result:
# sh ./autogen.sh
buildcheck: checking installation...
buildcheck: autoconf version 2.59 (ok)
buildcheck: autoheader not found.
You need autoheader version 2.50 or newer installed.


... so I attempt to find out what version of autoheader I'm using...
# autoheader -V
Can't locate File/Compare.pm in @INC (@INC contains: /usr/share/autoconf /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
Compilation failed in require at /usr/bin/autoheader line 45.
BEGIN failed--compilation aborted at /usr/bin/autoheader line 45.


OK, so now I'm stuck. I haven't been able to find a way to install autoheader to get past this stumbling block. All of the documentation I've found on autoheader gives me commands, but no way to get a new version, or just a missing Compare.pm file.

Any ideas?

As a side note, I also tried compiling what I have so far. The output was sent to a file, but this is what was echoed to the screen....
# ./configure --build=sparc-linux > configure.out
/svn/compile/subversion-1.6.2/apr/configure: line 11075: uniq: command not found
/svn/compile/subversion-1.6.2/apr/configure: line 48161: uniq: command not found
/svn/compile/subversion-1.6.2/apr-util/xml/expat/configure: line 5926: uniq: command not found
/svn/compile/subversion-1.6.2/apr-util/xml/expat/configure: line 22519: uniq: command not found
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: WARNING: lib/Makefile.in seems to ignore the --datarootdir setting
/svn/compile/subversion-1.6.2/apr-util/configure: line 47953: uniq: command not found
/svn/compile/subversion-1.6.2/neon/configure: line 5765: uniq: command not found
/svn/compile/subversion-1.6.2/neon/configure: line 33854: uniq: command not found
configure: error: We require OpenSSL; try --with-openssl


The last bits in the output file are ...
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking openssl/opensslv.h usability... no
checking openssl/opensslv.h presence... no
checking for openssl/opensslv.h... no


It looks like I have multiple problems in multiple places. Any suggestions on how to get past these problems so I can get onto the next set of problems?

Thanks,

Chuck
Message 2 of 8
Jogilein
Aspirant

Re: Request help installing Subversion on ReadyNas Duo

I have the exact same problem... anyone can help?!?
Message 3 of 8
super_poussin
Virtuoso

Re: Request help installing Subversion on ReadyNas Duo

uniq is in coreutils
openssl files are in openssl-dev
Message 4 of 8
jimmy_1969
Aspirant

Re: Request help installing Subversion on ReadyNas Duo

Hi,

I also ran into problems with perl-modules when running ./autogen.sh

./autogen.sh 
aclocal...
autoheader...
autoheader not found

/usr/bin/autoheader -V
Can't locate File/Compare.pm in @INC (@INC contains: /usr/share/autoconf /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
Compilation failed in require at /usr/bin/autoheader line 45.
BEGIN failed--compilation aborted at /usr/bin/autoheader line 45.

Above output basically says that the perl-module file Compare.pm can't be found.

Listing /usr/share/perl/5.8.8/File/ shows that perl-modules where installed but without the required file Compare.pm for autoheader.

Trying to re-install with sudo apt-get -f install perl-modules did nothing as it just told me perl-modules where already installed with the latest version. So to over-come this and do a proper re-install do:
wget http://www.readynas.com/packages/readynas/perl-modules_5.8.8-7.infrant2_all.deb
dpkg-deb -x perl-modules_5.8.8-7.infrant2_all.deb /

Now the Compare.pm file should exist in the expected directory:
ls -la /usr/share/perl/5.8.8/File/
total 196
drwxr-xr-x 3 root root 4096 2007-02-02 12:45 .
drwxr-xr-x 38 root root 4096 2007-02-02 12:45 ..
-rw-r--r-- 1 root root 11261 2007-02-02 12:36 Basename.pm
-rw-r--r-- 1 root root 7423 2007-02-02 12:36 CheckTree.pm
-rw-r--r-- 1 root root 4284 2007-02-02 12:36 Compare.pm
-rw-r--r-- 1 root root 14032 2007-02-02 12:36 Copy.pm
-rw-r--r-- 1 root root 16626 2007-02-02 12:36 DosGlob.pm
-rw-r--r-- 1 root root 36671 2007-02-02 12:36 Find.pm
-rw-r--r-- 1 root root 7834 2007-02-02 12:36 Path.pm
drwxr-xr-x 2 root root 4096 2007-02-02 12:45 Spec
-rw-r--r-- 1 root root 595 2007-02-02 12:45 Spec.pm
-rw-r--r-- 1 root root 3372 2007-02-02 12:36 stat.pm
-rw-r--r-- 1 root root 64935 2007-02-02 12:36 Temp.pm

/usr/bin/autoheader -V should now give a proper version print

Tried a new attempt but ran into an issue with libtoolize
sudo ./autogen.sh 
aclocal...
autoheader...
libtoolize... libtoolize nor glibtoolize not found

This was solved by installing the missing package libtool which contains libtoolize, i e sudo apt-get install libtool. Once that was in place the build was ok.
sudo ./autogen.sh
aclocal...
autoheader...
libtoolize... using libtoolize
automake...
automake: configure.ac: installing `./mkinstalldirs'
autoconf...
ready to configure

Bottom line: when-ever a build scripts fails, find out which the missing file is, and locate which package it belongs to. Install or re-install.

This post got me on the right track: http://www.readynas.com/forum/viewtopic.php?f=35&t=23481 (Thx!)
Message 5 of 8
Potto
Aspirant

Re: Request help installing Subversion on ReadyNas Duo

Can't locate File/Compare.pm in @INC (@INC contains: /usr/share/autoconf /etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/FileUtils.pm line 136.
Compilation failed in require at /usr/bin/autoheader line 45.
BEGIN failed--compilation aborted at /usr/bin/autoheader line 45.


I receive the same error when trying to install xdebug.

How can I install Compare.pm?
Message 6 of 8
mfe_
Tutor

Re: Request help installing Subversion on ReadyNas Duo

You have to execute:

wget http://www.readynas.com/packages/readyn ... t2_all.deb
dpkg-deb -x perl-modules_5.8.8-7.infrant2_all.deb /

like jimmy_1969 descriped.
Message 7 of 8
WhoCares_
Mentor

Re: Request help installing Subversion on ReadyNas Duo

Actually it would be easier to install packages using
dpkg -i <package file>
instead of using the "dpkg -x" approach.

-Stefan
Message 8 of 8
Top Contributors
Discussion stats
  • 7 replies
  • 4421 views
  • 0 kudos
  • 7 in conversation
Announcements