LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   problem in installing the g++ (https://www.linuxquestions.org/questions/suse-opensuse-60/problem-in-installing-the-g-4175471601/)

rohaanembedded 07-31-2013 08:51 AM

problem in installing the g++
 
Dear sir,

i have tried using the g++, it was not in the opensuse so i tried this
Code:

:~> cnf g++
                 
The program 'g++' can be found in the following package:
  * gcc-c++ [ path: /usr/bin/g++, repository: zypp (openSUSE-12.3-1.7) ]

Try installing with:
    sudo zypper install gcc-c++

then i tried the
Code:

sudo zypper install gcc-c++
but its giving me error like
Code:

ivb@linux-v1x2:~> sudo zypper install gcc-c++
Failed to mount cd:///?devices=/dev/disk/by-id/ata-SONY_DVD_RW_DRU-880S,/dev/sr0 on /var/adm/mount/AP_0x2L9584: Mounting media failed (mount: no medium found on /dev/sr0)

Please insert medium [] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n
Error building the cache:
[|] Valid metadata not found at specified URL
Warning: Disabling repository 'openSUSE-12.3-1.7' because of the above error.
Retrieving repository 'openSUSE-12.3-Non-Oss' metadata --------------------------------------------------------------------------------------------[\]
File '/repodata/repomd.xml' not found on medium 'http://download.opensuse.org/distribution/12.3/repo/non-oss/'

Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository 'openSUSE-12.3-Non-Oss' metadata ........................................................................................[error]
Repository 'openSUSE-12.3-Non-Oss' is invalid.
[|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Disabling repository 'openSUSE-12.3-Non-Oss'.
Retrieving repository 'openSUSE-12.3-Oss' metadata ------------------------------------------------------------------------------------------------[|]
File '/repodata/repomd.xml' not found on medium 'http://download.opensuse.org/distribution/12.3/repo/oss/'

Abort, retry, ignore? [a/r/i/?] (a): i
Retrieving repository 'openSUSE-12.3-Oss' metadata ............................................................................................[error]
Repository 'openSUSE-12.3-Oss' is invalid.
[|] Valid metadata not found at specified URL
Please check if the URIs defined for this repository are pointing to a valid repository.
Disabling repository 'openSUSE-12.3-Oss'.
Loading repository data...
Reading installed packages...
'gcc-c++' not found in package names. Trying capabilities.
No provider of 'gcc-c++' found.
Resolving package dependencies...

Nothing to do.

i am using OpenSuse 12.3
please help me in this
Regards
rohaan

TB0ne 07-31-2013 09:23 AM

Quote:

Originally Posted by rohaanembedded (Post 5000261)
Dear sir,
i have tried using the g++, it was not in the opensuse so i tried this
Code:

:~> cnf g++
                 
The program 'g++' can be found in the following package:
  * gcc-c++ [ path: /usr/bin/g++, repository: zypp (openSUSE-12.3-1.7) ]

Try installing with:
    sudo zypper install gcc-c++

then i tried the
Code:

sudo zypper install gcc-c++
but its giving me error like
Code:

ivb@linux-v1x2:~> sudo zypper install gcc-c++
Failed to mount cd:///?devices=/dev/disk/by-id/ata-SONY_DVD_RW_DRU-880S,/dev/sr0 on /var/adm/mount/AP_0x2L9584: Mounting media failed (mount: no medium found on /dev/sr0)

Please insert medium [] #1 and type 'y' to continue or 'n' to cancel the operation. [yes/no] (no): n

i am using OpenSuse 12.3 please help me in this

So the system told you it couldn't find the CD/DVD mounted...so you didn't mount it, continued anyway, and ignored the rest of the errors, and are surprised it didn't work??

Mount the CD/DVD as it told you to, and try again.

Firerat 07-31-2013 10:45 AM

at least you have determined the error is not due to randomness.

Q/ where is your OpenSuse 12.3 install disk?
A/ Don't know!
http://opensuse-guide.org/repositories.php

Firerat 07-31-2013 10:55 AM

actually, second look

It looks like your repos are messed up


http://download.opensuse.org/distribution/12.3/repo/oss
should be?
http://download.opensuse.org/distrib...repo/oss/suse/
( that contains the 'missing' repodata/repomd.xml )

try editing each repo ( as per guide ) adding /suse to the end of each.

rohaanembedded 08-01-2013 02:54 AM

Quote:

Originally Posted by Firerat (Post 5000352)
actually, second look

It looks like your repos are messed up


http://download.opensuse.org/distribution/12.3/repo/oss
should be?
http://download.opensuse.org/distrib...repo/oss/suse/
( that contains the 'missing' repodata/repomd.xml )

try editing each repo ( as per guide ) adding /suse to the end of each.

Dear sir,
Thanks for all ur ryplys

i will try the way you have suggested and the CD thing also

Regards
rihaan

rohaanembedded 08-01-2013 03:55 AM

hi everybody,

i put my Opensuse cd and it got installed

Thanks
rohaan

Firerat 08-01-2013 04:03 AM

Quote:

Originally Posted by rohaanembedded (Post 5000813)
hi everybody,

i put my Opensuse cd and it got installed

Thanks
rohaan

:)

Would still be a good idea to sort out the issue with the online repos
Without those you will not get security updates

rohaanembedded 08-01-2013 05:24 AM

Quote:

Originally Posted by Firerat (Post 5000819)
:)

Would still be a good idea to sort out the issue with the online repos
Without those you will not get security updates

THanks,

i tired your links but its not really helping me
will reinstallation of OpenSuse will help me???? i have just installed the OpenSuse day before so No issues in reinstalling it.

regards
rohan

TB0ne 08-01-2013 08:07 AM

Quote:

Originally Posted by rohaanembedded
i put my Opensuse cd and it got installed

Yes...which is why the system TOLD YOU to put the CD in. If you pay attention to the error messages, you can usually solve your own problems.
Quote:

Originally Posted by rohaanembedded (Post 5000846)
THanks,
i tired your links but its not really helping me
will reinstallation of OpenSuse will help me???? i have just installed the OpenSuse day before so No issues in reinstalling it.

No, and you shouldn't have to. Run YAST, go into "Software Repositories" and make the corrections there. Disable repos if you need to, and add others manually.

rohaanembedded 08-01-2013 08:43 AM

Quote:

Originally Posted by TB0ne (Post 5000927)
Yes...which is why the system TOLD YOU to put the CD in. If you pay attention to the error messages, you can usually solve your own problems.

No, and you shouldn't have to. Run YAST, go into "Software Repositories" and make the corrections there. Disable repos if you need to, and add others manually.

Dear sir,

i will try this thing

and i will try to be more and more carefull reader
thanks again sir,
Regards
Rohan


All times are GMT -5. The time now is 01:08 PM.