This is happening because I copied the lua.rb formula instead of the one someone already made for lua52. silly! zomg. again.