LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Firefox Installer/Thunderbird not Running (https://www.linuxquestions.org/questions/linux-software-2/firefox-installer-thunderbird-not-running-272769/)

Kenji Miyamoto 01-01-2005 10:07 PM

Firefox Installer/Thunderbird not Running
 
  • Whenever I try to execute the Firefox 1.0 installer on Mandrakelinux, it exits and leaves this in the Konsole:
    Code:

    [root@localhost firefox-installer]# "./firefox-installer"
    SCIM: im_module_init
    free(): invalid pointer 0x821b828!
    free(): invalid pointer 0x821b800!
    ./firefox-installer: line 56:  6854 Segmentation fault      ./${BINNAME}-bin $@

  • Also, whenever I try to execute the Thunderbird shell, it returns only this, then the "[root @ localhost]#" disappears:
    Code:

    SCIM: im_module_init

__J 01-01-2005 10:56 PM

Don't know why its seg faulting, but another 10.1 user had problems with libs (precompiled firefox binaries are compiled with a older version of libstdc++ than 10.1 comes with)

You might be able to get around this if you get a precompiled and put it into the firefox-installer directory
(since the run-mozilla.sh file sets the firefox-installer directory up in LD_LIBRARY_PATH).

otherwise you would have to compile it from source using a .mozconfig file.

Kenji Miyamoto 01-01-2005 11:33 PM

Quote:

Originally posted by __J
otherwise you would have to compile it from source using a .mozconfig file.
Well, how would I do this? I've never had much luck with compiling programs, so I'd like a step-by-step instruction set, if you'd be so kind.

__J 01-01-2005 11:53 PM

Mozilla is a little different than other packages.

1) get the firefox-1.0-source from the mozilla ftp site and extract it ( it will create a folder name 'mozilla'

2) cd into the mozilla directory and do 'touch .mozconfig' (without the single quotes) and make a dir called firefox-objects

3) open up the .mozconfig file with the text editor of your choice

4) in this file you put the options that will be passed to configure. Here is mine:

#########
# .mozconfig
#########

mk_add_options MOZ_OBJDIR=$TOPSRCDIR@/firefox-objects
. $topsrcdir/browser/config/mozconfig
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-tests
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --enable-xft
ac_add_options --disable-freetype2

#########
# end
#########

5) make -f client.mk build

6) make -C firefox-objects/browser/installer

the above command will make a folder called firefox move that to you home folder, /usr, or /usr/local and create a symlink in you path (for ex. if you move it to /usr/ do: (as root) ln -s /usr/firefox /usr/bin/firefox)

NOTE: you will need some -devel packages as well as libIDL-0.8.x (and libIDL-0.8.x-devel) and the build takes a long time depending on the speed of your machine. Also, if you use freetype instead of xft then above substitute:

ac_add_options --disable-xft
ac_add_options --enable-freetype2

You can only use one or the other.

All that being said, you may try to find the binary lib libstdc++.so.5 from a mandrake 10.0 package somewhere (gcc-g++-3.3.x is what package it comes from) and try that with the binary firefox-installer before trying to compile it yourself might save you alot of trouble.

Hope all this helps out post back if you need anything else

Kenji Miyamoto 01-02-2005 12:22 AM

I can't seem to be able to save .mozconfig. Can someone tell me how to get into KWrite as su?

Kenji Miyamoto 01-02-2005 12:34 AM

Nevermind the above, I actually got CHMOD to work.

Now, why does this happen?
Code:

checking whether the C++ compiler (gcc  ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

Why doesn't the GCC work?

__J 01-02-2005 12:35 AM

open an xterm and cd to wherever the mozilla dir is. type 'chown -R <your user name> mozilla. that will change the ownership of the mozilla dir to you and you can save it.

I must stress 2 things:

1) the build of firefox takes a long time to complete

2) due to the way mandrake is set up, compiling is sometimes a pain due to the packages being split into lib and lib-devel. make sure you have all the development tools installed (gcc, g++, automake, autoconf etc...) and the necessary -devel packages in order for things to compile.

Kenji Miyamoto 01-02-2005 12:38 AM

Quote:

Originally posted by __J
open an xterm and cd to wherever the mozilla dir is. type 'chown -R <your user name> mozilla. that will change the ownership of the mozilla dir to you and you can save it.

I must stress 2 things:

1) the build of firefox takes a long time to complete

2) due to the way mandrake is set up, compiling is sometimes a pain due to the packages being split into lib and lib-devel. make sure you have all the development tools installed (gcc, g++, automake, autoconf etc...) and the necessary -devel packages in order for things to compile.

I selected every development package when I installed it, yet the GCC still doesn't seem to work.

__J 01-02-2005 12:43 AM

hmmm... somethings missing in the system. config.log has the details on why it failed but it's not the easiest file to read. Try to post that section of config.log. Also, have you gotten the binary firefox-installer to get past the segmentation fault to where it complains about libstdc++.so.5?

The workaround might be the best way to go. Unfortunately, Mandrake isn't the easiest distro to use if you want to compile things due to the way it splits packages.

make sure you have gcc, g++, binutils, autoconf, automake m4 make libtool etc..

tisource 01-02-2005 12:47 AM

I had a very similar error on Fedora Core 3 when trying to install firefox or run thunderbird. I had to install an additional rpm called compat-libstdc++ and both worked fine again. I'm not sure about Mandrake - its obviously different.

Hope this info helps.

__J 01-02-2005 12:56 AM

Definitely worth a try. I would look for it in the Mandrake package utility

Kenji Miyamoto 01-02-2005 01:11 AM

After following a trail or RPMs all of the way to the GlibC-Core, I found out that it'd never work. The files won't install, so all of this was for nothing... I wish that someone could give me a list of packages that I'd have to install, so I wouldn't have to go through all of this. Also, it'd be nice if the built-in Mandrake development packages actually worked. Where the biggest problem is lies within GCC 3.4.3-2, which requires several packages indirectly.

__J 01-02-2005 05:05 AM

Just read on another site about someone with the same problem with you (the segmentation fault) with 10.1 official. He used urpmi to install firefox and it worked.
hope this helps.

Kenji Miyamoto 01-02-2005 09:35 AM

Quote:

Originally posted by __J
Just read on another site about someone with the same problem with you (the segmentation fault) with 10.1 official. He used urpmi to install firefox and it worked.
hope this helps.

What's the site URL?


All times are GMT -5. The time now is 11:02 AM.