ipkg install not working

Any questions? Need some help?
Post Reply
User avatar
Axel Foley
Posts: 23
Joined: 27 Mar 2014, 15:47

ipkg install not working

Post by Axel Foley »

Hi,

just wanted to let you know that the latest ipkg package (4.5) won't install. I'm using Synology DS1812+. Package for 4.2 installs fine.

Here's the output:

Code: Select all

[Fri Oct 10 12:42:57 root@nas:/volume1/shared/download]# ipkg install -V 4 filebot_4.5_i686.ipk 
Debug install_cmd: filebot_4.5_i686.ipk  
Package filebot provided by hand (filebot_4.5_i686.ipk).
Function: pkg_vec_insert_merge. Adding new pkg=filebot version=4.5 arch=i386
pkg_info_preinstall_check: updating arch priority for each package
Clearing state_want and state_flag for pkg=filebot (arch_priority=0 flag=16 want=2)
pkg_info_preinstall_check: update file owner list
 Getting old  from pkg_hash_fetch 
 Getting new  from pkg_hash_fetch 
best installation candidate for filebot
 adding filebot to providers
  filebot arch=i386 arch_priority=0 version=4.5  
 Versions from pkg_hash_fetch in ipkg_install_by_name  
Configuring unpacked packages
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package filebot.
Check the spelling or perhaps run 'ipkg update'
hash_table[pkg-hash] n_buckets=0 n_elements=1345 max_conflicts=0 n_conflicts=0
hash_table[file-hash] n_buckets=0 n_elements=7132 max_conflicts=0 n_conflicts=0
hash_table[obs-file-hash] n_buckets=0 n_elements=0 max_conflicts=0 n_conflicts=0
[Fri Oct 10 12:43:04 root@nas:/volume1/shared/download]# 
I'm now using the portable package version, which also has the autoupdate script, but thought it was useful for you to know there's a problem with the ipkg version.

With the portable package version, I have a problem with mediainfo, fpcalc and 7zip modules:

Code: Select all

[Fri Oct 10 12:47:51 root@nas:~]# filebot -script fn:sysinfo                                                                                                                                           
FileBot 4.5 (r2602)
JNA Native: 4.0.0
MediaInfo: java.lang.UnsatisfiedLinkError: Unable to load library 'mediainfo': Native library (linux-x86/libmediainfo.so) not found in resource path ([file:/volume1/shared/scripts/filebot/FileBot.jar])
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 668 MB Max Memory / 17 MB Used Memory
OS: Linux (i386)
uname: Linux nas 3.2.40 #4493 SMP Thu Aug 21 21:46:06 CST 2014 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
[Fri Oct 10 12:48:45 root@nas:~]# 
Any suggestions would be greatly appreciated.

Thanks for your work. :)
User avatar
Axel Foley
Posts: 23
Joined: 27 Mar 2014, 15:47

Re: ipkg install not working

Post by Axel Foley »

Ok, I found out the native libraries here: http://sourceforge.net/p/filebot/code/H ... inux-i686/.

It would be useful if we had a direct link to a zip file with all updated libraries so to prepare an update script (with wget).

In order to make the libs to be detected I set the LD_LIBRARY_PATH, the 3 .so would be detected fine but fpcalc would still be unfound, I had to put the directory with the libraries in the path environment variable. Suggestion: it would be good if filebot would look for fpcalc either in its working dir and also in LD_LIBRARY_PATH, then resort to PATH.

I now reverted to the Synology package on your repository, and created a separate dir for the native libs, then set LD_LIBRARY_PATH and PATH to point to it and everything works perfectly. It would be great to have the native libs to be added to the package directly, will you do this in the future?

Thank you.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

Thanks for letting me know. Though I can't do anything unless I know what's wrong with it. Build didn't change. Maybe arch i386 is wrong and should be i686? Then again .deb specs say it has to be i386 for any x86.

As for updates you can wget from the SVN repo directly. Though native libs will rarely update.

The current spk is platform-independent so I only have to maintain one. But if I added native components I'd have a shit load of work doing it for all platforms. I might look into this again when synology adds support for paid packages.
:idea: Please read the FAQ and How to Request Help.
User avatar
Axel Foley
Posts: 23
Joined: 27 Mar 2014, 15:47

Re: ipkg install not working

Post by Axel Foley »

IPKG package: version 4.2 of the package installs correctly, what architecture are you using in that one?
Native Libs: gotcha, I'll prepare a download script for the libraries.
SPK: ok, didn't know it required all that effort to implement it.

Could you take a look at my suggestion in the second post regarding the detection of the libs?

Thanks.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

arch used to be i686, and now it's i386 because dpkg (.ipkg is really a .deb) doesn't allow i686 for i686 systems... maybe ipkg doesn't allow i386 for i686 systems.

