Open RogerParkinson opened 4 years ago
Have you installed the gem as root, or as your regular user? I'd expect the install to have put a link to twurl into your Rubygems PATH, which I'd expect to be on your logged-in user's PATH. Try echo $PATH
to check the current value.
echo $PATH /usr/local/maven/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/opt/git-bug:/opt/terraform
(I can't see any reference to ruby on there)
To install ruby I used sudo snap install ruby --classic
Then (as per the install.md file and as I said in the op) I installed twurl using gem install twurl
what should I have done different?
Looking at this Ask Ubuntu thread, it looks like you need to have .gem/bin
on your PATH. I haven't tested on Ubuntu for a while. There's more information here about how you could configure this for a snap.
+1 same issue, tried MacOS and Ubuntu
UPDATE: actually works in an Ubuntu container now
I installed Ruby in MacOS using Brew, needed to do echo 'export PATH="/usr/local/lib/ruby/gems/3.0.0/bin:$PATH"' >> ~/.zshrc
to get gems on my path.
Describe the bug I followed the instructions in install.md ie
gem install twurl
and I see:Then
twurl -v
to verify it is working:To Reproduce I'm using Xubuntu 20.04, fairly new install so a fresh install of ruby was required. This is the output of my
sudo gem env
command:Expected behavior I expected my twurl -v command to print a twurl version
Desktop (please complete the following information):
Additional context I also tried installing from source:
and got the same result.