LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-29-2006, 03:53 PM   #1
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Rep: Reputation: 30
Sametime Installation error with MOZILLA_FIVE_HOME


When I install Sametime and try to run.. I get an error that reads:

Access to valid Mozilla browser required. Please set MOZILLA_FIVE_HOME enviroment variable to point to GTK2+xft Mozilla Browser and restart Sametime

I did:

# MOZILLA_FIVE_HOME=/usr/lib/firefox
# echo $MOZILLA_FIVE_HOME
/usr/lib/firefox
# export $MOZILLA_FIVE_HOME
bash: export: `/usr/lib/firefox': not a valid identifier


So I tried installing Mozilla (Maybe it just didn't want Firefox) and got the same.. but with /opt/mozilla (which is where I installed Mozilla).

What am I doing wrong here?

And this is on SuSE Linux Enterprise Desktop 10
 
Old 08-29-2006, 05:01 PM   #2
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
# export $MOZILLA_FIVE_HOME
bash: export: `/usr/lib/firefox': not a valid identifier
MOZILLA_FIVE_HOME is the name of the environment variable. $MOZILLA_FIVE_HOME will be replaced with the contents of MOZILLA_FIVE_HOME. Don't use a $ when using export:
Code:
export MOZILLA_FIVE_HOME
The environment variable will only effect programs running from within the shell with the variable set. Setting that variable in one shell, and running Sametime (whatever that is) from a different shell or from some menu is equivalent to having not set the variable at all.
 
Old 08-29-2006, 05:08 PM   #3
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
Sorry.. I realized that myself and exported using export MOZILLA_FIVE_HOME with the same output..

Sametime uses Eclipse is there something I have to set within eclipse?
 
Old 08-29-2006, 05:38 PM   #4
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
I realized that myself and exported using export MOZILLA_FIVE_HOME with the same output..
I'm assuming you mean the "Access to valid Mozilla browser required" error.

Quote:
Sametime uses Eclipse is there something I have to set within eclipse?
Maybe. Check the documentation.


Is Sametime run by Eclipse itself? You could try running eclipse (from a shell) in an environment with MOZILLA_FIVE_HOME set.

Code:
$ MOZILLA_FIVE_HOME=/usr/lib/firefox eclipse
By the way, I just noticed that the commands that you've posted are all on prompts ending with a # as opposed to a $. While a $ signifies a normal user, the # usually signifies running the command as root... you're not running eclipse as root are you?
 
Old 08-29-2006, 05:58 PM   #5
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
No, most the work was done from $ and just tried with # once to see if it was the same with both users.

running: MOZILLA_FIVE_HOME=/usr/lib/firefox ./eclipse still gives me the same output as before although it blinks once before giving the error (strange).

CLFRB2002I: Located default properties /opt/IBM/sametime/sametime.properties
[08/29/2006 15:58:16] [com.ibm.collaboration.realtime.application.RTCApplication.checkBrowserWidget] ::SEVERE:: Access to valid Mozilla browser required. Please set MOZILLA_FIVE_HOME environment variable to point to GTK2+xft Mozilla browser and restart Sametime
 
Old 08-29-2006, 06:56 PM   #6
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
You say you've installed Mozilla. Did you try the same thing, but with the path of plain old Mozilla instead of Firefox?
 
Old 08-29-2006, 07:37 PM   #7
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by zhangmaike
You say you've installed Mozilla. Did you try the same thing, but with the path of plain old Mozilla instead of Firefox?
Yup.. installed mozilla to /opt/mozilla

chnaged the variable to point there.. and whammo.. still nothing.. Dunno what the flipside it could be.
 
Old 08-29-2006, 08:04 PM   #8
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
So as dumb as this sounds.. I did:

$ MOZILLA_FIVE_HOME=/usr/lib/xulrunner-1.8.0.1
$ export MOZILLA_FIVE_HOME
sametime

And it worked..

Why did I point MOZILLA_FIVE_HOME to that directory?

Within the sametime folder there was a script named locate-mozgtk2xfg.sh within there, I saw it was looking for libgtkembedmoz[.]so

So I just did a locate libgtkembedmoz and found where it was and tada.. I should however probably keep my MOZILLA_FIVE_HOME set to /usr/lib/firefox and create a ln in there to the libgtkembedmoz.so listed above.
 
Old 08-29-2006, 08:18 PM   #9
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
On my system, that library is in /usr/lib/mozilla-1.7.13/libgtkembedmoz.so ... so it seems that asking for the location of mozilla itself will only work on certain installations... they should be more specific.

