can not sudo get-install g++

Asked by stevand

Apsolute beginner as I am, somehow I was able to instal DX and Blitz vector library on my laptop, however when I install on my desktop I went to Synaptic Package Menager and tried to install more packages , Mplayer and DX and Octave ....

I returned to install g++ sinc I could not instal Blitz it is giving me error that is following

Configuring blitz 0.9 for i686-pc-linux-gnulibc1

checking for xlc++... no
checking for xlC... no
checking for icpc... no
checking for icc... no
checking for pathCC... no
checking for cxx... no
checking for aCC... no
checking for c++... no
checking for CC... no
checking for g++... no
checking for pgCC... no
checking for KCC... no
checking for FCC... no
checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables
See `config.log' for more details.

Then I tried to install g++ and I got the following ....

''
stevand@stevand-desktop:~/Desktop/blitz-0.9$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  g++: Depends: g++-4.0 (>= 4.0.3) but it is not going to be installed
E: Broken packages
stevand@stevand-desktop:~/Desktop/blitz-0.9$ "

Thanks in advance if it is possible to resolve this problem as I really like ubuntu, I am in real need to make my desktop available to run g++

Thanks again

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Frode M. Døving
Solved:
Last query:
Last reply:
Revision history for this message
Frode M. Døving (frode) said :
#1

Try to install the package 'build-essential' like this:
'sudo apt-get install build-essential'

- Frode

Revision history for this message
stevand (stevand-seas) said :
#2

thanks Frode I did it ....
best
stevaan

On Sat, 4 Nov 2006, Frode M. Doeving wrote:

> Support request #2333 on Ubuntu changed:
> https://launchpad.net/distros/ubuntu/+ticket/2333
>
> Comment:
> Try to install the package 'build-essential' like this:
> 'sudo apt-get install build-essential'
>
> - Frode
>
>

**********************************************************
 Stevan Dubljevic, Ph.D
 UCLA Division of Cardiology
 BH-307 CHS
 650 Charles E. Young Drive S.
 Los Angeles, CA 90095
 ph:(310)794-3658
 ph:(310)825-2681
 ph:(310)825-4189
 e-mail:<email address hidden>
 http://www.seas.ucla.edu/~stevand/
**********************************************************

Revision history for this message
Frode M. Døving (frode) said :
#3

Please consider closing the support request if it was answered.

See https://wiki.ubuntu.com/SupportRequests for more information.

Thanks in advance.
- Frode

Revision history for this message
Nicolas DERIVE (kalon33) said :
#4

You can obtain blitz++ in the universe repository too, so if you have problems with its compilation, you can use it too. It's right that with compilation you can obtain the latest version too, so don't forget to check version numbers.

Revision history for this message
Óscar Rodríguez Ríos (ingorr01) said :
#5

If these comments have solved your problem, please consider marking this request as answered. https://wiki.ubuntu.com/SupportRequests contains useful information about managing your support request.

If you are still having problems, let us know and we'll keep working on them.

Best Regards,
neuromancer

Revision history for this message
stevand (stevand-seas) said :
#6

I did
"sudo apt-get install build-essential"

end I was able to install g++

Revision history for this message
vikasmk (vikasmk) said :
#7

vikasmk@vikasmk:~$ sudo apt-get install g++
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libstdc++2.10-dev g++-2.95
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  g++-4.1 libstdc++6-4.1-dev
Suggested packages:
  g++-multilib g++-4.1-multilib gcc-4.1-doc libstdc++6-4.1-doc
The following NEW packages will be installed:
  g++ g++-4.1 libstdc++6-4.1-dev
0 upgraded, 3 newly installed, 0 to remove and 44 not upgraded.
Need to get 0B/3730kB of archives.
After unpacking 13.7MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Media change: please insert the disc labeled
 'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1)'
in the drive '/cdrom/' and press enter
    But when i insert the cd nothing happens what to do??