SageTV Community  

Go Back   SageTV Community > SageTV Products > SageTV Linux
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-20-2010, 06:42 PM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
New install of sagetv MC. Followed instructions. wrong ELF class: ELFCLASS32

I just purchased the media center for linux.

I followed the instructions step by step.

When i run the server I get:

Code:
Exception 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.loadLibrary0(ClassLoader.java:1750)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1675)
	at java.lang.Runtime.loadLibrary0(Runtime.java:840)
	at java.lang.System.loadLibrary(System.java:1047)
	at sage.Sage.<clinit>(Unknown Source)
	at SecuredLoader.main(SecuredLoader.java:5)
Code:
java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
Code:
dpkg --get-selections | grep java
ca-certificates-java                            install
java-common                                     install
java-wrappers                                   install
javascript-common                               install
libaccess-bridge-java-jni                       deinstall
libcommons-cli-java                             install
libcommons-lang-java                            install
libjline-java                                   install
liblog4j1.2-java                                install
libswt-gtk-3.4-java                             install
sun-java6-bin                                   install
sun-java6-jre                                   install
sun-java6-plugin                                install
tzdata-java                                     install
Code:
uname -a
Linux brutus 2.6.31-22-generic #60-Ubuntu SMP Thu May 27 02:41:03 UTC 2010 x86_64 GNU/Linux
Code:
ls /var/log/sage*
ls: cannot access /var/log/sage*: No such file or directory
Any ideas? Can Sage not run on a 64 bit operating system? How would I go about fixing this without downgrading my system and eliminating nearly 9 gigs of RAM?
Reply With Quote
  #2  
