First Problem With Linux

Okay, so I'm starting to get familiar with Ubuntu, well I'm currently running it off of my memory stick, however the version that I'm having is that I'm trying to make use of gems, I've been able to install ruby. However I have the following issue when I try to make use of trying to install the following gem:

ubuntu@ubuntu:~$ gem install bundler
Fetching: bundler-1.10.6.gem (100%)
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /var/lib/gems/2.1.0 directory.

It's also worth mentioning, I've tried the following command too:
(Just to see if my memory has failed me again or if I was just being stupid, etc)

buntu@ubuntu:~$ gem install bundler

I've had no issues running Ubuntu on my actual PC, where it's installed on an internal HDD, thankfully, however if anyone could recommend nice programs/tools/toys I could install to make the experience that much nicer, please suggest some, I've also installed VIM. I've noticed it's hard(ish) to learn to use, but really god damn useful and powerful, I'm still a newbie to using Linux, but I'm slowly learning.

I've learned how to write all sorts of cool scripts, like extracting all of the images that are displayed on a web-page. I've even looked up silly things, like espeak, I just like trying out the different voices, speeds, pitches, accents, etc. I'm truly enjoying making use of Linux, a colleague of mine suggested trying Linux out, I was half minded about it first, thinking it'll either be amazing or terrible, for me, as a newbie. But I've found the learning curve very gradual and pleasant.

I've still to yet try out any gaming on Linux, so if there's any heads up with that or any advice anyone could give me, before I try it out, that would be appreciated.

Sorry about the Essay like length, but if anyone could guide me or give me any tips/advice or help, I'd appreciate it very much!

Did you use the "Sudo" command before asking it to install something?

1 Like

Tip: if you forget to sudo a command, you can type in "sudo !!" and press enter. It will use whatever you typed in last in place of the "!!".

2 Likes

This might help you out, a short tutorial setting up ruby/gem on Ubuntu 14.04.

Link: http://www.unixmen.com/setup-local-gem-server-ubuntu-14-04-lts/

For a general source of Linux articles and tutorials I'd recommend a visit to LinuxVoice. The first eight issues are available for download without a subscription.

Link: http://www.linuxvoice.com/creative-commons-issues/

Link to ruby article: http://www.linuxvoice.com/issues/003/LV3ruby.pdf

Also for general Linux tutorials, "The Urban Penguin"

Link: http://theurbanpenguin.com/

You're obviously new to this forum, if you think what you have written is an essay. Wait until you come across the efforts of the mighty @Zoltan, our resident Linux guru and prolific writer.

Of course, but I thought that I had to use gem to install a gem?

Yeah, I am new to using this, before now, I had an account, I just never got around to making use of my account, on here, sadly.

I wish I had made use of this account sooner, the society on here is very mature and laid back, I mean go on YouTube or Reddit, the comments I've received, totally different story. Like here, I'm asking for help, you guys are actually helping me out here, it's great, on Reddit, I'd just be made out to be a dull individual or something!

Like Logan has said in his videos, how he hopes how the users of the forums are more mature and better educated, that really does seem to be the case, I've had no 'stupid' or 'useless' responses from anyone as of yet.

Thank you for your help guys!

Dont know this "Gem" Command

I do, however know that in order to get write permission, you need sudo

So did you try:

Sudo gem install bundler

OR

Sudo apt-get install bundler

1 Like
sudo gem install bundle

That worked, thank you very much!
I can't believe I couldn't think of that, but then again, I've been working all day and it's now 1am... I've been brain dead since about 9pm ...

The occasional troll pops up on this forum, from time to time. However, there's an unwritten policy here of ignoring these poisonous individuals, until they give up and leave.

No one is born with knowledge. Generally the more you know, the more you realise how much you don't know.

1 Like

Never have I heard such truth, the more you know, the more you realise just how little you know, a perfect example would be physics, I guess. We may know a lot and have a lot of theories, but we haven't proven them, and with some things, i.e. quantum mechanics, we wonder why things behave the way they do behave.

Knowledge is like a circle. What you know is inside the circle and what you don't know is outside. If you don't know very much, your circle is very small. Therefore, what you think you don't know is proportional to the circumference. The bigger your circle, the more you realise how much is out there to be discovered. The more you find out, the worse it gets! The hunger that can never be satisfied.

I love quantum mechanics because it's so weird, compared to reality we perceive. String theory (I believe there are five main ones doing the rounds at the moment) largely fits as a theory of everything, but what it tells us about extra dimensions and true nature of the universe is so bizarre. However, it is also an incomplete theory. There's a lot more work to do before we can say we've figured it out and it may not be right at all. Looking at the size of the problem, I'm not expecting a full answer in my life time, but it's fascinating stuff. Hey, but at least we've confirmed the Higgs.

1 Like