Installing PMS on NAS (Synology DS-211+)

For help and support with issues specific to Linux/Unix
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Installing PMS on NAS (Synology DS-211+)

Postby m3digi » Sun Nov 27, 2011 3:33 am

bqsjayce wrote:in the tutorial correct the following lines :

JAVA_HOME=/opt/java/ejre1.6.0_27/
with
JAVA_HOME=/opt/java/ejre1.6.0_27


Thank you!
m3digi
 
Posts: 5
Joined: Sat Nov 26, 2011 1:38 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby m3digi » Sun Nov 27, 2011 3:00 pm

I've made lots of progress toward getting PMS installed on my Synology, but have run into an issue with getting libmediainfo installed. Following MarkDark's instructions I ran the following commands:

Code: Select all
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library
root@yournas> ./configure –enable-shared=yes
root@yournas> make
root@yournas> make install
root@yournas> cp /usr/local/lib/libmediainfo.so* /usr/lib/


After running this command I'm finding that there is no existence of libmediainfo.so* in /usr/local/lib, nor is there any reference to it in the command output after running make install:

Code: Select all
make[1]: Entering directory `/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library'
test -z "/usr/local/lib" || /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library/install-sh -d "/usr/local/lib"
 /opt/bin/bash ./libtool --mode=install ./install-sh -c  'libmediainfo.la' '/usr/local/lib/libmediainfo.la'
./install-sh -c .libs/libmediainfo.lai /usr/local/lib/libmediainfo.la
./install-sh -c .libs/libmediainfo.a /usr/local/lib/libmediainfo.a
chmod 644 /usr/local/lib/libmediainfo.a
ranlib /usr/local/lib/libmediainfo.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library'


Did I miss something?
m3digi
 
Posts: 5
Joined: Sat Nov 26, 2011 1:38 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby markdark » Mon Nov 28, 2011 9:16 am

bqsjayce wrote:in the tutorial correct the following lines :

JAVA_HOME=/opt/java/ejre1.6.0_27/
with
JAVA_HOME=/opt/java/ejre1.6.0_27


This has been corrected in the install guide also!
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby markdark » Mon Nov 28, 2011 9:24 am

m3digi wrote:I've made lots of progress toward getting PMS installed on my Synology, but have run into an issue with getting libmediainfo installed. Following MarkDark's instructions I ran the following commands:

Code: Select all
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library
root@yournas> ./configure –enable-shared=yes
root@yournas> make
root@yournas> make install
root@yournas> cp /usr/local/lib/libmediainfo.so* /usr/lib/


After running this command I'm finding that there is no existence of libmediainfo.so* in /usr/local/lib, nor is there any reference to it in the command output after running make install:

Code: Select all
make[1]: Entering directory `/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library'
test -z "/usr/local/lib" || /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library/install-sh -d "/usr/local/lib"
 /opt/bin/bash ./libtool --mode=install ./install-sh -c  'libmediainfo.la' '/usr/local/lib/libmediainfo.la'
./install-sh -c .libs/libmediainfo.lai /usr/local/lib/libmediainfo.la
./install-sh -c .libs/libmediainfo.a /usr/local/lib/libmediainfo.a
chmod 644 /usr/local/lib/libmediainfo.a
ranlib /usr/local/lib/libmediainfo.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
make[1]: Nothing to be done for `install-data-am'.
make[1]: Leaving directory `/volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library'


Did I miss something?


If I look at your output it looks like there are only static libraries build (*.a & *.la files) and NO shared libraries (*.so files):
Code: Select all
chmod 644 /usr/local/lib/libmediainfo.a
ranlib /usr/local/lib/libmediainfo.a

I had the same problem as you in the beginning. This was because I forgot to use the option '–enable-shared=yes' with './configure'. Are you sure you ran the command exactly like that? You can also try to locate the files:
Code: Select all
root@yournas> ipkg install mlocate
root@yournas> updatedb
root@yournas> locate libmediainfo

The locate command gives the next output on my NAS:
Code: Select all
root@markdark-nas> locate libmediainfo
/lib/libmediainfo.a
/lib/libmediainfo.la
/lib/libmediainfo.so
/lib/libmediainfo.so.0
/lib/libmediainfo.so.0.0.0
/usr/local/lib/libmediainfo.a
/usr/local/lib/libmediainfo.la
/usr/local/lib/libmediainfo.so
/usr/local/lib/libmediainfo.so.0
/usr/local/lib/libmediainfo.so.0.0.0
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby bqsjayce » Mon Nov 28, 2011 11:46 am

markdark wrote:
bqsjayce wrote:in the tutorial correct the following lines :

JAVA_HOME=/opt/java/ejre1.6.0_27/
with
JAVA_HOME=/opt/java/ejre1.6.0_27


This has been corrected in the install guide also!


Thx ;)

I have a problem with the tutorial.

When I start PMS.sh as root or admin i have the error :

GUI environment not available
Switching to console mode
[main] WARN 11:40:55.048 Error loading libzen: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path


When i start :

locate libzen

The reply is :

/lib/libzen.a
/lib/libzen.la
/lib/libzen.so
/lib/libzen.so.0
/lib/libzen.so.0.0.0


Any idea ?

Sorry but I'm french and my english is not so good ;)

Ps: in the tutorial you say :

root@yournas> cd /volume1/@tmp/
root@yournas> tar zxvf MediaInfo_CLI_0.7.51_GNU_FromSource.tar.bz2
root@yournas> cd /volume1/@tmp/MediaInfo_CLI_GNU_FromSource/MediaInfo/Project/GNU/CLI
root@yournas> make install


