General NAS-Central Forums

Welcome to the NAS community
It is currently Fri Apr 28, 2017 6:28 am

All times are UTC




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Sat Sep 04, 2010 5:28 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
.


Last edited by reptile on Sat Sep 04, 2010 5:51 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 5:43 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Ok, i discovered the simlink in /ffp/ wasn't pointing to the correct path where funpkg was installing the bins.

however, now i get another error message



checking for a BSD-compatible install... /ffp/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-unknown-linux-gnu
checking for g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for style of include used by make... GNU
checking dependency style of g++... gcc3
checking for tar... /ffp/bin/tar
checking for make... /ffp/bin/make
checking for a BSD-compatible install... /ffp/bin/install -c
checking how to run the C++ preprocessor... /lib/cpp
configure: error: in `/shares/OpenShare/compile/nzbget-0.7.0':
configure: error: C++ preprocessor "/lib/cpp" fails sanity check


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 6:05 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5981
reptile wrote:
Ok, i discovered the simlink in /ffp/ wasn't pointing to the correct path where funpkg was installing the bins.

That doesn't make sense. funpkg is designed to install the stuff in /ffp/*, so when it is installed somewhere else, something went seriously wrong.
Where did /ffp point to, and where was the gcc binary installed?


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 6:29 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
I'm starting from scratch now I know a bit more about what I am doing. I'll get back to you in a bit :D

Thanks again!


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 6:34 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Ok since restarting things are looking up. CLoser on the nzbget compile but no cigar



checking for libsigc... configure: error: Package requirements (sigc++-2.0) were not met:

No package 'sigc++-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables libsigc_CFLAGS
and libsigc_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 6:43 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5981
Ah, one of those dependencies. You´ll have to compile and install sigc++-2.0 first. Without having looked at the tarball (google says you can find it here), I suppose you can just
Code:
tar -xzf tarball.tgz
cd tarball
./configure --prefix=/ffp
make
su
make install


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 6:47 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
ok, compiling it now :D

Any ideas on the manual reboot command? Reboot does nothing. It seems to execute but i keep having to go the web page to issue a reboot.


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 7:00 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
Argh , it's turning into the usual debacle whenever I try to do this kind of stuff.

I unpacked the 2.0 dev sources and they configured ok but the compile fails


../sigc++/object_slot.h:175: error: no matching function for call to 'sigc::bound_mem_functor1<void, foo, const std::string&>::bound_mem_functor1(const bar&, void (foo::*&)(const std::string&)const)'
../sigc++/functors/mem_fun.h:1830: note: candidates are: sigc::bound_mem_functor1<T_return, T_obj, T_arg1>::bound_mem_functor1(T_obj&, typename sigc::mem_functor1<T_arg1, T_return, T_obj>::function_type) [with T_return = void, T_obj = foo, T_arg1 = const std::string&]
../sigc++/functors/mem_fun.h:1823: note: sigc::bound_mem_functor1<T_return, T_obj, T_arg1>::bound_mem_functor1(T_obj*, typename sigc::mem_functor1<T_arg1, T_return, T_obj>::function_type) [with T_return = void, T_obj = foo, T_arg1 = const std::string&]
../sigc++/functors/mem_fun.h:1814: note: sigc::bound_mem_functor1<void, foo, const std::string&>::bound_mem_functor1(const sigc::bound_mem_functor1<void, foo, const std::string&>&)
make[2]: *** [test_compatibility.o] Error 1
make[2]: Leaving directory `/shares/OpenShare/compile/libsig/libsigc++-2.0.0/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/shares/OpenShare/compile/libsig/libsigc++-2.0.0'
make: *** [all] Error 2



I think it's about time to give up the ghost on this..... it's one step forward and two back all the time :lol:


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 7:14 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5981
Quote:
Any ideas on the manual reboot command? Reboot does nothing. It seems to execute but i keep having to go the web page to issue a reboot.

you could try:
shutdown -r
or
init 6
Quote:
Argh , it's turning into the usual debacle whenever I try to do this kind of stuff.

I unpacked the 2.0 dev sources and they configured ok but the compile fails

I looked at the options of nzbget configuration, (./configure --help), and it told
Quote:
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
<snip>
--with-libsigc-includes=DIR
libsigc++-2.0 include directory
--with-libsigc-libraries=DIR
libsigc++-2.0 library directory

So maybe you can configure nzbget using
Code:
./configure --prefix=/ffp --without-libsigc

And maybe you can skip more packages, when they are causing troubles. One of the biggest disadvantages of the 'configure' construction is that you never know how much errors there are laying behind that error which halts it.


Top
 Profile  
 
PostPosted: Sat Sep 04, 2010 7:20 pm 
Offline

Joined: Sun Aug 29, 2010 7:08 pm
Posts: 38
It says that option is unknown and still looks for it.....I tried playing with the name but the same problem.


Top
 Profile  
 
PostPosted: Wed Feb 23, 2011 11:39 am 
Offline

Joined: Wed Feb 23, 2011 11:27 am
Posts: 1
I got SabNZBD and Sickbeard working on the NS2.
I'll detail all the steps I took.

