Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved!] Installing Firefox Nightly?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
wolly01
n00b
n00b


Joined: 22 Jul 2017
Posts: 32

PostPosted: Tue Jan 03, 2023 2:57 am    Post subject: [Solved!] Installing Firefox Nightly? Reply with quote

Dear Gentoo Fourm:

I would like to add Firefox Nightly to my Gentoo system. To my knowledge and googling there is no portage atom or simple USE flag on the regular ww-client/firefox which enables me to emerge it. I have tried downloading and running the official binary (which is targeted for Ubuntu systems): it immediately crashes! Also, if i launch it via an x-term window that window crashes too so I cannot access debug info / error messages that way. I have done some googling and the stock answers on Stack-Overflow do not seem to work for me.

On this Gentoo forum I can find a few topics pertaining to this problem, but they are targeted at people with greater knowledge of Gento/Programming than I and suggest compiling Nightly ones-self or using a particular overlay. I lack the requisite knowledge to do either off of my own initiative (but am willing to accept help if someone would be kind enough to offer specific instructions). Has anyone managed to get Nightly running on Gentoo and is able to offer specific instructions to help me get it running on my own system?

Best wishes!


Last edited by wolly01 on Tue Jan 03, 2023 5:38 am; edited 1 time in total
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 304

PostPosted: Tue Jan 03, 2023 4:39 am    Post subject: Reply with quote

The Firefox nightly build is released as a binary (pre-compiled). It works on any Linux system, not just Ubuntu. As it is released daily, I don't think it would be practical to have it as a package on your Gentoo system managed through portage, but that is just my own personal opinion. All I did was go to the moziilla site, download the tar.gz file, and extract it. This creates a folder called firefox. Inside are two binary files, firefox and firefox-bin. Click on either one and see if it opens from within that folder. It contains its own libraries in the folder from what I can see. Both files opened just fine on my machine and launched the firefox nightly build. There is not a .desktop file in the folder, but if you need that you can easily create your own. If firefox doesn't open on your system or crashes maybe there is another issue. Just as an example, the file I downloaded is named firefox-110.0a1.en-US.linux-x86_64.tar.bz2 if that helps you find what you are looking for. It will be named differently for every build I am sure.
EDIT: FYI, to update the nightly build, you can do that from within the firefox application. Just go to the application menu (hamburger menu in top right corner)>help>about nightly. You will see that it will say checking for updates. There is an updater binary in the folder that firefox uses to perform its own updates of the nightly build.
Back to top
View user's profile Send private message
wolly01
n00b
n00b


Joined: 22 Jul 2017
Posts: 32

PostPosted: Tue Jan 03, 2023 4:58 am    Post subject: Reply with quote

Thanks for the reply. This is what I tried and successfully extracted. Unfortunately running either exec causes nothing to happen (it appears to try to run and then immediately crashes). All I can think of is a dependency issue but I have a working kde desktop wherein regular firefox works.

I will retry as suggested later today and report back. But it is unlikely that the problem has fixed itself. (Note when running the binary my system does not crash.)
Back to top
View user's profile Send private message
wolly01
n00b
n00b


Joined: 22 Jul 2017
Posts: 32

PostPosted: Tue Jan 03, 2023 5:10 am    Post subject: Reply with quote

Ok I managed to finagle an error message by logging in as root, opening dolphin in xterm and managing to try to exec the file. The xterm window survived and outputted the following:

Code:

XPCOMGlueLoad error for file /home/wolly/Wolly/Firefox-Nightly/firefox/libxul.so:
libdbus-glib-1.so.2: cannot open shared object file: No such file or directory
Couldn't load XPCOM.


I'm not sure what this means but will look into it. However in the mean time if someone knows what this means then please chime in and help!
Back to top
View user's profile Send private message
wolly01
n00b
n00b


Joined: 22 Jul 2017
Posts: 32

PostPosted: Tue Jan 03, 2023 5:18 am    Post subject: Reply with quote

Solved!

I needed the dependency:
Code:
dev-libs/dbus-glib
!

Many Thanks!
Back to top
View user's profile Send private message
rab0171610
Guru
Guru


Joined: 24 Dec 2022
Posts: 304

PostPosted: Tue Jan 03, 2023 5:20 am    Post subject: Reply with quote

Anytime, glad you got it figured out! For the future, best practice would be to just browse to the directory in the terminal and run the command, in the this case firefox or firefox-bin, as your regular user not as root. You will likely be able to get enough information from the terminal output to troubleshoot the graphical application.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 21725

PostPosted: Tue Jan 03, 2023 3:11 pm    Post subject: Re: [Solved!] Installing Firefox Nightly? Reply with quote

I see that you solved the thread, but I have a question about something you wrote:
wolly01 wrote:
Also, if i launch it via an x-term window that window crashes too so I cannot access debug info / error messages that way.
Could you elaborate on this? Firefox should not be able to crash its parent xterm window. One interpretation of your statement is that you told your desktop to open Firefox in the xterm, and that the xterm was created, started Firefox, then promptly exited cleanly when Firefox exited. If so, then the solution would be to open xterm explicitly, and then use the shell in that xterm to run Firefox. Firefox would still crash due to the dependency issue, but control would return to the shell, so the xterm would not exit, and you would be able to see the error message.
Back to top
View user's profile Send private message
wolly01
n00b
n00b


Joined: 22 Jul 2017
Posts: 32

PostPosted: Thu Jan 05, 2023 2:49 am    Post subject: Reply with quote

Possibly complete user error. I remember launching xterm then manually exec`ing the binary by specifying its path completely (as not to launch regular firefox) and then it immediately crashing out and killing the xterm. However I was trying a lot of things at the time and there is a decent chance I miss-remember what I actually did!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
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