We hate to break it to you, but it's been thousands of years since Gilgamesh was written down, and there's still no cure for death except cryonics—and we think that is just weird. The Epic of Gilgamesh is largely the tale of one man's quest to outsmart death, and, oddly, our priorities haven't changed much. At the beginning of the epic, Gilgamesh is too much of a hot-shot to really be worried about death. He figures if he dies doing something really cool, then people will remember him forever and that will be almost as awesome as living forever. Once he sees that maggot fall out of Enkidu's nose, though, all bets are off: he embarks on an expedition to find the secret of eternal life. We aren't spoiling the ending to tell you that that doesn't work out.
The Epic of Gilgamesh has a happy ending: Gilgamesh realizes that while death is inevitable, immortality can be achieved through one's actions while they are alive.
Gilgamesh ends tragically: the hero ultimately fails in his final quest for immortality.