Hmm....
Actually, rockets shoot much further than Railguns. Rocket propelled artillery shell will go the longest for least weight penalty.
The size of railgun is very large as it needs bid devices to charge up and push out the projectile. Even the barrel is very long. So, all the volume issues...