I was able to run my rails project at first, but then after I restarted my computer, I cannot run it any more. For the errors kindly refer to the following screenshots: http://imgur.com/a/NzU8k
Thank you for any help!
It looks like the gem nio4r requires you to have ruby header files installed. Run this then try again:
sudo apt-get install ruby-dev