Republic of Ireland cruised past Gibraltar in their opening game but struggled in the fourth leg with the dreaded double one.