In the EU you can apply for a permanent residency card when you're in the country. One of the prerequisites is how long you have been in the country where you're applying. It seems unlikely the other countries have the same policy as the US has now.