Baph problem -ia error

When trying to install a few programs from AUR recently using baph -ia, I have been getting this error message (or similar that says the error was in build instead of prepare).

(I truncated the file loading return that showed no errors or issues at all)

:: View/Edit the PKGBUILD for abiword-gtk2? [Y/n] n
==> Making package: abiword-gtk2 3.0.4-1 (Mon 30 Nov 2020 12:10:54 PM)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading abiword-3.0.4.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0   340    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 10.5M  100 10.5M    0     0  1733k      0  0:00:06  0:00:06 --:--:-- 2440k
  -> Found enchant-2.patch
==> Validating source files with sha256sums...
    abiword-3.0.4.tar.gz ... Passed
    enchant-2.patch ... Passed
==> Extracting sources...
  -> Extracting abiword-3.0.4.tar.gz with bsdtar
==> Starting prepare()...
/home/drew/.cache/baph/builds/abiword-gtk2/PKGBUILD: line 24: patch: command not found
==> ERROR: A failure occurred in prepare().
    Aborting...
:: Exited abiword-gtk2 build early
[drew@archlabs-drew ~]$

What can I do to correct this?

You don’t have patch installed, for building Aur packages you’ll usually need base-devel. A package group that includes thinks like patch among other tools for building software.

1 Like

OK thanks, done now. Did I miss that somewhere? I didn’t see it in man baph.

It was something I missed at first on other bare bones Arch distros, like Archbang. Even on Debian installs, it needs the build-essential package, along with a lot of other dependencies to build from source. Even still, I make sure I install either on both the respective distros, and if it was already installed, the package managers reinstall it, or not because I have the latest versions of it.

base-devel is one of the choices from package list to choose from when installing.

And I was too inexperienced to realize that and to put 2 x 2 together. Fear not; I’m a fast learner :slight_smile:

I have pretty much everything installed that I need (for now) and the config files are edited to my taste. I am more than happy with the results so far. I’m an inveterate tinkerer so there will undoubtedly be more experiments (and breakages).

Thank you for making ArchLabs available.

1 Like

Good thing most of the things you need are easy to install later :smiley: