Question: how to install jmri on raspberry pi?
Answer: Make sure you have the latest version of JMRI installed, then go to the Preferences panel of a JMRI-based program. ... 
Select "Raspberry Pi Foundation" from the System Manufacturer selection box.
Select "Raspberry Pi GPIO" from the System Connection selection box.
Click "Save". ... 
Restart the program.