Please install the GNU Compiler? (Suse 11.1 Guest)

Discussions about using Linux guests in VirtualBox.
unreal

Please install the GNU Compiler? (Suse 11.1 Guest)

Post by unreal »

Hi,
I have an Problem with the Guest Additions.
My Host is a Netbook (NC10) running Windows XP.
The Guest ist Suse 11.1, VirtualBox ist updated (2.2.4).

When i try to install the Guest additions, i get the following error:

Code: Select all

linux-d2ed:/media/VBOXADDITIONS_2.2.4_47978 # sh ./VBoxLinuxAdditions-x86.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.2.4 Guest Additions for Linux installation..............................................................................................................................................................................................................................
VirtualBox 2.2.4 Guest Additions installation
Please install the GNU compiler.
This system does not seem to have support for OpenGL direct rendering.
VirtualBox requires Linux 2.6.27 or later for this.  Please see the log
file /var/log/vboxadd-install.log if your guest uses Linux 2.6.27 and you still see this message.
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
i already did
zypper in linux-kernel-headers kernel-source kernel-syms gcc make

i had an kernel-header-whatever error before.
Can anyone help me?
I think the solution is very easy, i just don't know it ;-)
Thanks!
unreal

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by unreal »

I already tried from the HOWTO:

Code: Select all

linux-d2ed:/media/VBOXADDITIONS_2.2.4_47978 # apt-get install build-essential linux-headers-generic
Lese Paketlisten... Fertig
Erzeuge Abhängigkeitsbaum... Fertig
E: Konnte Paket build-essential nicht finden
linux-d2ed:/media/VBOXADDITIONS_2.2.4_47978 # yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
bash: yum: command not found
i'll try to translate the error messages:

Code: Select all

linux-d2ed:/media/VBOXADDITIONS_2.2.4_47978 # apt-get install build-essential linux-headers-generic
Reading Paketlists...Done
Creating Tree...DONE
E: Couldn't find package build-essential
linux-d2ed:/media/VBOXADDITIONS_2.2.4_47978 # yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel
bash: yum: command not found
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by baf »

Not sure if this is correct for suse but you could try it.
Try first doing
apt-get update
then retry
apt-get install build-essentail
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
unreal

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by unreal »

thanks for your answer!
i get some errors when executing apt-get update:

Code: Select all

linux-d2ed:/media # apt-get update
Ignoriere http://ftp-1.gwdg.de update/11.1 repomd.xml
Hole:1 http://ftp-1.gwdg.de 11.1/repo/oss/suse repomd.xml [951B]
951B in 0s (1096B/s) geholt
Fehler http://ftp-1.gwdg.de update/11.1/ primary.xml
  404 Not Found
Fehler http://ftp-1.gwdg.de update/11.1/ filelists.xml
  404 Not Found
