Still compiling, and still learning

My attempts to speed up Kazehakase by recompiling it, along with XULRunner, were only a modest success, but I did learn a few things, or at least about a few utilities that help.

First, if you’re using Arch Linux and you’re not using yaourt, you’re missing out. Yaourt makes everything easier. On top of all the nifty things it adds to pacman, you also get a great tool for compiling and building your own customized software.

For example, in my case, I’m having a terrible time getting abs to install. I get weird FTP errors (“Invalid PROTO command from server,” or something like that) and the tree won’t download or unfold for me. It’s frustrating, since I really wanted to be able to custom-compile some other applications.

Yaourt to the rescue: I open a folder for the application I want to remake. yaourt -G pkgname grabs the PKGBUILD and any associated construction files from AUR or the Arch repositories. Then I can edit the PKGBUILD manually, or use something like customizepkg to carve it into the shape I desire. And makepkg takes care of the rest.

Of course, when I started out using Arch, I picked it because I had no desire to compile things myself, and I still don’t (most of the time). I still feel time lost to recompiling is generally better spent doing more interesting things … like using your computer.

On the other hand, I also think that for some very old machines, Arch Linux is an improvement over Ubuntu, mostly because it’s leaner, but also because Arch seems geared toward low-level tweaks. Granted, similar tools are probably there for Ubuntu, but if you’re going to work at that level, it’s hard to beat the scripts and tools Arch users have designed for the task.

And besides, when I do try another Ubuntu installation, I have all the information I need for rebuilding the same applications, from the Arch side of the house.


2 thoughts on “Still compiling, and still learning

  1. Justin

    I recently switched to arch from ubuntu because of your blog, and I installed yaourt and noticed the yaourt -Sb option, If i compile from source, is it still uninstalable from pacman -R? Sorry if its a dumb question but i didnt know 🙂 If so, i was think if uninstalling, and re-installing and compiling everything, atleast for the initial xorg etc to see if it helps.

  2. K.Mandla Post author

    Yup. Yaourt and pacman work hand in hand, although to be honest, once I’ve installed yaourt I rarely need pacman. So if you compile and install with yaourt, like you showed, you’ll be able to rip it out with pacman or yaourt later.

    I usually use yaourt -Rcsn pkgname to cut out a package, just because I like to carve away all the dependencies too, as well as configuration files. It helps if I’m troubleshooting something later.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s