I currently have RTKLIB installed on a raspberry pi 4 by using the following commands
sudo apt-get install build-essential automake checkinstall liblapack3 libbla