problems installing g++ hardy heron

Marius Gedminas marius at pov.lt
Fri Apr 25 20:14:05 UTC 2008


On Fri, Apr 25, 2008 at 05:15:24PM +0200, Bram Kuijper wrote:
> I am trying to install g++ on a fresh install of hardy heron. How can I 
> avoid bash eating away my operators?
> 
> sudo apt-get install g++
> 
> it says:
> 
> couldn't find package g
> 
> apparently bash sees the +-es as an operator. So I tried also:
> 
> sudo apt-get install g\+\+
> sudo apt-get install "g++"
> 
> with the same response:
> couldn't find package g

This is weird.  What is your system locale?  (The 'locale' command
prints your settings.)

I'm blindly guessing that perhaps a broken locale might cause '+' to be
misclassified as a whitespace character, or something.

> what should I do to install g++?

'sudo apt-get install g++' works for me.  You could try aptitude or
synaptic and select g++ from the list.

Marius Gedminas
-- 
Think different? I'd be happy if most people would just think...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20080425/d879f21e/attachment-0001.sig>


More information about the ubuntu-users mailing list