I tried installing the tk GUI for Ubuntu ruby With the command:
gem install tk
But the command does not work. What can I do?
Advertisement
Answer
Hey I ran into this same thing recently while porting the Princeton Standard library to ruby tk standard_draw_tk
First make sure libaries are installed
sudo apt-get install tcl8.5-dev tk8.5-dev
Now you need to soft link the libaries
sudo ln -s /usr/lib/x86_64-linux-gnu/tcl8.5/tclConfig.sh /usr/lib/tclConfig.sh sudo ln -s /usr/lib/x86_64-linux-gnu/tk8.5/tkConfig.sh /usr/lib/tkConfig.sh sudo ln -s /usr/lib/x86_64-linux-gnu/libtcl8.5.so.0 /usr/lib/libtcl8.5.so.0 sudo ln -s /usr/lib/x86_64-linux-gnu/libtk8.5.so.0 /usr/lib/libtk8.5.so.0```
Now you can install the tk gem on linux
gem install tk
The original blog post where I found this information