There isn't enough information in your post to say what happened. Rather than try to get the information from you, it's probably easier to tell you what can go wrong and let you figure it out yourself.
When installing gems, gems may include an executable file and gems may install the executable in a specific directory on your filesystem. Sometimes this works and sometimes it doesn't. For example, maybe the executable gets copied to a directory that isn't in your PATH
so you can't run it from anywhere like you expect to be able to do. That's probably the case here.
I recommend that you find where twurl
is installed and then add that path to your PATH
and retry your operation.
- Run
gem info twurl
to get the Installed at path. Save that path for the next step.
- Run
find PATH_FROM_PREVIOUS_STEP -name "twurl" 2>/dev/null
to find the location of twurl
, e.g., if the previous step said the gem was installed at /usr/bin/local/gems
then you would run find /usr/bin/local/gems -name "twurl" 2>/dev/null
; the output is the path to the executable, e.g., /usr/bin/local/gems/twurl/0.9.6/bin/twurl
If step 2 doesn't return the path the executable then you can retry with find / -name "twurl" 2>/dev/null
to search the entire filesystem to find it.
Now that you have the path, you can run twurl
one of two ways. Either use the full path every time:
$ /usr/bin/local/gems/twurl/0.9.6/bin/twurl
Or add it to your path:
$ export PATH=$PATH:/usr/bin/local/gems/twurl/0.9.6/bin/twurl
The latter option will work only for the lifecycle of your shell session. You would need to add it to your shell profile (depends on which shell you use, so no definitive answer available) so that it applies to future sessions.