Hole:1 http://ftp-1.gwdg.de 11.1/repo/oss/suse/ primary.xml [4731kB]
Hole:2 http://ftp-1.gwdg.de 11.1/repo/oss/suse/ filelists.xml [11,3MB]
16,1MB in 3m39s (73,2kB/s) geholt
Gescheitert zu holen http://ftp-1.gwdg.de/pub/suse/i386/update/11.1/repodata/primary.xml  404 Not Found
Gescheitert zu holen http://ftp-1.gwdg.de/pub/suse/i386/update/11.1/repodata/filelists.xml  404 Not Found
Lese Paketlisten... Fertig
Erzeuge Abhängigkeitsbaum... Fertig
W: Release file did not contain checksum information for http://ftp-1.gwdg.de/pub/suse/i386/update/11.1/repodata/primary.xml
W: Release file did not contain checksum information for http://ftp-1.gwdg.de/pub/suse/i386/update/11.1/repodata/filelists.xml
W: Sie möchten `apt-get update' ausführen um diese Problem zu beheben
E: Einige Index-Dateien konnten nicht heruntergeladen werden, sie wurden ignoriert oder alte weiterhin benutzt.
linux-d2ed:/media # apt-get install build-essentail
Lese Paketlisten... Fertig
Erzeuge Abhängigkeitsbaum... Fertig
E: Konnte Paket build-essentail nicht finden
it can't find all the files it wants to download...
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by baf »

Well I think there is no such package as build-essential in Suse those really are for debian/ubuntu derivatives.
Try
zypper install g++ and or gcc++
And see if something like that exists. Also look in the log file and see if you have a more exact match there.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by fixedwheel »

gcc is needed if any - not g++ or gcc++

but i think the problem is elsewhere
unreal wrote: i already did
zypper in linux-kernel-headers kernel-source kernel-syms gcc make
could you have a look if these are installed?
i guess that yast still exists in Suse (the latest i have touched was a 10.0 IIRC) so call yast and navigate to software ...
unreal wrote:i had an kernel-header-whatever error before.
could be a version number mismatch between the installed kernel and headers. Have a look, yast -> software
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by Perryg »

This is what I installed and it works fine in OpenSUSE 11.1

Code: Select all

zypper install make gcc  gcc-c++ kernel-source kernel-syms
unreal

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by unreal »

Thanks for your hints!
I tried all these commands and here is what suse said to me:
(tried to translate it in the brackets)

@baf:

Code: Select all

linux-d2ed:/media # zypper install g++ and or gcc++
Daten des Repositorys laden...    (repository loading)                 
Installierte Pakete lesen...                       (reading installed packages)
'g++' nicht gefunden.                              (not found)
'and' nicht gefunden.                              (not found)
'or' nicht gefunden.                               (not found)
'gcc++' nicht gefunden.                           (not found) 
Paketabhängigkeiten auflösen...                 
Keine auszuführenden Aktionen.             (no action to be done)
@ stefan.becker:

Code: Select all

                     
linux-d2ed:/media # rpm -qa | grep kernel          
kernel-default-extra-2.6.27.23-0.1.1               
kernel-syms-2.6.27.23-0.1.1                        
linux-kernel-headers-2.6.27-2.28                   
kernel-default-base-2.6.27.23-0.1.1                
kernel-default-2.6.27.23-0.1.1                     
kernel-source-2.6.27.23-0.1.1                      
linux-d2ed:/media # rpm -qa | grep gcc             
gcc43-gij-4.3.3_20081022-9.2                       
gcc-gij-4.3-34.168                                 
gcc43-locale-4.3.3_20081022-9.5                    
libgcc43-4.3.3_20081022-9.5                        
gcc33-3.3.3-7.5                                    
gcc-4.3-34.168                                     
gcc41-locale-4.1.3_20080612-26.5                   
gcc33-locale-3.3.3-7.5                             
gcc41-4.1.3_20080612-26.5                          
gcc-locale-4.3-34.168 
@Perryg:

Code: Select all

                             
linux-d2ed:/media # zypper install make gcc  gcc-c++ kernel-source kernel-syms
Daten des Repositorys laden...                                                
Installierte Pakete lesen...                                                  
'make' ist bereits installiert.                                               
'gcc' ist bereits installiert.                                                
'kernel-source' ist bereits installiert.                                      
'kernel-syms' ist bereits installiert.                                        
Paketabhängigkeiten auflösen...                                               

Die folgenden NEUEN Pakete werden installiert:
  gcc43 gcc43-c++ gcc-c++ libstdc++43-devel   


Gesamtgröße des Downloads: 7,2 M. Nach der Operation werden zusätzlich 27,5 M belegt.
Fortfahren? [JA/nein]: j                                                             
Paket libstdc++43-devel-4.3.3_20081022-9.5.i586 wird abgerufen (1/4), 2,1 M (13,5 M installiert)
Failed to provide Package libstdc++43-devel-4.3.3_20081022-9.5. Do you want to retry retrieval? 

[openSUSE 11.1-0|cd:///?devices=/dev/sr0] Die Datei './suse/i586/libstdc++43-devel-4.3.3_20081022-9.5.i586.rpm' aus dem Repository 'openSUSE 11.1-0' kann nicht angeboten werden                                              
Folgende Fehler sind aufgetreten:        (following errors occurred)                                                                      
 - Can't copy /media/SU1110.001/suse/i586/libstdc++43-devel-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0
 - Can't provide ./suse/i586/libstdc++43-devel-4.3.3_20081022-9.5.i586.rpm : Can't copy /media/SU1110.001/suse/i586/libstdc++43-devel-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0

Abbrechen, wiederholen, ignorieren? [A/w/i]: i
Paket gcc43-4.3.3_20081022-9.5.i586 wird abgerufen (2/4), 2,1 M (6,1 M installiert)
Failed to provide Package gcc43-4.3.3_20081022-9.5. Do you want to retry retrieval?

[openSUSE 11.1-0|cd:///?devices=/dev/sr0] Die Datei './suse/i586/gcc43-4.3.3_20081022-9.5.i586.rpm' aus dem Repository 'openSUSE 11.1-0' kann nicht angeboten werden
Folgende Fehler sind aufgetreten:
 - Can't copy /media/SU1110.001/suse/i586/gcc43-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0
 - Can't provide ./suse/i586/gcc43-4.3.3_20081022-9.5.i586.rpm : Can't copy /media/SU1110.001/suse/i586/gcc43-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0

Abbrechen, wiederholen, ignorieren? [A/w/i]: i
Paket gcc43-c++-4.3.3_20081022-9.5.i586 wird abgerufen (3/4), 3,0 M (7,9 M installiert)
Failed to provide Package gcc43-c++-4.3.3_20081022-9.5. Do you want to retry retrieval?

[openSUSE 11.1-0|cd:///?devices=/dev/sr0] Die Datei './suse/i586/gcc43-c++-4.3.3_20081022-9.5.i586.rpm' aus dem Repository 'openSUSE 11.1-0' kann nicht angeboten werden
Folgende Fehler sind aufgetreten:
 - Can't copy /media/SU1110.001/suse/i586/gcc43-c++-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0
 - Can't provide ./suse/i586/gcc43-c++-4.3.3_20081022-9.5.i586.rpm : Can't copy /media/SU1110.001/suse/i586/gcc43-c++-4.3.3_20081022-9.5.i586.rpm to /var/cache/zypp/packages/openSUSE 11.1-0

Abbrechen, wiederholen, ignorieren? [A/w/i]: i
Paket gcc-c++-4.3-34.168.i586 wird abgerufen (4/4), 5,0 K (0 B installiert)
Installiere: gcc-c++-4.3-34.168 [fertig]
i mounted the suse disc, but i get errors (i ignored them)...
look at this:

Code: Select all

linux-d2ed:/media # ls -la                                                 
insgesamt 18                                                               
drwxr-xr-x  3 root  root 4096 10. Jun 22:43 .                              
drwxr-xr-x 20 root  root 4096 10. Jun 22:39 ..                             
-rw-r--r--  1 root  root   77 10. Jun 22:43 .hal-mtab                      
-rw-------  1 root  root    0 10. Jun 22:43 .hal-mtab-lock                 
dr-xr-xr-x  8 simon root 6144 10. Dez 08:38 SU1110.001                     
linux-d2ed:/media # cd SU1110.001/
linux-d2ed:/media/SU1110.001 # ls -la
insgesamt 17040                      
dr-xr-xr-x 8 simon root    6144 10. Dez 08:38 .
drwxr-xr-x 3 root  root    4096 10. Jun 22:43 ..
-r--r--r-- 1 simon root 8072328 10. Dez 08:37 ARCHIVES.gz
-r--r--r-- 1 simon root      88  3. Dez 2008  autorun.inf
dr-xr-xr-x 3 simon root    2048 10. Dez 08:38 boot
-r--r--r-- 1 simon root 8052063 10. Dez 08:34 ChangeLog
-r--r--r-- 1 simon root   10860 10. Dez 08:38 content
-r--r--r-- 1 simon root     481 10. Dez 08:38 content.asc
-r--r--r-- 1 simon root     987  3. Dez 2008  content.key
-r--r--r-- 1 simon root   51060  4. Dez 2008  control.xml
-r--r--r-- 1 simon root     525 10. Dez 08:38 directory.yast
dr-xr-xr-x 2 simon root    2048 10. Dez 08:38 docu
dr-xr-xr-x 6 simon root    2048 10. Dez 08:23 dosutils
-r--r--r-- 1 simon root     877  3. Dez 2008  gpg-pubkey-0dfb3188-41ed929b.asc
-r--r--r-- 1 simon root     613  3. Dez 2008  gpg-pubkey-307e3d54-481f30aa.asc
-r--r--r-- 1 simon root    1694  3. Dez 2008  gpg-pubkey-3d25d3d9-36e12d04.asc
-r--r--r-- 1 simon root     987  3. Dez 2008  gpg-pubkey-3dbdc284-49144c3f.asc
-r--r--r-- 1 simon root    1015  3. Dez 2008  gpg-pubkey-56b4177a-47965b33.asc
-r--r--r-- 1 simon root    1036  3. Dez 2008  gpg-pubkey-7e2e3b05-4816488f.asc
-r--r--r-- 1 simon root    2173  3. Dez 2008  gpg-pubkey-9c800aca-481f343a.asc
-r--r--r-- 1 simon root    1803  3. Dez 2008  gpg-pubkey-a1912208-446a0899.asc
-r--r--r-- 1 simon root   17992  3. Dez 2008  GPLv2.txt
-r--r--r-- 1 simon root   35147  3. Dez 2008  GPLv3.txt
dr-xr-xr-x 2 simon root    4096 10. Dez 08:38 images
-r--r--r-- 1 simon root   41511 10. Dez 08:37 INDEX.gz
-r--r--r-- 1 simon root   24500  3. Dez 2008  license.tar.gz
-r--r--r-- 1 simon root   66740 10. Dez 08:37 ls-lR.gz
dr-xr-xr-x 2 simon root    2048 10. Dez 08:38 media.1
-r--r--r-- 1 simon root  504936  3. Dez 2008  openSUSE11_1_LOCAL.exe
-r--r--r-- 1 simon root  514355  3. Dez 2008  openSUSE11_1_NET.exe
-r--r--r-- 1 simon root    6926  3. Dez 2008  pubring.gpg
-r--r--r-- 1 simon root    1644  3. Dez 2008  README
-r--r--r-- 1 simon root    1688  3. Dez 2008  README.DOS
dr-xr-xr-x 6 simon root    2048 10. Dez 08:24 suse
-r--r--r-- 1 simon root    2238  3. Dez 2008  SuSEgo.ico
I hope anybody knows a solution, because the guest additions would make
things much easier i think.
Thanking you in anticipation for ready that much code! ;-)
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by fixedwheel »

unreal wrote:linux-d2ed:/media # rpm -qa | grep kernel
kernel-default-extra-2.6.27.23-0.1.1
kernel-syms-2.6.27.23-0.1.1
linux-kernel-headers-2.6.27-2.28
kernel-default-base-2.6.27.23-0.1.1
kernel-default-2.6.27.23-0.1.1
kernel-source-2.6.27.23-0.1.1
there is a mismatch, install kernel-headers with the same version number as the kernel
stefan.becker
Volunteer
Posts: 7639
Joined: 7. Jun 2007, 21:53

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by stefan.becker »

Forget it. For Suse linux-kernel-headers must not have same version. Its another package as for Debian/Ubuntu.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by fixedwheel »

stefan.becker wrote:Forget it.
ok, I didn't know.

Suse is strange, i guess ... AFAIK not only Debian/Ubuntu kernel and header version have to match, applies with Redhat/fedora too
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by Perryg »

I think I see what your problem is and one that bite me before. Remove the CD from the repository list and then it will look at the internet for your files. Be sure to update your OS too.
unreal

Re: Please install the GNU Compiler? (Suse 11.1 Guest)

Post by unreal »

Perryg wrote:I think I see what your problem is and one that bite me before. Remove the CD from the repository list and then it will look at the internet for your files. Be sure to update your OS too.
That sounds like an solution :)
But i can't find that repository list... is it in yast?
Post Reply