1

I am wanting to build MariaDB 10.5.5 on my Raspberry Pi 3B (Kernel version 5.4.65-v7+) since it has some nice features I want to play with. The first step involves setting up the build environment described here: Build Environment Setup for Linux

However the first step used to install all the dependencies doesn't work:

 sudo apt build-dep mariadb-server
 Reading package lists... Done
 E: You must put some 'source' URIs in your sources.list

The documentation is aware of this problem and asks that you include the source repositories in your sources.list file:

Note: On Debian-based distributions, you may receive a "You must put some 'source' URIs in your sources.list" error. To avoid this, ensure that /etc/apt/sources.list contains the source repositories.

So I uncommented the deb-src command from my /etc/apt/sources.list file:

deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
deb-src http://archive.raspberrypi.org/debian/ buster main

After saving the changes and running sudo apt-get update I then get the following error after running apt build-dep mariadb-server:

sudo apt build-dep mariadb-server
Reading package lists... Done
Picking 'mariadb-10.3' as source package instead of 'mariadb-server'
E: Unable to find a source package for mariadb-server

Does anyone know how I can run apt build-dep mariadb-server for MariaDB 10.5?

  • Did sudo apt update after changing the apt source file run without errors? BTW: you will not get the 10.5.5 source from the RPF repo. As the msg said the version there is 10.3.3. You will probably have to use the sources from the mariadb website. – Dirk Oct 4 at 7:42
  • No errors occurred after running sudo apt update. I realise now that installing the dependencies using apt build-dep only works if the package is already available for your distro. Are there any other commands that I could use to install all the required dependencies when the package hasn't been built yet for Raspberry Pi OS? I should then be able to build from source once I have all the dependencies. – A Dark Divided Gem Oct 4 at 14:47
  • The DEB Package Debian/Ubuntu (x86, x86_64, ppc64el, arm64) has "DEB Package Debian/Ubuntu (x86, x86_64, ppc64el, arm64)" and claims to have versions for Debian 8 (Stretch) (sic) & Debian 9 (Jessie) (sic). There is no indication that ANYONE has built for Buster or ARM - so your chances are slim. – Milliways Oct 4 at 22:45
  • Arch Linux ARM has been successful with building MariaDB 10.5 on ARM mariadb 10.5.5-2 so with any luck I can build it on Buster – A Dark Divided Gem Oct 5 at 0:28
1

Mariadb is available, just not in the version you want. The reason that build-dep doesn't work is possibly because mariadb-server is actually a "metapackage depending on the latest version" (latest in the repo that is, not the universe as a whole); the actual binaries are in mariadb-server-10.3.

You don't actually need the source from the repo of course, because you won't be using it, you'll be using the source for 10.5 you download from somewhere. However, build-dep seems useful if you don't know how to sort such things out yourself (and may save some time even if you do). Most likely, they should be fine to use to build 10.5, so try apt build-dep mariadb-server-10.3.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.