Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] VirtualBox install fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Mr.QNo
n00b
n00b


Joined: 21 Mar 2005
Posts: 74

PostPosted: Sun Sep 23, 2012 10:36 am    Post subject: [Solved] VirtualBox install fails Reply with quote

Hi,

Gentoo amd64/10.0/desktop/kde. VirtualBox, running without problems for generations, does not upgrade, nor can i reinstall the older version.

Code:
station ~ # /home/qno/Downloads/VirtualBox-4.1.22-80657-Linux_amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox for Linux installation...........
VirtualBox Version 4.1.22 r80657 (2012-09-07T16:32:04Z) installer
Removing previous installation of VirtualBox 4.1.22 r80657 from /opt/VirtualBox
Installing VirtualBox to /opt/VirtualBox
Python found: python, installing bindings...
  File "vboxapisetup.py", line 21
    print "Cleaning COM cache at",comCache1,"and",comCache2
                                ^                                                                                                               
SyntaxError: invalid syntax                                                                                                                     
Building the VirtualBox kernel modules                                                                                                           
 * Failed, trying without DKMS
 * Look at /var/log/vbox-install.log to find out what went wrong

VirtualBox has been installed successfully.

You will find useful information about using VirtualBox in the user manual
  /opt/VirtualBox/UserManual.pdf
and in the user FAQ
  http://www.virtualbox.org/wiki/User_FAQ

We hope that you enjoy using VirtualBox.


No, i don’t enjoy.

Google tells me that there might be a problem with python, but i don’t find it. minijson is installed.

Any hints?

Edit: I forgot:

Code:
station ~ # cat /var/log/vbox-install.log
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG= -C /lib/modules/3.3.8-gentoo/build modules
make[1]: *** Keine Regel, um »modules« zu erstellen.  Schluss.
make: *** [vboxdrv] Fehler 2


Last edited by Mr.QNo on Sun Sep 23, 2012 11:32 am; edited 1 time in total
Back to top
View user's profile Send private message
Mr.QNo
n00b
n00b


Joined: 21 Mar 2005
Posts: 74

PostPosted: Sun Sep 23, 2012 11:32 am    Post subject: Reply with quote

Solved. When gentoo installs new kernel sources via emerge -uND world, it changes the installed headers to the new version. If i do not use the new kernel, i get an inconsistency.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54239
Location: 56N 3W

PostPosted: Sun Sep 23, 2012 11:33 am    Post subject: Reply with quote

Mr.QNo,

Gentoo installs both python 3.2 and python 2.7. This is a mixed blessing.

Run
Code:
eselect python list
to see what your system wide python is set to.
Now use eselect python set to choose the other python. Retry the virtualbox install.

Thare are changes between python 27 and 3.2 that mean python code has to be changed to run on the other version of python.

When you are done, set the python version back to what it was. The default on Gentoo is now 3.2
If you switch from 2.7 to 3.2 and it works and you want to leave it that way be sure to run python-updater after the eselect.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum