+ 2
Does your program work on your own computer?
Read your runtime error. The gnuplot executable is not found.
gnuplot is a linux utility that must be installed separately.
http://www.gnuplot.info/
The ruby gem 'gnuplot' is only a wrapper for this, it depends on the existence of pre-installed gnuplot.
You can see installation instructions here:
https://github.com/rdp/ruby_gnuplot/tree/master
I think this is not going to work on Sololearn.
+ 1
Your code not getting the path of installed gem it will work on your system . If u wana test in phone u can try with heroku connect your GitHub with heroku