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?
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.sudo apt update
. I realise now that installing the dependencies usingapt 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.