Failing to install SABYenc in Debian Jessie

Support for the Debian/Ubuntu package, created by JCFP.
Post Reply
a4ex
Newbie
Newbie
Posts: 2
Joined: July 9th, 2017, 1:17 pm

Failing to install SABYenc in Debian Jessie

Post by a4ex » July 9th, 2017, 1:32 pm

Hello All,

I have tried to install SABYenc in Debian Jessie but with no luck.

I followed the steps: Installation on Ubuntu (without PPA) Long, with your own compiling, since i'm trying to install in an armv7l

Code: Select all

sudo apt-get install python-dev python-pip
sudo -H pip install sabyenc --upgrade

Code: Select all

# pip install sabyenc --upgrade
Downloading/unpacking sabyenc
  Downloading sabyenc-3.0.2.tar.gz
  Running setup.py (path:/tmp/pip-build-Rjvgrc/sabyenc/setup.py) egg_info for package sabyenc

Installing collected packages: sabyenc
  Running setup.py install for sabyenc
    building 'sabyenc' extension
    arm-linux-gnueabi-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/sabyenc.c -o build/temp.linux-armv7l-2.7/src/sabyenc.o -O2
    unable to execute 'arm-linux-gnueabi-gcc': No such file or directory
    error: command 'arm-linux-gnueabi-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Rjvgrc/sabyenc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CewgX3-record/install-record.txt --single-version-externally-managed --compile:
    running install

running build

running build_ext

building 'sabyenc' extension

creating build

creating build/temp.linux-armv7l-2.7

creating build/temp.linux-armv7l-2.7/src

arm-linux-gnueabi-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/sabyenc.c -o build/temp.linux-armv7l-2.7/src/sabyenc.o -O2

unable to execute 'arm-linux-gnueabi-gcc': No such file or directory

error: command 'arm-linux-gnueabi-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-Rjvgrc/sabyenc/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CewgX3-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-build-Rjvgrc/sabyenc
Storing debug log for failure in /root/.pip/pip.log
So I tried to install arm-linux-gnueabi-gcc separately following instructions from https://wiki.debian.org/CrossToolchains ... ebian_8.29 but i failed miserly.

I'm stack in this:

Code: Select all

apt-get install crossbuild-essential-armel
Reading package lists... Done
Building dependency tree
Reading state information... 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 crossbuild-essential-armel : Depends: gcc-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
                              Depends: g++-arm-linux-gnueabi (>= 4.9.1-1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
I tried to install gcc-arm-linux-gnueabi by itself but no luck.

Code: Select all

apt-get install gcc-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree
Reading state information... 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.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 gcc-arm-linux-gnueabi : Depends: gcc-4.9-arm-linux-gnueabi (>= 4.9.2-10) but it is not installable
E: Unable to correct problems, you have held broken packages.
After that whatever i tried fails.

Has anyone had similar problems? Is there a solution?

Thanks in advance.

-a4ex

User avatar
sander
Release Testers
Release Testers
Posts: 6083
Joined: January 22nd, 2008, 2:22 pm

Re: Failing to install SABYenc in Debian Jessie

Post by sander » July 9th, 2017, 2:00 pm

Installation on Ubuntu (without PPA) Long
Why don't you use the PPA method? That way the compiling has been done for you. :)

User avatar
safihre
Administrator
Administrator
Posts: 1865
Joined: April 30th, 2015, 7:35 am
Location: Switzerland
Contact:

Re: Failing to install SABYenc in Debian Jessie

Post by safihre » July 9th, 2017, 2:21 pm

sander wrote:
July 9th, 2017, 2:00 pm
Installation on Ubuntu (without PPA) Long
Why don't you use the PPA method? That way the compiling has been done for you. :)
Like he says: the PPA has no armv7l support.

User avatar
sander
Release Testers
Release Testers
Posts: 6083
Joined: January 22nd, 2008, 2:22 pm

Re: Failing to install SABYenc in Debian Jessie

Post by sander » July 9th, 2017, 4:01 pm

Like he says: the PPA has no armv7l support.
I don't read that in the OP?

On my armv7l Debian device (Raspi with Raspbian) the PPA method works:


armv7l:

Code: Select all

pi@raspberrypi:~ $ uname -a
Linux raspberrypi 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
Before:

Code: Select all

2017-07-09 20:43:36,251::WARNING::[sabnzbdplus:401] SABYenc module... NOT found! Expecting v3.0.2 - https://sabnzbd.org/sabyenc

Code: Select all

pi@raspberrypi:~ $ cat /etc/apt/sources.list
deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://ppa.launchpad.net/jcfp/ppa/ubuntu trusty main
deb http://ppa.launchpad.net/jcfp/sab-addons/ubuntu trusty main
Install via PPA:

Code: Select all

pi@raspberrypi:~ $ sudo apt-get install python-sabyenc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  python-sabyenc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 7422 B of archives.
After this operation, 53,2 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/jcfp/sab-addons/ubuntu/ trusty/main python-sabyenc armhf 3.0.2-0ubuntu1~jcfp1~trusty [7422 B]
Fetched 7422 B in 0s (86,7 kB/s)          
Selecting previously unselected package python-sabyenc.
(Reading database ... 36546 files and directories currently installed.)
Preparing to unpack .../python-sabyenc_3.0.2-0ubuntu1~jcfp1~trusty_armhf.deb ...
Unpacking python-sabyenc (3.0.2-0ubuntu1~jcfp1~trusty) ...
Setting up python-sabyenc (3.0.2-0ubuntu1~jcfp1~trusty) ...
Check:

Code: Select all

pi@raspberrypi:~ $ python -c "import sabyenc ; print sabyenc.__version__ "
3.0.2
pi@raspberrypi:~ $
SAB is happy too:

Code: Select all

2017-07-09 20:53:36,487::INFO::[sabnzbdplus:393] SABYenc module (v3.0.2)... found!

User avatar
jcfp
Release Testers
Release Testers
Posts: 850
Joined: February 7th, 2008, 12:45 pm

Re: Failing to install SABYenc in Debian Jessie

Post by jcfp » July 9th, 2017, 4:14 pm

Shouldn't directly make use of an ubuntu ppa on debian for anything with compiled code in it, even if the arch were supported. The safe way for that kind of situation is rebuilding the source package on the debian system. The debian wiki has a howto; sabyenc releases from the ppa should build without modification on any platform and architecture.
a4ex wrote:
July 9th, 2017, 1:32 pm
unable to execute 'arm-linux-gnueabi-gcc': No such file or directory
From the logs posted above, it appears there's no compiler installed. Try installing the "build-essential" metapackage. Crossbuilding isn't what you want if you're compiling on the very system you also want to install the result on.

a4ex
Newbie
Newbie
Posts: 2
Joined: July 9th, 2017, 1:17 pm

Re: Failing to install SABYenc in Debian Jessie

Post by a4ex » July 9th, 2017, 4:45 pm

Hello,

Installing build-essential did the trick!!!

After that i installed SABYenc without any problems.

Thank you for the support.

-a4ex

Post Reply