LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices

Reply
 
Search this Thread
Old 05-29-2004, 01:46 AM   #1
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Rep: Reputation: 15
Mozilla post-install problems


Necessity forced me to upgrade from Mozilla 1.4 (that came default with Mandrake 9.2) to 1.6 (which I downloaded from Mozilla.org). Now I uninstalled the old version and followed the instructions to get the new one installed and it worked, I'm using 1.6 as I type, but there are some post-install snags I'm not sure how to get around yet. I can't seem to get it into my start menu. I use Menudrake and add it manually but it won't take. To get it to work I had to use Konqueror to search my system for every file with "mozilla" in it until I found the appropriate script. So I made a short cut to that script on the desktop but if I try to open Mozilla twice without shutting the first instance it tells me that the default profile is in use and I'll need to make a new profile if I want to open another instance of Mozilla. However I can open as many instances of Mozilla as I want by just opening one and then right-clicking a link to "Open link in new window". Can anyone help me figure out how to have it as seamless as the 1.4 version that came with the CDs?
 
Old 05-29-2004, 06:16 AM   #2
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
when you say you try to add it to the start menu but it won't take, what do you mean? it doesn't show up in the menu after adding? are you clicking "save" after adding Moz to the menu? if you're using KDE, try this method..............

right click on the kicker "K"
choose "menu editor"
navigate to "networking"->"www"
click "add application"
for title name it Mozilla (or whatever you like)
for command put "/usr/lib/mozilla/mozilla" (without the "quotes", & adjust that path as needed to point to your mozilla executable. that's the default location, so unless you did a custom install path, that should work)
choose an icon
click "save"
restart KDE & it should be in the kicker menu

as a default, Mozilla will only allow you to run one instance of a profile at a time, so your profile in use problem is not really a problem.

otis
 
Old 05-29-2004, 11:06 AM   #3
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
It wouldn't show up after adding it. Strangely when I did it your way (which is the same end program just a shorter way to get to it) it took. But I still have it not letting me launch it more than once. I used to be able to do it with 1.4 and can still do it with Konqueror and IE when I use windows. To me that is a problem. I can have more than one browser instance opened if I use the "Open in new window" right-click option, just not by clicking the icon from the menu or the desktop.
 
Old 05-29-2004, 12:01 PM   #4
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
where does the execute command point to from your desktop icon? i don't use desktop shortcut to launch moz, but perhaps the execute command needs to be modified from there? i launch Moz from a shortcut in my kicker bar. and, now that i looked, the path to my Mozilla executable is different from what i wrote in my earlier post. if your path doesn't look like this, then try changing it to........

/usr/bin/mozilla

i can launch as many instances of Moz as i want using that command path, with no profile problems.

otis
 
Old 05-29-2004, 12:29 PM   #5
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
usr/local/mozilla/mozilla is where I've got it, and it works, but I can't launch a second browser with it. Here's the script, maybe something in it needs to modified. Can you see something that's obviously out of whack?:

#!/bin/sh
#
# The contents of this file are subject to the Netscape Public License
# Version 1.0 (the "NPL"); you may not use this file except in
# compliance with the NPL. You may obtain a copy of the NPL at
# http://www.mozilla.org/NPL/
#
# Software distributed under the NPL is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
# for the specific language governing rights and limitations under the
# NPL.
#
# The Initial Developer of this code under the NPL is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All Rights
# Reserved.
#

## $Id: mozilla.in,v 1.3 2002/08/07 11:46:15 seawood%netscape.com Exp $
##
## Usage:
##
## $ mozilla [args]
##
## This script is meant to run the mozilla-bin binary from either
## mozilla/xpfe/bootstrap or mozilla/dist/bin.
##
## The script will setup all the environment voodoo needed to make
## the mozilla-bin binary to work.
##

#uncomment for debugging
#set -x

moz_libdir=/usr/local/lib/mozilla-1.6
MRE_HOME=/usr/local/lib/mre/mre-1.6

# honor MOZILLA_FIVE_HOME if it's there
if [ -n "$MOZILLA_FIVE_HOME" ] ; then
dist_bin="$MOZILLA_FIVE_HOME"
else
# Use run-mozilla.sh in the current dir if it exists
# If not, then start resolving symlinks until we find run-mozilla.sh
found=0
progname=$0
curdir=`dirname "$progname"`
run_moz="$curdir/run-mozilla.sh"
if test -x "$run_moz"; then
dist_bin=$curdir
found=1
else
here=`/bin/pwd`
while [ -h "$progname" ]; do
bn=`basename "$progname"`
cd `dirname "$progname"`
progname=`/bin/ls -l "$bn" |sed -e 's/^.* -> //' `
if [ ! -x "$progname" ]; then
break
fi
curdir=`dirname "$progname"`
run_moz="$curdir/run-mozilla.sh"
if [ -x "$run_moz" ]; then
cd "$curdir"
dist_bin=`pwd`
found=1
break
fi
done
cd "$here"
fi
if [ $found = 0 ]; then
# Check default compile-time libdir
if [ -x "$moz_libdir/run-mozilla.sh" ]; then
dist_bin=$moz_libdir
else
echo "Cannot find mozilla runtime directory. Exiting."
exit 1
fi
fi
fi

script_args=""
moreargs=""
debugging=0
MOZILLA_BIN="mozilla-bin"

if [ "$OSTYPE" = "beos" ]; then
mimeset -F $MOZILLA_BIN
fi

while [ $# -gt 0 ]
do
case "$1" in
-p | -pure)
MOZILLA_BIN="mozilla-bin.pure"
shift
;;
-g | --debug)
script_args="$script_args -g"
debugging=1
shift
;;
-d | --debugger)
script_args="$script_args -d $2"
shift 2
;;
*)
moreargs="$moreargs \"$1\""
shift 1
;;
esac
done

