red-data-tools / YouPlot

A command line tool that draw plots on the terminal.
MIT License
4.17k stars 57 forks source link

uplot: command not found #32

Open egor-ryashin opened 1 year ago

egor-ryashin commented 1 year ago

I suspect documentation is not complete, not sure how to resolve this:

macbook:test$ gem install youplot
Fetching youplot-0.4.5.gem
Fetching unicode_plot-0.0.5.gem
Fetching enumerable-statistics-2.0.7.gem
Building native extensions. This could take a while...
Successfully installed enumerable-statistics-2.0.7
Successfully installed unicode_plot-0.0.5
Successfully installed youplot-0.4.5
Parsing documentation for enumerable-statistics-2.0.7
Installing ri documentation for enumerable-statistics-2.0.7
Parsing documentation for unicode_plot-0.0.5
Installing ri documentation for unicode_plot-0.0.5
Parsing documentation for youplot-0.4.5
Installing ri documentation for youplot-0.4.5
Done installing documentation for enumerable-statistics, unicode_plot, youplot after 1 seconds
3 gems installed
macbook:test$ uplot
-bash: uplot: command not found
gn0 commented 1 year ago

Try running find ~/.local/share/gem/ -name uplot. Does that come up with anything?

egor-ryashin commented 1 year ago

No luck

find <home>/.local/share/gem/: No such file or directory
egor-ryashin commented 1 year ago

I've found I have 2 executable directories when I ran gem env - one for 2.6.0 and another for 3.0.0 (this one wasn't in the PATH), so I added version 3 to PATH export PATH="/usr/local/lib/ruby/gems/3.0.0/bin:$PATH". Now it works, thanks.

kojix2 commented 1 year ago

If you don't mind, could you tell me how you installed Ruby?

egor-ryashin commented 1 year ago

brew install ruby

kojix2 commented 1 year ago

Thank you, we would like to make it possible for Mac users to install YouPlot using the package manager Homebrew. https://github.com/red-data-tools/YouPlot/issues/33