If you have contact information, I'd suggest informing them of this problem and the simple fix.

Nice work.
 
Old 08-29-2006, 08:30 PM   #10
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
Strange...

The icon (which points to /usr/bin/sametime) still reports the error in post #1, If I go /usr/bin/./sametime (it runs fine) if I go /usr/bin/sametime (it runs fine), if I go /opt/IBM/sametime/./sametime (it runs fine) if I click on the shortcut icon.. no go (properties says /usr/bin/sametime)

Also, the MOZILLA_FIVE_HOME resets itself once I log off of the Terminal so it would have to be reset every single time I reboot or what not (how can I set that on logon) Also, i ln -s'ed the file from /usr/lib/firefox to the libgtkembedmoz.so file in xul... and it would not accept the symbolic link (when searching for the GTK..)

I guess this is really going to have to be a question for IBM Developers and not really myself eh..

Thanks for your help.. any insight on the last 2 findings?
 
Old 08-29-2006, 08:51 PM   #11
EclipseAgent
Member
 
Registered: Oct 2005
Location: California
Distribution: SLED 10, openSuSE 10.2, Ubuntu Drapper
Posts: 713

Original Poster
Rep: Reputation: 30
Ahhhhhhh

rpm -qa | grep xul
mozilla-xulrunner-1.8.0.1-32


There we are.. It's in the Mozilla xulrunner directory and not the Mozilla Directory (Is this the same as other distro's? How about Ubuntu?)
 
Old 08-29-2006, 09:26 PM   #12
zhangmaike
Member
 
Registered: Oct 2004
Distribution: Slackware
Posts: 376

Rep: Reputation: 31
Quote:
The icon (which points to /usr/bin/sametime) still reports the error in post #1, If I go /usr/bin/./sametime (it runs fine) if I go /usr/bin/sametime (it runs fine), if I go /opt/IBM/sametime/./sametime (it runs fine) if I click on the shortcut icon.. no go (properties says /usr/bin/sametime)

Also, the MOZILLA_FIVE_HOME resets itself once I log off of the Terminal so it would have to be reset every single time I reboot or what not (how can I set that on logon) Also, i ln -s'ed the file from /usr/lib/firefox to the libgtkembedmoz.so file in xul... and it would not accept the symbolic link (when searching for the GTK..)
These probably describe the same problem. Clicking the icon will run sametime in an environment without that variable set. All environment variables are only available to a single shell (environment) and child processes of that shell.

If you want environment variables to be persistant from one boot to the next, edit your /etc/profile or ~/.profile and add
Code:
export MOZILLA_FIVE_HOME=/whatever/path/works
The /etc/profile file is executed by all shells when any user logs in (this is the "system-wide" profile). The ~/.profile file is executed by all shells when that specific user logs in.

Quote:
Is this the same as other distro's? How about Ubuntu?
I don't know about Ubuntu. I can tell you it's different in Slackware, though.
 
Old 04-28-2007, 01:58 PM   #13
marknoten
LQ Newbie
 
Registered: Apr 2007
Posts: 5

Rep: Reputation: 0
Eclipse 3.2.2 64bit

I'm using this simple bash script to start Eclipse 3.2.2 64bit om my Amd machine.

$>cat /usr/bin/eclipse
#!/bin/sh
export MOZILLA_FIVE_HOME=/usr/lib64/xulrunner-1.8.1
export ECLIPSE_HOME="/opt/eclipse"
export LD_LIBRARY_PATH=/usr/lib64:.
$ECLIPSE_HOME/eclipse $*

$>java -version
java version "1.5.0_10"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_10-b03, mixed mode)

The integrated browser in Eclipse now works perfectly. ;-)

Regards,

Mark
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Report: IBM's Lotus Sametime Heads for Linux, Voice Messaging LXer Syndicated Linux News 0 08-15-2006 02:21 AM
LXer: IBM to release Sametime on Linux LXer Syndicated Linux News 0 08-15-2006 12:21 AM
Error on Fedora core 4 installation - Error informing the kernal about modifications monolegis Fedora 2 02-15-2006 06:11 PM
"MOZILLA_FIVE_HOME" environment variable cougyr Linux - Software 2 12-06-2003 11:51 PM
installation error: Error mounting sda1: Invalid Argument sadirmata Linux - Newbie 1 01-29-2002 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration