if you want to know how to install flex in your linux box this is how i go about installing flex in the shell command line prompt. i just send this command start the installation

yum install flex


thats it