RuTeX is a RubyGem that creates PNGs from TeX equations. After installing it,

gem install rutex

generating equations from the terminal becomes as simple as

rutex '\zeta(s)=\sum\limits^\infty_{n=1}{1\over n^s}' -c white -f riemann-eqn.png

which produces:

eqn