Sorry we lost some posts because of database errors!

*New 12.1 series Release:
2020-09-01: XigmaNAS 12.1.0.4.7728 - released

*New 11.4 series Release:
2020-08-27: XigmaNAS 11.4.0.4.7718 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[SOLVED]: Where's cc? I need it for Sabnzbd upgrade

General information about XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
jamaroney
Advanced User
Advanced User
Posts: 254
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

[SOLVED]: Where's cc? I need it for Sabnzbd upgrade

#1

Post by jamaroney »

I hardly use Sabnzbd on my N4F (latest 64-bit version embedded), but I decided to upgrade from 1.0.3 to 2.0.1, which went fine.

But SAB versions 2.0 and higher should have a new python module called sabyenc, which is not included in SAB platforms for Linux, Unix, FreeBSD, etc.

Their FREEBSD instructions (https://sabnzbd.org/wiki/installation/sabyenc.html) simply consisted of this:

pkg install py27-pip-9.0.1
pip install --upgrade sabyenc

The py27-pip install was easy, but when I ran the next command, here's what I got:
Collecting sabyenc
Using cached sabyenc-3.0.2.tar.gz
Installing collected packages: sabyenc
Running setup.py install for sabyenc ... error
Complete output from command /usr/local/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/var/tmp/pip-build-bMbJpK/sabyenc/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-D_HIJy-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'sabyenc' extension
creating build
creating build/temp.freebsd-11.0-RELEASE-p10-amd64-2.7
creating build/temp.freebsd-11.0-RELEASE-p10-amd64-2.7/src
cc -fno-strict-aliasing -O2 -pipe -fstack-protector -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/local/include/python2.7 -c src/sabyenc.c -o build/temp.freebsd-11.0-RELEASE-p10-amd64-2.7/src/sabyenc.o -O2
unable to execute 'cc': No such file or directory
error: command 'cc' failed with exit status 1

So, is there no "cc" command on N4F? Any workaround?
Last edited by jamaroney on 11 Jun 2017 20:08, edited 1 time in total.

doktornotor
Advanced User
Advanced User
Posts: 193
Joined: 16 May 2017 00:22
Status: Offline

Re: Where's cc? I need it for Sabnzbd upgrade

#2

Post by doktornotor »

Ugh. This is a NAS. You don't put compilers on NASes, routers etc. :roll: :!:

jamaroney
Advanced User
Advanced User
Posts: 254
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

Re: Where's cc? I need it for Sabnzbd upgrade

#3

Post by jamaroney »

doktornotor wrote:
08 Jun 2017 09:22
Ugh. This is a NAS. You don't put compilers on NASes, routers etc.
Fair point - but is there a workaround?

doktornotor
Advanced User
Advanced User
Posts: 193
Joined: 16 May 2017 00:22
Status: Offline

Re: Where's cc? I need it for Sabnzbd upgrade

#4

Post by doktornotor »

Well someone could probably produce a proper binary package for sabyenc.

jamaroney
Advanced User
Advanced User
Posts: 254
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

Re: Where's cc? I need it for Sabnzbd upgrade

#5

Post by jamaroney »

Problem solved. The instructions on the link mentioned above were inaccurate.

py27-pip-9.0.1 is not necessary - all that is needed is "pkg install py27-sabyenc"

wookl
NewUser
NewUser
Posts: 10
Joined: 31 Mar 2013 23:00
Status: Offline

Re: Where's cc? I need it for Sabnzbd upgrade

#6

Post by wookl »

jamaroney wrote:
11 Jun 2017 04:38
Problem solved. The instructions on the link mentioned above were inaccurate.

py27-pip-9.0.1 is not necessary - all that is needed is "pkg install py27-sabyenc"
I have the same problem, but pkg install py27-sabyenc did not work for me.

Code: Select all

pkg install py27-sabyenc
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
pkg: No packages available to install matching 'py27-sabyenc' have been found in the repositories
11.1.0.4 - 4952 x64-full on Intel(R) Xeon(R) CPU L5640 @ 2.27GHz ASUSTeK Computer INC. P6T7 WS

jamaroney
Advanced User
Advanced User
Posts: 254
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

[SOLVED] Re: Where's cc? I need it for Sabnzbd upgrade

#7

Post by jamaroney »

It's available via the repository of latest editions. Here's the one for my FREEBSD 11 amd64 NAS:

http://pkg.freebsd.org/FreeBSD:11:amd64 ... -3.0.2.txz

I assume it's available for other architectures and FREEBSD versions.

User avatar
alexey123
Moderator
Moderator
Posts: 1555
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [SOLVED]: Where's cc? I need it for Sabnzbd upgrade

#8

Post by alexey123 »

Try compile under jail.
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

wookl
NewUser
NewUser
Posts: 10
Joined: 31 Mar 2013 23:00
Status: Offline

Re: [SOLVED] Re: Where's cc? I need it for Sabnzbd upgrade

#9

Post by wookl »

jamaroney wrote:
11 Jun 2017 12:32
It's available via the repository of latest editions. Here's the one for my FREEBSD 11 amd64 NAS:

http://pkg.freebsd.org/FreeBSD:11:amd64 ... -3.0.2.txz

I assume it's available for other architectures and FREEBSD versions.
Thank you, that fixed the problem for for me. I do not have any jails, but the pkg in latest solved the problem.
11.1.0.4 - 4952 x64-full on Intel(R) Xeon(R) CPU L5640 @ 2.27GHz ASUSTeK Computer INC. P6T7 WS

Post Reply

Return to “GENERAL INFORMATION”