Problem with AUR
Hi, I'm new to Arch Linux. When I tried to install Librewolf using yay or compiling from pkgbuild, the installation was taking a very, very long time and consumed 6 to 7 GB of space and didn't seem to be completing. I was so excited that AUR has everything I needed. Am I doing it something wrong?
Edit: Thank you all! It is working fine now after trying librewolf-bin.
Edited 12 Sep 2021. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 79 · 91% up
- Kind
- Text
- ID
- pmolye
26 comments
Deleted before we saved it.
Thanks. I will try
Yeah, try to use bins when given the chance. Compiling is a feat, but you rarely need it.
Deleted before we saved it.
Installing librewolf will download the source and compile it which takes a long time because browsers are huge.
You want librewolf-bin
Thanks. Let me try this
If you ever built a browser like Firefox from source, you understand you're not doing anything wrong and it might take a long while depending on your system.
I have 16 core AMD Ryzen and it took maybe an hour to compile Firefox from source ( this was before Firefox was default wayland compatible and I wanted a Wayland version)
This happened with other very small packages as well. That's why
Don't tell me the other "small" package is Brave
this take even longer than LibreWolf to compile
also if you want to compile yourself, edit the line MAKEFLAGS in /etc/makepkg.conf with the -j flag: uncomment it and put the number of your cpu threads next to it (example: -j12)
You are doing something wrong, takes around 20 minutes with a Ryzen 3700X.
Edit: since I'm getting downvoted, firefox compilation is not getting faster, they add more and more rust/cargo crates over the time and this is making the builds slower. The only reason I could see this taking an hour on a 16 core CPU is if you are actually not building with 16threads or you use a slow HDD for storage.
Source: I've been updating firefox on voidlinux, therefor building firefox releases for for different architectures and libc implementations to test them: https://github.com/void-linux/void-packages/commits/master?branch=master&path[]=srcpkgs&path[]=firefox&path[]=template
Do you use ccache or anything? Or just the default build settings. 20 minutes seems quite fast to me.
Is there a reason Mozilla doesn't make the Rust code compile concurrently? It takes maybe 4 minutes with my 5950X to compile the C stuff and then 15 minutes to compile the Rust code
Yeah as a rule of thumb, if something you're trying to install from AUR is taking forever to compile, look for a -bin version for a pre-compiled binary.
Browsers are basically operating systems when it comes to code comexity, so this is to be expected. As was pointed out here already, the AUR normally doesn't use pre-compiled packes like the official repos, but instead compiles them from source. The AUR is mostly just a collection of PKGBUILD files, which are scripts for automatically compiling the programs.
Relatively common AUR packages that have long compilation times have a "-bin" alternative in the AUR that packages a precompiled binary. If you don't want to deal with long compilation times you can check for these.
installing from the aur means building from source. Use librewolf-bin.
Try:
yay -S librewolf-binOr:
paru -S librewolf-binSounds like the same mistake I made when trying to download firefox-kde-opensuse, I was like why the hell is this taking hours?
Librewolf has trouble on almost every distro. Install it via flatpak instead
Don't mean to be stupid and all, but have you tried getting all your needed base-devel and software updates?
if not:
sudo pacman -Syuu
and
sudo pacmac -S -needed base-devel
Sometimes a conflict with the older versions of some repo/program you may have. I had AUR installation errors because pacman and yay had some conflict and I had to do some digging before finding out what happened!
-4 upvotes