First you need ssh + root

Read this thread for an easy way to accomplish this.
viewtopic.php?f=236&t=2518

I recommend created a folder on the large drive to hold everything
I created a home folder under /lacie/var/

Download SABnzbd to this folder
untar
Get the following
http://sourceforge.net/projects/cheetah ... z/download
untar the above, cd into the directory and rename the src folder to Cheetah.
Copy this folder into the SABnzbd folder.
cd into the SABnzbd folder and run ./SABnzbd.py

Set your configuration to change cache and download folders to a absolute path like /lacie/var/home/downloads in order to preserve space on /

Next, download Sickbeard and untar
copy the same Cheetah folder into the Sickbeard folder, like you did with SABnzbd
cd into the SickBeard folder
I had to run the following
dos2unix SickBeard.py
Because the python file has ^M line endings.
Now run ./SickBeard.py

If you have permissions errors on the above make sure you chmod the files correctly.
To get unrar + par2 do the following (don't install mldonkey)
viewtopic.php?f=236&t=2348

Instead of mldonkey do the following
ipkg install unrar
ipkg install par2cmdline

It's not 100% right, but this worked fine for me. The NS2 is limited, but I get about 70% of the performance I would get out of what I'd consider a decent machine for SAB.

Hope this helps.


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 5:54 am 
Offline

Joined: Wed Jun 19, 2013 5:27 pm
Posts: 2
giblet wrote:
I got SabNZBD and Sickbeard working on the NS2.
I'll detail all the steps I took.
....
It's not 100% right, but this worked fine for me. The NS2 is limited, but I get about 70% of the performance I would get out of what I'd consider a decent machine for SAB.

Hope this helps.


Wow, thanks giblet! Excellent setup!

I'm not saying its exactly for a Linux n00b, but if you know a little bit of Linux this word! My notes from last night:

https://www.evernote.com/shard/s86/sh/8 ... 27f1f985a1

One question tho, how do I get Sickbeard and SABnzbd to start with the NAS when it boots up? There's no rc.d folders on this machine...


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 10:01 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 5981
sunsear wrote:
There's no rc.d folders on this machine...
No, there is no rc.d, as the machine uses initng. The solution: Create a file /etc/initng/optware.i
Code:
#!/sbin/itype
# This is a i file, used by initng parsed by install_service

service optware {
   script start = {
      /etc/init.d/optware start
   };
   script stop = {
      /etc/init.d/optware stop
   };
}
Add the line 'optware' to /etc/initng/runlevel/default.runlevel, and, of course, provide a script /etc/init.d/optware, which starts/stops all optware daemons (by parsing /opt/etc/init.d, I guess.)

One little point, if your /opt directory is actually a symlink to some directory on the data partition (which is not a bad idea) you should wait until the data partition is mounted:
Code:
#!/bin/sh

OPTSYMLINK=/opt

CreateSymlink()
{
   echo CreateSymlink
   # Find the path to the admin share:
   local smbconf=/etc/samba/smb.conf
   
   while true ; do
   
      [ -f $smbconf ] || ( sleep 10 && continue )
   
      local line=` sed -n "/\[optware\]/=" $smbconf `
      [ "$line" = "" ] && line=` sed -n "/\[MyShare\]/=" $smbconf `
      [ "$line" = "" ] && sleep 10 && continue
   
      local path=` tail -n +${line} $smbconf | grep path | head -n 1 | awk '{ print $3 }' `
   
      [ "$path" = "" ] && sleep 10 && continue
   
      if ! echo $path | grep optware
      then
          path=${path}/optware
      fi
   
      while ! mkdir -p $path
      do
         # Disk is not yet mounted
         sleep 30
      done
   
      
      ln -s $path $OPTSYMLINK
      
      echo Created symlink ${OPTSYMLINK} to $path
      return 0
   done
}


start()
{
   echo Start
   
   # Wait until /dev/sda2 or /dev/md4 are mounted:
   while true; do
      if cat /proc/mounts | grep /dev/sda2 ; then
         break
      fi
      if cat /proc/mounts | grep /dev/md4 ; then
         break
      fi
      sleep 30
   done
   
   # Some extra time to give Unicorn the time to get
   # the shares mounted:
   sleep 30
   
   # Check for existence of symlink:
   [ -h $OPTSYMLINK ] || CreateSymlink
   
   # Check if symlink points to something:
   [ -d $OPTSYMLINK ] || (rm $OPTSYMLINK && CreateSymlink)
   
   # Start services
   [ -x ${OPTSYMLINK}/etc/rc ] && ${OPTSYMLINK}/etc/rc start
}

stop()
{
   if [ -x ${OPTSYMLINK}/etc/rc ] ; then
      echo Stopping
      ${OPTSYMLINK}/etc/rc stop
   fi
}

case $1
in
   start)
      start &
      ;;
   stop)
      stop
      ;;
   *)
      echo unknown option $1
      echo "use $0 start|stop"
      exit 0
      ;;
esac


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group