fpcalc just needs to be in the PATH, or linked to /usr/bin. If you modify filebot.sh you can modify library path and fpcalc command (by default it's just "fpcalc" expecting it to be a working command).

Depending on your setup you might prefer to use the portable package which is designed to be self-contained.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

Can you try this .ipk package and see if it works now?

Download => https://www.dropbox.com/s/uu1n7vjnrz646 ... 6.ipk?dl=0
:idea: Please read the FAQ and How to Request Help.
User avatar
Axel Foley
Posts: 23
Joined: 27 Mar 2014, 15:47

Re: ipkg install not working

Post by Axel Foley »

Package works fine now. Here's the sysinfo:

Code: Select all

[Tue Oct 14 13:01:48 root@nas:/opt/share]# filebot -script fn:sysinfo
FileBot 4.5 (r2611)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: OK
chromaprint-tools: fpcalc version 1.1.0 (/opt/share/filebot/fpcalc)
Extended Attributes: OK
Groovy Engine: 2.3.7
JRE: Java(TM) SE Embedded Runtime Environment 1.8.0 (headless)
JVM: 32-bit Java HotSpot(TM) Embedded Server VM
CPU/MEM: 4 Core / 668 MB Max Memory / 23 MB Used Memory
OS: Linux (i386)
uname: Linux nas 3.2.40 #4493 SMP Thu Aug 21 21:46:06 CST 2014 x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
Question: how does it find fpcalc? That directory is not in my path.

The ipk package is probably the best solution, it is self-contained and doesn't require any other configuration. Both the portable version and the native Synology package require modifications.

Thanks.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

This line in filebot.sh configure how fpcalc will be called:

Code: Select all

-Dnet.filebot.AcoustID.fpcalc=/opt/share/filebot/fpcalc
IPK should install packages to /opt/share/$PKGNAME but it may be different on some platforms.
:idea: Please read the FAQ and How to Request Help.
User avatar
Axel Foley
Posts: 23
Joined: 27 Mar 2014, 15:47

Re: ipkg install not working

Post by Axel Foley »

Gotcha. So, the initial issue was the i386 arch? should have been i686?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

Yes. dpkg only accepts i386 while ipkg only accepts i686.

Note that .deb and .ipk is the same thing. ;)
:idea: Please read the FAQ and How to Request Help.
Muddro
Posts: 33
Joined: 22 Mar 2014, 21:38

Re: ipkg install not working

Post by Muddro »

Don't know if to post here or create new thread but experiencing similar issue with freenas jail. I was able to install Filebot portable in a jail as well as java 8. However, 7-zip isn't binding:

Code: Select all

root@Filebot:/ # filebot -script "fn:sysinfo"
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: java.io.IOException: UserDefinedFileAttributeView is not supported
Groovy Engine: 2.3.7
JRE: OpenJDK Runtime Environment 1.8.0_11 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4 GB Max Memory / 28 MB Used Memory
OS: FreeBSD (amd64)
uname: FreeBSD Filebot 9.2-RELEASE-p12 FreeBSD 9.2-RELEASE-p12 #0 r262572+b043649: Sun Sep 28 23:03:31 PDT 2014     [email protected]:/tank/home/jkh/build/921/freenas/os-base/amd64/fusion/jkh/921/freenas/FreeBSD/src/sys/FREENAS.amd64  amd64
Can't find any instructions on how to get this last portion to work
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

In your filebot.sh somewhere it'll set the Java system property java.library.path and that's the folder where it'll expect to find the *.so native libraries.
:idea: Please read the FAQ and How to Request Help.
Muddro
Posts: 33
Joined: 22 Mar 2014, 21:38

Re: ipkg install not working

Post by Muddro »

ok seem to be moving along a little. Still issues though:

Code: Select all

root@Filebot:/bin # filebot -script "fn:sysinfo"
FileBot 4.5 (r2612)
JNA Native: 4.0.0
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: /bin/lib7-Zip-JBinding.so: /bin/lib7-Zip-JBinding.so: invalid file format (Possible cause: endianness mismatch)
ELF interpreter /lib/ld-linux.so.2 not found
chromaprint-tools: fpcalc -version failed (fpcalc)
Extended Attributes: java.io.IOException: UserDefinedFileAttributeView is not supported
Groovy Engine: 2.3.7
JRE: OpenJDK Runtime Environment 1.8.0_11 (headless)
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 4 GB Max Memory / 30 MB Used Memory
OS: FreeBSD (amd64)
uname: FreeBSD Filebot 9.2-RELEASE-p12 FreeBSD 9.2-RELEASE-p12 #0 r262572+b043649: Sun Sep 28 23:03:31 PDT 2014     [email protected]:/tank/home/jkh/build/921/freenas/os-base/amd64/fusion/jkh/921/freenas/FreeBSD/src/sys/FREENAS.amd64  amd64
Done ヾ(@⌒ー⌒@)ノ
root@Filebot:/bin # fpcalc -version
ELF interpreter /lib/ld-linux.so.2 not found
Abort
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: ipkg install not working

Post by rednoah »

If the binaries are not compatible with your platform you might need to compile it yourself... or maybe install some Linux compatibility libraries? No idea, but compiled-for-Linux binaries can't be expected to just run on BSD.
:idea: Please read the FAQ and How to Request Help.
Post Reply