OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Can't run OO2.0 on Linux Redhat EL4 on x86_64 system. Help!

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
Scot
General User
General User


Joined: 02 Nov 2005
Posts: 6

PostPosted: Wed Nov 02, 2005 6:32 pm    Post subject: Can't run OO2.0 on Linux Redhat EL4 on x86_64 system. Help! Reply with quote

my system:
uname -a reports: 2.6.9-5.ELsmp #1 SMP Wed Jan 5 19:29:47 EST 2005 x86_64 x86_64 x86_64 GNU/Linux

/etc/redhat-release: Red Hat Enterprise Linux WS release 4 (Nahant Update 2)

when starting sofficxe, top shows javaldx, java.bin and gij running for a brief while, but
then they die and nothing happens.

Unforutunate since RHEL4 only includes oo1.1.2 in its official distro.!

thanks,

Scot
Back to top
View user's profile Send private message
AndrewZ
Moderator
Moderator


Joined: 21 Jun 2004
Posts: 4140
Location: Colorado, USA

PostPosted: Wed Nov 02, 2005 9:00 pm    Post subject: Reply with quote

Did you try strace?

Are you using OOo RPMs from OpenOffice.org?
Back to top
View user's profile Send private message Visit poster's website
Scot
General User
General User


Joined: 02 Nov 2005
Posts: 6

PostPosted: Thu Nov 03, 2005 11:33 am    Post subject: Reply with quote

Hi,
Yup- I'm using hte OOo RPMs. I did try strace, but I couldn't tell what it was doing.

It hangs very qucikly on:

