I'm trying to get up and running with ruby and the jekyll gem on my fresh instance of Ubuntu 16.04.
usernamehere@usernamehere-hp:~/workspace/username.github.io$ ls -la /usr/local/bin/bundler
-rwxr-xr-x 1 root root 498 Apr 18 18:18 /usr/local/bin/bundler
usernamehere@usernamehere-hp:~/workspace/username.github.io$ ls -la /usr/local/bin/bundle
-rwxr-xr-x 1 root root 497 Apr 18 18:18 /usr/local/bin/bundle
usernamehere@usernamehere-hp:~/workspace/username.github.io$ ls -la /usr/bin/bundle
-rwxr-xr-x 1 root root 590 Mar 13 2016 /usr/bin/bundle
usernamehere@usernamehere-hp:~/workspace/username.github.io$ ls -la /usr/bin/bundler
-rwxr-xr-x 1 root root 590 Mar 13 2016 /usr/bin/bundler
But I seem to have 2 or 4 copies of the ruby gem bundler installed. This is giving me conflicting things when I do things like:
bundle update vs sudo bundle update and bundle exec jekyll serve vs. sudo bundle exec jekyll serve
I'm also getting conflicting responses when I run bundle update vs bundler update vs sudo bundle update vs sudo bundler update.
What the heck is going on? I don't mind keeping only the ones in /usr/bin but I don't know if I should be using bundle or bundler or how to unsintall the entries in /usr/local/bin.
Any ideas?
rvmorrbenvjust to use jekyll since personally I'm not a fan of ruby and don't want to overcomplicate things just to write blog posts but it looks like I might not have a better option. – fIwJlxSzApHEZIl Apr 19 '17 at 16:12bundle exec jekyll serveuntil I stopped getting error messages. I've gotten rather comfortable with the package manager so I was confident that I would get it right. I was unfortunately not aware that there is abundlerand abundleand I wasn't ready for the package manager to install things to/usr/local/binwhen they already existed inusr/bin. Maybe that's my fault thought. – fIwJlxSzApHEZIl Apr 20 '17 at 16:18sudo apt-get purge ruby bundle bundler? – fIwJlxSzApHEZIl Apr 20 '17 at 16:19gem uninstall bundler && sudo gem uninstall bundler, to remove all installed gems rungem uninstall --all && sudo gem uninstall --allto purge ruby runsudo apt purge ruby. – Sirajus Salekin Apr 21 '17 at 03:02