When you want to run /opt/VirtualBox/VBoxManage I got this error: ./VBoxManage: error while loading shared libraries: VBoxDDU.so: cannot open shared object file: No such file or directory So that means that /opt/VirtualBox is not in the LDPATH. This patch modifies the ebuilds for VirtualBox such that environment files are installed in /etc/env.d for VirtualBox to solve this problem. Attached patches are for: 1) VirtualBox-1.5.2 source 2) VirtualBox-9999 source 3) VirtualBox-1.5.2 binary package These patches more or less obsolete the symlink /usr/bin/VirtualBox -> /opt/VirtualBox/VBox.sh , but it's up to the mainainer to actually remove it. Reproducible: Always
Created attachment 136873 [details, diff] Patch for VirtualBox-1.5.2 source Install env.d file
Created attachment 136874 [details, diff] Patch for VirtualBox-1.5.2 binary ebuild Install env.d file
Created attachment 136876 [details, diff] Patch for VirtualBox-9999 source Install env.d file
Us the wrapper, it works just fine. *** This bug has been marked as a duplicate of bug 197427 ***