close(4) = 0
read(3,

I can't tell what file 3 is...

The previous (far up in the output) open statement is:

Here is the block of output from the last close(3) to where it hangs:

close(3) = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], Cool = 0
rt_sigaction(SIGINT, {0x432ba0, [], SA_RESTORER, 0x3f8ed2e410}, {SIG_DFL}, Cool = 0
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 6636
rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, 0x7fbfffeaa4, WNOHANG, NULL) = -1 ECHILD (No child processes)
rt_sigreturn(0xffffffffffffffff) = 0
rt_sigaction(SIGINT, {SIG_DFL}, {0x432ba0, [], SA_RESTORER, 0x3f8ed2e410}, Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
read(255, "moz_lib=\nfor moz_lib_path in $MO"..., 6485) = 4138
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
stat("/usr/lib/libnss3.so", {st_mode=S_IFREG|0755, st_size=402068, ...}) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
rt_sigprocmask(SIG_BLOCK, NULL, [], Cool = 0
access("/opt/openoffice.org2.0/program/javaldx", X_OK) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
pipe([3, 4]) = 0
rt_sigprocmask(SIG_BLOCK, [INT CHLD], [], Cool = 0
lseek(255, -1279, SEEK_CUR) = 5206
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x2a9557d470) = 6637
rt_sigprocmask(SIG_SETMASK, [], NULL, Cool = 0
rt_sigaction(SIGCHLD, {0x433e50, [], SA_RESTORER, 0x3f8ed2e410}, {0x433e50, [], SA_RESTORER, 0x3f8ed2e410}, Cool = 0
close(4) = 0
read(3, <unfinished ...>

Does this help?

Thanks!

scot
Back to top
View user's profile Send private message
AndrewZ
Moderator
Moderator


Joined: 21 Jun 2004
Posts: 4140
Location: Colorado, USA

PostPosted: Thu Nov 03, 2005 3:17 pm    Post subject: Reply with quote

Scot wrote:

access("/opt/openoffice.org2.0/program/javaldx", X_OK) = 0
Does this help?


I'm not a guru here, but I wonder what would happen if you temporarily removed Java and gij from your system?
Back to top
View user's profile Send private message Visit poster's website
Scot
General User
General User


Joined: 02 Nov 2005
Posts: 6

PostPosted: Thu Nov 03, 2005 5:50 pm    Post subject: Reply with quote

But don't I need java and gij for the thing to work period?
Back to top
View user's profile Send private message
AndrewZ
Moderator
Moderator


Joined: 21 Jun 2004
Posts: 4140
Location: Colorado, USA

PostPosted: Thu Nov 03, 2005 6:00 pm    Post subject: Reply with quote

No, only some parts of OpenOffice.org require Java.

From the OpenOffice.org download instructions:
Quote:
Java is required to use the new embedded Java technology based HSQLDB database engine, and or make use of accessibility and assistive technologies. If you do not require database tables or accessibility integration, then you do not need to download and install Java.


Also, I suggest disabling Java and gij for troubleshooting purposes. If the problem persists with Java and gij disabled, then we'll try something else.
Back to top
View user's profile Send private message Visit poster's website
Scot
General User
General User


Joined: 02 Nov 2005
Posts: 6

PostPosted: Thu Nov 03, 2005 7:28 pm    Post subject: Reply with quote

Wow- what do you know. I moved java and gij and soffice seems to start up nicely now.
What's more, when I put java and gij back, it still ran.

I guess it does some optional setup stuff with java and is incompatible with my java?
Is this right?

I assume, then, that the normal java usage will not work for me now, either? Well, at
least I got most things working. Any suggestions on how to debug what's wrong with
this version of java? It works for other things.

%java -version
java version "1.4.2"
Java(TM) 2 Runtime Environment, Standard Edition (build 2.2)
IBM J9SE VM (build 2.2, J2RE 1.4.2 IBM J9 2.2 Linux amd64-64 j9xa64142-20050609 (JIT enabled)
J9VM - 20050524_1742_LHdSMr
JIT - r7_level20050518_1803)


Thanks a lot!

scot
Back to top
View user's profile Send private message
AndrewZ
Moderator
Moderator


Joined: 21 Jun 2004
Posts: 4140
Location: Colorado, USA

PostPosted: Thu Nov 03, 2005 9:23 pm    Post subject: Reply with quote

Hmm. Interesting. Now I suggest trying Sun Java or a 32-bit Java. These tests will help you find out whether the problem is IBM Java or 64-bit Java. Again, I am not a guru, but it is likely that 32-bit OpenOffice.org cannot use 64-bit Java.

When you run OpenOffice.org, check to see what Java versions it has detected. In Writer (or probably any program) go to Tools->Options then OpenOffice.org->Java.
Back to top
View user's profile Send private message Visit poster's website
AndyC
General User
General User


Joined: 26 Oct 2005
Posts: 9
Location: Northwich, UK

PostPosted: Fri Nov 04, 2005 1:09 am    Post subject: Reply with quote

Ah-ha! Finally, some info on the same problem that I have been having (see post from over a week ago!)

I have had the exact same problem (except I'm using a different kernel version) on the exact same set up.

I've got IBM java and Sun 64bit Java installed. I'll try the 32 bit java in a mo.

Thanks for the info.

Andy
_________________
Why use Windows when you can p-p-p-pick up a penguin...
Back to top
View user's profile Send private message
AndyC
General User
General User


Joined: 26 Oct 2005
Posts: 9
Location: Northwich, UK

PostPosted: Fri Nov 04, 2005 2:03 am    Post subject: Reply with quote

Okay, I've installed the 32 bit version of Java and tried running OO.o with the same results. I've tried installing OO without Java on the system and it still doesn't work. I think I'll give up and say that Open Office 2 is not ready for our corporate systems. This is unfortunate, because I really like OO.

Hopefully I may get time to look into this some more in the future.

AndyC
_________________
Why use Windows when you can p-p-p-pick up a penguin...
Back to top
View user's profile Send private message
Scot
General User
General User


Joined: 02 Nov 2005
Posts: 6

PostPosted: Fri Nov 04, 2005 4:24 pm    Post subject: Reply with quote

Andy,

I'll keep working at trying different javas (but not for a few days- too busy) and post
what I find.

I renamed /usr/bin/java and /usr/bin/gij for my test to get it to startup finally.

Did yo try that precisely? Or wherever else `which java` and `which gij` point to?

scot
Back to top
View user's profile Send private message
AndyC
General User
General User


Joined: 26 Oct 2005
Posts: 9
Location: Northwich, UK

PostPosted: Wed Nov 09, 2005 1:23 am    Post subject: Reply with quote

Okay, I've FINALLY, got OO.o2 working on our systems, but only by renaming any java versions so that the open office startup script can't see java.

It ran fine when it couldn't see any java installations, but when I renamed java to the recognised system calls, it failed.

Looks like I'm going to have to mess around with the startup script so that the system renames java when open office is called. Sad

Don't you just love it when you have to mess around with scripts Rolling Eyes

Andy
_________________
Why use Windows when you can p-p-p-pick up a penguin...
Back to top
View user's profile Send private message
AndyC
General User
General User


Joined: 26 Oct 2005
Posts: 9
Location: Northwich, UK

PostPosted: Thu Nov 10, 2005 2:29 am    Post subject: Reply with quote

Just to follow this up, I modified the startup script so that it renamed all of the java files that are examined (sun java, ibm java and gij). The program then ran successfully. I also ensured that the startup script would rename the files back once the startup script had finished.

Now I tried to open OO with the unmodified startup script, and it worked (figure that one out if you can) but, when I look at the java installation, it takes 90 seconds (I've counted) to determine that there is a Sun java installation in /usr/java/jre1.5.0_05.

Why should this take so long? All of the options boxes in the java box are blank. What are they for (the help file may as well be in Latin, cos I didn't understand it) and if I poulate them with options (what options?) will the Java options box start faster? Any other options work fine, it is just the java box that is slow.

Andy

P.S. Would it help if I started the java problem on a different thread?
_________________
Why use Windows when you can p-p-p-pick up a penguin...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group