export MRE_HOME
eval "set -- $moreargs"
if [ $debugging = 1 ]
then
echo $dist_bin/run-mozilla.sh $script_args $dist_bin/$MOZILLA_BIN "$@"
fi
exec "$dist_bin/run-mozilla.sh" $script_args "$dist_bin/$MOZILLA_BIN" "$@"
 
Old 05-29-2004, 12:51 PM   #6
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
i dunno. maybe it's because you didn't use the default install location for Moz, which is /usr/lib/mozilla-(version). i installed Moz to my /opt directory during version 1.4 & had several problems with it. i reinstalled it do the default path, & every version ever since, & never had any problems with Moz. did you try running it from the /usr/lib/mozilla binary path, just for kicks? if that don't work, maybe a reinstall to the default directory. other than those 2 options, i don't know what else to suggest, sorry.

otis
 
Old 05-30-2004, 12:58 AM   #7
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
Maybe a symbolic link would help. To make the proper link I'd need to run: [b]ln -s usr/local/mozilla/mozilla /usr/lib/???[/]b <-assuming I want linux to think I have a default install, what do I replace the ??? with?
 
Old 05-30-2004, 05:15 AM   #8
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
i'm not understanding. what do you want to make a symlink to? since you didn't install Moz to the default location, there will be no Moz in /usr/lib, so there'd be nothing there to symlink. did you try launching it via /usr/bin/mozilla? that will work, because regardless of where you installed it, the binary executable is still gonna end up in /usr/bin.

otis
 
Old 05-30-2004, 08:43 AM   #9
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
usr/bin/mozilla = -bash: command: mozilla not found

As for the symlink. I was thinking I'd make the required directories (which would be empty) and then link to them so that the system'd think everything was setup default.

I'm beginning to think I should uninstall Mozilla, then use the automated installer to put version 1.4 back in, then write down just which directories everything is put into by default and then uninstall and go back to put all of the 1.6 components in the same locations.
 
Old 05-30-2004, 09:15 AM   #10
otish1000c
Member
 
Registered: May 2004
Location: Pennsylvania, USA
Distribution: dual boot.... Mandrake 10.0OE/10.xcooker
Posts: 611

Rep: Reputation: 30
hmmmm.............

i would have thought that regardless of where you put the install path, it would still dump the executabe in /usr/bin by default. maybe not.............

as for uninstall/reinstall, that might be your best bet now. but, i don't see any need to go back to 1.4 first. just uninstall 1.6, delete it's remnants, then reinstall to the default paths using the installer. to find out what bits of mozilla might be laying around after uninstalling, type this in terminal as root......

find / -name *mozilla*

hit enter

also, don't delete the .mozilla directory in /home. that contains your personal settings which will be retained upon reinstall/upgrade.

otis
 
Old 05-30-2004, 04:49 PM   #11
OC_eobard
Member
 
Registered: May 2004
Distribution: Slackware 10.2, Ubuntu 6.10
Posts: 94

Original Poster
Rep: Reputation: 15
I'm thinking that putting the 1.4 back in would help because I could then go through the system and make note of where everything's supposed to be so that way I can get it all in place perfectly when I re-do 1.6
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
slackware 10 post-install problems cpt_haddock Linux - Newbie 1 10-30-2004 05:36 PM
Fedora problems post-install johngalt Fedora 0 08-18-2004 08:55 AM
KDEInit problems, post-install of 10.0 Official lhoff Mandriva 4 06-28-2004 04:00 PM
Post Install Problems r4merlin Red Hat 1 11-03-2003 06:16 PM
slackware 9 post install problems Metroid Slackware 10 08-16-2003 02:58 AM


All times are GMT -5. The time now is 01:21 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration