Yes they needed lysine to stay alive, but in the second movie John Hammond said that the Herbivores ate plants that contained the lysine and the Carnivores ate the Herbivores.
That's how they survived.
what the movie (and the book) kinda messed up is that all animals get lysine from their diets. They didn't need to engineer them to be lysine dependant. But they didn't anticipate that the animals would be able to find lysine in the wild vegetation.