you do a make install with no ./configure and make ?
bqsjayce
 
Posts: 5
Joined: Sat Nov 26, 2011 8:59 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby markdark » Mon Nov 28, 2011 11:52 am

bqsjayce wrote:I have a problem with the tutorial.

When I start PMS.sh as root or admin i have the error :

GUI environment not available
Switching to console mode
[main] WARN 11:40:55.048 Error loading libzen: jnidispatch (/com/sun/jna/linux-arm/libjnidispatch.so) not found in resource path



You skipped or did not correctly execute next:

We need to add libjnidispatch.so manually to pms.jar otherwise it can't be found. To do this, download libjnidispatch.so from http://packages.debian.org/sid/libjna-java for your processor. If you had the same processor as synops and I, you can download the armel version from this site. Follow the next steps, but download the correct version for you processor!
Code: Select all
root@yournas> cd /volume1/@tmp/
root@yournas> wget http://ftp.nl.debian.org/debian/pool/main/libj/libjna-java/libjna-java_3.2.7-4_armel.deb
root@yournas> ar vx libjna-java_3.2.7-4_armel.deb
root@yournas> tar -xzf data.tar.gz
root@yournas> mkdir /opt/local/pms-linux-1.50.0/com
root@yournas> mkdir /opt/local/pms-linux-1.50.0/com/sun
root@yournas> mkdir /opt/local/pms-linux-1.50.0/com/sun/jna
root@yournas> mkdir /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm
root@yournas> cp /volume1/@tmp/usr/lib/jni/libjnidispatch.so /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/
root@yournas> jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so
root@yournas> chown -R admin:users /opt/local/pms-linux-1.50.0/
markdark
 
Posts: 13
Joined: Wed Nov 16, 2011 5:07 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby bqsjayce » Mon Nov 28, 2011 1:42 pm

I have a synology DS-411j the processor is a "armv5tel".

I use the following command on Nas and on another linux (Mandriva) and the result is the same, the pms.jar is correct after the command but the error is the same :(

can you send me the result of "ls -l /usr/lib/"
can you send me your pms.jar for test (if you have a armv5 processor) ?

Thx
bqsjayce
 
Posts: 5
Joined: Sat Nov 26, 2011 8:59 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby bqsjayce » Mon Nov 28, 2011 2:54 pm

So i have a new error.. But I have a issu for the first problem :


Code: Select all
cd /volume1/@tmp
wget http://ftp.nl.debian.org/debian/pool/main/libj/libjna-java/libjna-java_3.2.7-4_armel.deb
ar vx libjna-java_3.2.7-4_armel.deb
tar -xzf data.tar.gz
mkdir com
mkdir com/sun
mkdir com/sun/jna
mkdir com/sun/jna/linux-arm
cp /tmp/usr/lib/jni/libjnidispatch.so com/sun/jna/linux-arm/
jar uf pms.jar com/sun/jna/linux-arm/libjnidispatch.so [b](replace jar by gjar if jar is not installed)[/b]

[b]For test :[/b]
jar tvf /opt/local/[pmsdirectory]/pms.jar | grep libjnidispatch[b] (or gjar if jar no present )[/b]
[b]make sure the output contains the following line “com/sun/jna/linux-arm/libjnidispatch.so”. (no text before the com/sun..)[/b]


Now the error is :

Code: Select all
Error loading libzen: Unable to load library 'zen': /usr/lib/libzen.so.0: undefined symbol: _ZTVN10__cxxabiv117__class_type_infoE


In the tutorial you need to change the command :

Code: Select all
root@yournas> jar uf /opt/local/pms-linux-1.50.0/pms.jar /opt/local/pms-linux-1.50.0/com/sun/jna/linux-arm/libjnidispatch.so


by

Code: Select all
root@yournas> jar uf /opt/local/pms-linux-1.50.0/pms.jar com/sun/jna/linux-arm/libjnidispatch.so


the path of the .so must be a relative path in the command, not a absolute.

See you soon
bqsjayce
 
Posts: 5
Joined: Sat Nov 26, 2011 8:59 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby youngc29 » Thu Dec 01, 2011 1:58 am

I have installed everything and when I run the ./PMS.sh I get the following, any help would be greatly appreciated as I have spent the past 2 nights up until about 2am :)

Code: Select all
GUI environment not available
Switching to console mode
[mencoder] ERROR 00:27:17.432 Fatal error in process initialization:
java.io.IOException: Cannot run program "mencoder": error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.7.0]
        at net.pms.io.ProcessWrapperImpl.run(ProcessWrapperImpl.java:113) ~[pms.jar:na]
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.7.0]
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:135) ~[na:1.7.0]
        at java.lang.ProcessImpl.start(ProcessImpl.java:130) ~[na:1.7.0]
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021) ~[na:1.7.0]
        ... 1 common frames omitted
youngc29
 
Posts: 2
Joined: Wed Nov 30, 2011 2:18 pm

Re: Installing PMS on NAS (Synology DS-211+)

Postby m3digi » Thu Dec 01, 2011 2:07 am

I"m saving the same issue as youngc. Help would be very much appreciated.
m3digi
 
Posts: 5
Joined: Sat Nov 26, 2011 1:38 pm

PreviousNext

Return to Linux/Unix Support

Who is online

Users browsing this forum: Google [Bot] and 4 guests