![]() |
|
SageTV Linux Discussion related to the SageTV Media Center for Linux. Questions, issues, problems, suggestions, etc. relating to the SageTV Linux should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Running on 64 bit Ubuntu
I'm having problems getting the server to start on 64 bit Ubuntu. I Get the following errors:
Code:
Starting server mode OpenJDK 64-Bit Server VM warning: -XX:ThreadPriorityPolicy requires root privilege on Linux OpenJDK 64-Bit Server VM warning: You have loaded library /opt/sagetv/server/libSage.so which migException in thread "main" java.lang.UnsatisfiedLinkError: /opt/sagetv/server/libSage.so: /opt/sagetv/server/libSage.so: wrong ELF class: ELFCLASS32 (Possible cause: architecture word width mismatch) at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary1(ClassLoader.java:1965) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1890) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1880) at java.lang.Runtime.loadLibrary0(Runtime.java:849) at java.lang.System.loadLibrary(System.java:1088) at sage.Sage.<clinit>(Unknown Source) at SecuredLoader.main(SecuredLoader.java:5) I removed the 64 bit version by using: sudo apt-get remove openjdk-7-jdk openjdk-7-jre
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#2
|
||||
|
||||
Yes you'll need a 32-bit JVM but I don't think this particular error message is a JVM issue. It's complaining about not being able to load a 32-bit native library (Sage has some native pieces). You'll need to use apt-get to install 32-bit compatibility libraries for Linux. Sorry I don't have access to my Linux box right now so I can't tell you the name of them, but Google it and you should find what you need.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#3
|
||||
|
||||
Did a bunch of googling and I do have 64 bit Java installed. The problem is that I'm just not smart enough to figure out how to uninstall it, or at least tell Sage to use the 32 bit version I also have installed.
Everything I read tells me to use "apt-get remove openjdk...." I've done that many times and it still doesn't work ![]()
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#4
|
||||
|
||||
Run 'java -v' from the terminal to see which java is being used.
Try setting the JAVA_HOME variable to the 32-bit Java path. You may also need to add JAVA_HOME/bin to the PATH environment variable. IIRC you can add these to the 'sagesettings' script file so it only affects Sage and you don't need to set them manually every time.
__________________
Server: Intel Core i5 760 Quad, Gigabyte GA-H57M-USB3, 4GB RAM, Gigabyte GeForce 210, 120GB SSD (OS), 1TB SATA, HD HomeRun. Extender: STP-HD300, Harmony 550 Remote, Netgear MCA1001 Ethernet over Coax. SageTV: SageTV Server 7.1.8 on Ubuntu Linux 11.04, SageTV Placeshifter for Mac 6.6.2, SageTV Client 7.0.15 for Windows, Linux Placeshifter 7.1.8 on Server and Client, Java 1.6. Plugins: Jetty, Nielm's Web Server, Mobile Web Interface. |
#5
|
||||
|
||||
That worked
![]()
__________________
Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders. |
#6
|
||||
|
||||
FYI... on most linux distributions, today, there isn't a 32bit compatiblity library (as there was in the past)... Instead you can simply install the 32bit packages by prefixing :i386 to the package.
ie for openjdk... Code:
sudo apt-get install openjdk-7-jdk:i386 sagesettings Code:
export JAVA_HOME=/opt/java/current/ export PATH=$JAVA_HOME/bin:$PATH JAVAMEM=-Xmx984m JAVAOPTS=-Dhttps.protocols=SSLv3 # for vlc streaming export SUDO_UID=1001 Code:
lrwxrwxrwx 1 root root 5 Mar 28 10:46 current -> java7 lrwxrwxrwx 1 root root 11 Mar 28 10:45 java7 -> jdk1.7.0_72 lrwxrwxrwx 1 root root 15 Mar 28 10:46 java8 -> jre1.8.0_40_x86 drwxr-xr-x 8 uucp 143 4096 Sep 26 2014 jdk1.7.0_72 drwxr-xr-x 6 uucp 143 4096 Feb 11 01:26 jre1.8.0_40_x86
__________________
Batch Metadata Tools (User Guides) - SageTV App (Android) - SageTV Plex Channel - My Other Android Apps - sagex-api wrappers - Google+ - Phoenix Renamer Downloads SageTV V9 | Android MiniClient |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ubuntu 12.04 | bcjenkins | SageTV Linux | 25 | 02-22-2013 04:40 PM |
Ubuntu TV? | makko | General Discussion | 2 | 01-10-2012 07:47 AM |
Anybody try Ubuntu 10.04? | loonsailor | SageTV Linux | 26 | 09-21-2010 10:12 AM |
Ubuntu Placeshifter running from USB zip (thumb) drive | Ghampton | SageTV Linux | 6 | 03-26-2010 12:28 PM |
Ubuntu 9.10 - Anybody try it yet? | loonsailor | SageTV Linux | 25 | 10-08-2009 03:22 PM |