Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] virtualBox v2.2.2 doesn't launch anymore
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1629

PostPosted: Sat Jun 06, 2009 12:38 pm    Post subject: [SOLVED] virtualBox v2.2.2 doesn't launch anymore Reply with quote

Hello

I upgraded today to VirtualBox-bin version 2.2.2 and I can't launch it anymore. It launches as root.
Code:
VirtualBox
bash: /usr/bin/VirtualBox: No such file or directory


I checked if I appear in /etc/groups and it is fine.
I also checked the use flags and I have the following:
Code:
     Installed versions:  2.2.2!s(03:12:13 PM 06/06/2009)(additions chm sdk -headless -vboxwebsrv)


When I checked where the binary is I found that
Code:

ls -l /opt/bin/V*
lrwxrwxrwx 1 root root 23 2009-06-06 15:12 /opt/bin/VBoxHeadless -> /opt/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 23 2009-06-06 15:12 /opt/bin/VBoxManage -> /opt/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 23 2009-06-06 15:12 /opt/bin/VBoxSDL -> /opt/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 26 2009-06-06 15:12 /opt/bin/VBoxTunctl -> /opt/VirtualBox/VBoxTunctl
lrwxrwxrwx 1 root root 23 2009-06-06 15:12 /opt/bin/VBoxVRDP -> /opt/VirtualBox/VBox.sh
lrwxrwxrwx 1 root root 23 2009-06-06 15:12 /opt/bin/VirtualBox -> /opt/VirtualBox/VBox.sh


Since I wasn't sure what to do in this case I tried to copy VBox.sh to /usr/bin/ and soft link it. I still can't launch Vbox. Now I get permission denied.

The situation right now is like this:
Code:
ls -l /usr/bin/V*
-rwxr-x--- 1 root root 2817 2009-06-06 15:33 /usr/bin/VBox.sh
lrwxrwxrwx 1 root root   16 2009-06-06 15:34 /usr/bin/VirtualBox -> /usr/bin/VBox.sh


I am not sure what is the correct approach in this case and how to solve it. I can launch it as simple user by using
Code:
/opt/bin/VirtualBox
, but this situation wasn't before. I could launch it only by using VirtualBox. I also can launch it as root by using VirtualBox. I don't want to use it as root.

Any help in this regard will be highly appreciated.


Last edited by queen on Sat Jun 06, 2009 4:57 pm; edited 1 time in total
Back to top
View user's profile Send private message
goffrie
n00b
n00b


Joined: 14 Mar 2007
Posts: 67

PostPosted: Sat Jun 06, 2009 3:03 pm    Post subject: Reply with quote

My version of VirtualBox doesn't have any files installed in /usr/bin/, everything is in /opt/ and /usr/share/. Check if /usr/bin/VirtualBox is provided by any package (`qfile /usr/bin/VirtualBox` or `equery b /usr/bin/VirtualBox`) and if not, delete it and your /usr/bin/VBox.sh.
Back to top
View user's profile Send private message
Rion
Guru
Guru


Joined: 12 Oct 2006
Posts: 377
Location: Ekaterinburg, Russia

PostPosted: Sat Jun 06, 2009 3:19 pm    Post subject: Reply with quote

just add /opt/bin to PATH variable
i'm sure baselayout-2.0.1 provides this in one of its file. so another soultion - upgrade baselayout
don't forget to do emerge --sync before
_________________
~amd64
rion-overlay
Back to top
View user's profile Send private message
queen
Veteran
Veteran


Joined: 19 Jul 2005
Posts: 1629

PostPosted: Sat Jun 06, 2009 4:54 pm    Post subject: Reply with quote

goffrie wrote:
My version of VirtualBox doesn't have any files installed in /usr/bin/, everything is in /opt/ and /usr/share/. Check if /usr/bin/VirtualBox is provided by any package (`qfile /usr/bin/VirtualBox` or `equery b /usr/bin/VirtualBox`) and if not, delete it and your /usr/bin/VBox.sh.


I checked
Code:
equery b /usr/bin/VirtualBox
there wasn't anything there. So I removed the /usr/bin/VBox.sh and /usr/bin/VirtualBox.

I don't know why suddenly it looked for /usr/bin if it was always in /opt/ (which I didn't know until today that this is the right place to be).

I know that first time I updated to 2.2.2 today, I got an error about collisions, yet it said virtualbox was installed. When I tried to launch it, I got the error that there is no /usr/bin/VirtualBox. I decided to emerge again, with the hope that the problem will be solved. 2nd time, it didn't throw the collision error, but still refused to be launched.

Any idea why it looked in /usr/bin ?

To Rion:

I added /opt to the path and now it works perfectly. I have baselayout 1.12.11.1 which is the latest stable version for x86. I don't like to use ~x86, unless I really need it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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