NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
zwerdlds
Mar 29, 2012Follower
Help me get SortTV working!
Hi everyone! I own a SPARC-based ReadyNas Duo (revision 1?) running RAIDiator 4.1.8. I'm decent when it comes to CLI, but not the best when it comes to dependency hell. My Duo is the slow-but-sure ...
dedmeet
Nov 25, 2012Aspirant
Some further progress
First perl version check, as I beleive newer verson of perl will break FrontView ??
nas:~# perl -v
This is perl, v5.8.8 built for sparc-linux
Cpan check
nas:~# cpan -v
-bash: cpan: command not found
Make sure you have the apt-get extra installed. (I thought I had, but must have forgotten after I last had to reset back to standard firmware some time ago, after i broke stuff badly)
Then:
apt-get update
apt-get --reinstall install perl perl-base perl-modules perl-doc
Check perl version:
nas:~# perl -v
This is perl, v5.8.8 built for sparc-linux
:) Great, still same version of perl
nas:~# cpan -v
cpan script version 1.03
CPAN.pm version 1.7602
:) CPAN now installed
First need to setup a build environment on the NAS.
Follow this guide: http://www.readynas.com/?p=145
Fix cc (missing) simply by linking it to gcc, else CPAn will not be able to build.
cd /usr/bin
ln -s ./gcc ./cc
Start and configure CPAN
nas:~# perl -MCPAN -e shell
and configure CPAN - use defaults, they work fine, however I changed:
Policy on building prerequisites (follow, ask or ignore)? [ask] follow
Now install the missing required libs for sortTv using CPAN
at the cpan shell promt do:
install TVDB::API (go have some more beer, maybe pass out, come back the next day - this takes REALLY long)
Ok, failed with XML::Parser not installing. (at this point I lost my text here, due to page timeout - thank god for a saved draft), so the rest is from memory and my shell history)
The issue with installing XML::Parser was XML::Sax, and it seemed there was a clash between CPAN version and debian lib, so I uninstalled the debian version
apt-get remove libxml-sax-perl
also need dev files for expat so install them with apt-get install libexpat1-dev
now force install of XML::Parser using : force install XML::Parser in CPAN, then try and install TVDB::API again
The next thing was to install (via CPAN) the WWW::TheMovieDB::Search module.
But it needs Perl 5.8.9 (and we have 5.8.8).
As it is a minor version difference, I opted to cheat and force install of the module for 5.8.8. If this is an issue, it will be discovered later.
cd /root/.cpan/build/WWW-TheMovieDB-Search
edit lib/WWW/TheMovieDB/Search.pm AND Makefile.PL and change 5008009 to 5008008
Build it manually
perl ./Makefile.PL
make
make install
Next
cpan install Getopt::Long
and
cpan install File::Path
at this point it kinda starts to run, and fails with
nas:# ./sorttv.pl
SortTV
~~~~~~
DRY RUN MODE: No file operations will occur on the to-sort directory, some directories may be created at the destination.
File does not exist: 501 Can't locate object method "new" via package "LWP::Protocol::http"
at /usr/local/share/perl/5.8.8/TVDB/API.pm line 271.
ANd now it is time to go to sleep....
First perl version check, as I beleive newer verson of perl will break FrontView ??
nas:~# perl -v
This is perl, v5.8.8 built for sparc-linux
Cpan check
nas:~# cpan -v
-bash: cpan: command not found
Make sure you have the apt-get extra installed. (I thought I had, but must have forgotten after I last had to reset back to standard firmware some time ago, after i broke stuff badly)
Then:
apt-get update
apt-get --reinstall install perl perl-base perl-modules perl-doc
Check perl version:
nas:~# perl -v
This is perl, v5.8.8 built for sparc-linux
:) Great, still same version of perl
nas:~# cpan -v
cpan script version 1.03
CPAN.pm version 1.7602
:) CPAN now installed
First need to setup a build environment on the NAS.
Follow this guide: http://www.readynas.com/?p=145
Fix cc (missing) simply by linking it to gcc, else CPAn will not be able to build.
cd /usr/bin
ln -s ./gcc ./cc
Start and configure CPAN
nas:~# perl -MCPAN -e shell
and configure CPAN - use defaults, they work fine, however I changed:
Policy on building prerequisites (follow, ask or ignore)? [ask] follow
Now install the missing required libs for sortTv using CPAN
at the cpan shell promt do:
install TVDB::API (go have some more beer, maybe pass out, come back the next day - this takes REALLY long)
Ok, failed with XML::Parser not installing. (at this point I lost my text here, due to page timeout - thank god for a saved draft), so the rest is from memory and my shell history)
The issue with installing XML::Parser was XML::Sax, and it seemed there was a clash between CPAN version and debian lib, so I uninstalled the debian version
apt-get remove libxml-sax-perl
also need dev files for expat so install them with apt-get install libexpat1-dev
now force install of XML::Parser using : force install XML::Parser in CPAN, then try and install TVDB::API again
The next thing was to install (via CPAN) the WWW::TheMovieDB::Search module.
But it needs Perl 5.8.9 (and we have 5.8.8).
As it is a minor version difference, I opted to cheat and force install of the module for 5.8.8. If this is an issue, it will be discovered later.
cd /root/.cpan/build/WWW-TheMovieDB-Search
edit lib/WWW/TheMovieDB/Search.pm AND Makefile.PL and change 5008009 to 5008008
Build it manually
perl ./Makefile.PL
make
make install
Next
cpan install Getopt::Long
and
cpan install File::Path
at this point it kinda starts to run, and fails with
nas:# ./sorttv.pl
SortTV
~~~~~~
DRY RUN MODE: No file operations will occur on the to-sort directory, some directories may be created at the destination.
File does not exist: 501 Can't locate object method "new" via package "LWP::Protocol::http"
at /usr/local/share/perl/5.8.8/TVDB/API.pm line 271.
ANd now it is time to go to sleep....
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!