Old 10-21-2010, 04:39 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
I think you need the 32 bit version of java. Sage is a 32 bit application AFAIK. (I use Windows though so maybe it's different for Linux).

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #3  
Old 10-21-2010, 06:22 AM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
Quote:
Originally Posted by gplasky View Post
I think you need the 32 bit version of java. Sage is a 32 bit application AFAIK. (I use Windows though so maybe it's different for Linux).

Gerry
OK thanks. Hey I'm from Royal Oak. Small world.

It looks like this problem has existed for more than 4 years from what I've read. I hope the dev team is working on a 64 bit version. Most 32 bit OSs are getting phased out.
Reply With Quote
  #4  
Old 10-21-2010, 07:16 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by kireol View Post
Any ideas? Can Sage not run on a 64 bit operating system? How would I go about fixing this without downgrading my system and eliminating nearly 9 gigs of RAM?
The simplest thing to do is to just install the 32-bit version of Java outside apt/dpkg. I gave detailed instructions to somebody else here:

http://forums.sagetv.com/forums/show...6&postcount=16

Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core
Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64
Tuner HW: HDHR
Client: Nvidia Shield (HD300, HD100 in storage)
Reply With Quote
  #5  
Old 10-21-2010, 08:48 AM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
Quote:
Originally Posted by drewg View Post
The simplest thing to do is to just install the 32-bit version of Java outside apt/dpkg. I gave detailed instructions to somebody else here:

http://forums.sagetv.com/forums/show...6&postcount=16

Drew
I sshd home and followed your directions.

Code:
sudo ./startsage 
Changing to SageTV directory /opt/sagetv/server/.
Executing pre-scripts
Starting server mode
Code:
ps ax | grep java
24040 pts/8    Sl     0:03 java -Dsage.paths.tools=/opt/sagetv/server -Djava.awt.headless=true -DUSERKEY=....
no errors!

While I need to go home and run the client to make sure it actually worked, I thank you!

Honestly Sage should give you a free extender or something. They saved a customer
Reply With Quote
  #6  
Old 10-22-2010, 06:31 AM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by kireol View Post
Honestly Sage should give you a free extender or something. They saved a customer
Glad I could help.

SageTV really needs to provide a 64b package, a better installer, or maybe both.

Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core
Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64
Tuner HW: HDHR
Client: Nvidia Shield (HD300, HD100 in storage)
Reply With Quote
  #7  
Old 10-22-2010, 07:19 AM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
Quote:
Originally Posted by drewg View Post
Glad I could help.

SageTV really needs to provide a 64b package, a better installer, or maybe both.

Drew
they need AN installer. hah. but yeah, agreed. 64bit package would be nice.
Reply With Quote
  #8  
Old 10-23-2010, 04:48 AM
bcjenkins bcjenkins is offline
SageTVaholic
 
Join Date: Jan 2006
Posts: 3,764
They do provide an installer in the debian package.. IMO - it is not optimal as it runs as root and is only targeted to 32-bit machines.

B
__________________
Running SageTV on unRAID via Docker
Tuning handled by HDHR3-6CC-3X2 using OpenDCT
Reply With Quote
  #9  
Old 10-23-2010, 07:00 AM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
Quote:
Originally Posted by bcjenkins View Post
They do provide an installer in the debian package.. IMO - it is not optimal as it runs as root and is only targeted to 32-bit machines.

B
I did not see a 64 bit installer. And I looked all over. With more and more people switching to 64 bit OSs due to RAM limits and soon for hard drive limits, it's important to know your market.
Reply With Quote
  #10  
Old 10-23-2010, 01:57 PM
ltburch2000 ltburch2000 is offline
Sage User
 
Join Date: Oct 2005
Location: Chicago, IL
Posts: 20
Send a message via AIM to ltburch2000 Send a message via Yahoo to ltburch2000
Probably not much of a concern

Since SageTV does not need to address a large amount of memory there would be little advantage to going 64 bit. In fact going 64 bit would simply increase the memory requirements since all the pointers in the JVM would be twice as large.

But I agree it is a bit of a pain that you need to find and install 32 bit libraries just for sage but as the linux version was always targeted at VARs who would likely prefer the 32 bit version anyway.

Lee Burch
Reply With Quote
  #11  
Old 10-23-2010, 03:31 PM
kireol kireol is offline
Sage User
 
Join Date: Oct 2010
Location: Michigan
Posts: 14
Quote:
Originally Posted by ltburch2000 View Post
Since SageTV does not need to address a large amount of memory there would be little advantage to going 64 bit. In fact going 64 bit would simply increase the memory requirements since all the pointers in the JVM would be twice as large.

But I agree it is a bit of a pain that you need to find and install 32 bit libraries just for sage but as the linux version was always targeted at VARs who would likely prefer the 32 bit version anyway.

Lee Burch
Agreed that sageTV itself doesnt need a lot of memory. But with todays computers, you can run many many things on the same computer, where now you would need a lot of RAM. My server sits around 9 gigs used average constantly for example.
Reply With Quote
  #12  
Old 10-23-2010, 05:05 PM
drewg drewg is offline
Sage Icon
 
Join Date: Aug 2007
Location: Richmond, VA
Posts: 1,042
Quote:
Originally Posted by ltburch2000 View Post
Since SageTV does not need to address a large amount of memory there would be little advantage to going 64 bit
The advantage is that the 32b code is starting to rot, especially the 32-bit shims that allow running 32-bit executables on a 64-bit kernel. By providing a 64-bit binary, they get the advantage of using the most tested path (x86_64 app / x86_64 kernel) and avoiding the least (not at all?) tested path (ia32 app / x86_64 kernel). AFAIK, SageTV is the only PVR app that uses these legacy 32 bit code paths, and they're basically not tested at all by linux driver developers.

As a case in point, I remember a huge spate of problems a year ago or so where some driver didn't work with SageTV on x86_64 hosts due to a bug in the ia32 compat shims. I think it was Brandon who was having the problems..

Drew
__________________
Server HW: AMD Ryzen Threadripper 2990WX 32-Core
Server SW: FreeBSD-current, ZFS, linux-oracle-jdk1.8.0, sagetv-server_9.2.2_amd64
Tuner HW: HDHR
Client: Nvidia Shield (HD300, HD100 in storage)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Instructions to install SageTV on CentOS bastafidli SageTV Linux 8 12-10-2008 03:46 PM
Fresh install gone horribly wrong Stephmon SageTV Software 8 05-30-2008 07:32 PM
SageTV picking the wrong source or and tranmist to the wrong STB TechBill SageTV Software 34 09-28-2007 06:19 AM
Instructions on how to install stv's particularly SageMC PhillJones SageMC Custom Interface 4 02-25-2007 05:08 PM
Detailed .stv install instructions wheelrandolph SageTV Customizations 1 06-02-2005 09:37 PM


All times are GMT -6. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.