On Mon, Jan 03, 2005, Doug Summers wrote:
Doug Summers wrote:
Using OpenPKG 2.2.2, compiled from source...
Installed to /openpkg, which is symlinked to /usr/local...
After compiling and installing Mozilla 1.7.3 (from release/2.2/SRC/PLUS)
it won't run, giving me this error:
Oh, i did not see the won't run
[EMAIL PROTECTED] /usr/local/RPM/PKG # mozilla
couldn't set locale correctly
Just a warning, should not lead to a crash.
[...]
After tweaking the /openpkg/bin/mozilla startup script to not try to set
the LANG variable the locale errors go away, but now Mozilla gives me
this (as any user including root):
mozilla -v
mozilla: process still not running (not available remotely)
mozilla: running new process
mozilla: exec: /openpkg/lib/mozilla/mozilla /dev/null 21
Try the following script e.g. with mozilla -l /tmp/mozilla.log and
look in the logfile.
8--8---8--8---
#!/bin/sh
##
## mozilla -- Mozilla Browser Startup Control Utility
## Copyright (c) 2000-2003 The OpenPKG Project http://www.openpkg.org/
## Copyright (c) 2000-2003 Ralf S. Engelschall [EMAIL PROTECTED]
## Copyright (c) 2000-2003 Cable Wireless http://www.cw.com/
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
# configuration
mozilla_dir=/opkg/lib/mozilla
mozilla_bin=/opkg/lib/mozilla/mozilla
xsel_bin=/opkg/bin/xsel
wmctrl_bin=/opkg/bin/wmctrl
# option parsing
opt_v=no
opt_w=no
opt_t=no
opt_r=
opt_l=/dev/null
while [ .$1 != . ]; do
case $1 in
-m|-mail|--mail ) opt_m=yes; shift ;;
-v|--verbose) opt_v=yes; shift ;;
-w|--window ) opt_w=yes; shift ;;
-t|--tab) opt_t=yes; shift ;;
-r|-remote|--remote ) opt_r=$2; shift; shift ;;
-l|--log) opt_l=$2; shift; shift ;;
-* ) echo $0:ERROR: invalid option \$1\ 12; exit 1 ;;
* ) break ;;
esac
done
if [ $# -eq 0 ]; then
set --
fi
(echo \n; date; echo \n) $opt_l
verbose () {
if [ .$opt_v = .yes ]; then
echo mozilla: $* 12
fi
}
# establish Mozilla environment
MOZILLA_FIVE_HOME=$mozilla_dir
export MOZILLA_FIVE_HOME
LANG=en_US.ISO8859-1
export LANG
# special case of direct remote option
if [ .$opt_r != . ]; then
verbose exec: $mozilla_bin -remote \$opt_r\
exec $mozilla_bin -remote $opt_r
fi
# special case of direct email option
if [ .$opt_m != . ]; then
$mozilla_bin -remote ping() $opt_l 21
if [ $? -eq 0 ]; then
verbose $mozilla_bin -remote \xfeDoCommand(openInbox)\
$mozilla_bin -remote xfeDoCommand(openInbox)
else
verbose exec: $mozilla_bin -mail
exec $mozilla_bin -mail
fi
fi
# determine Mozilla run-time status
$mozilla_bin -remote ping() $opt_l 21
if [ $? -eq 0 ]; then
verbose process already running (available remotely)
restart=no
else
verbose process still not running (not available remotely)
restart=yes
fi
# open one or more URLs
first=yes
for url in $@; do
# determine URL to open
if [ .`echo .$url | grep '@'` != . ]; then
# expand at-sign into X11 selection buffer
xsel=`($xsel_bin --paste) 2$opt_l`
url=`echo $url | sed -e s;@;$xsel;`
fi
if [ .$url = . ]; then
# expand an empty URL into the internal blank page
url=about:blank
else
# expand special URL constructs
case $url in
auto:* )
url=`echo $url | sed -e 's;^auto:;;'`
case $url in
http://* | https://* | ftp://* | file://* ) ;;
www.* ) url=http://$url; ;;
ftp.* ) url=ftp://$url; ;;
*.tar.gz | *.tgz ) url=ftpsearch:$url ;;
* * ) url=google:$url ;;
[0-9]* ) url=rfc:$url ;;
* ) url=leo:$url ;;
esac
;;
esac
case $url in
http://* | https://* | ftp://* | file://* )
: # URL is