installation - 在新的 SLES 11 机器上安装 Virtual box - python

标签 installation virtualbox rpm suse

如何在新的 SLES 11 机器上安装 virtual box?

我从以下位置下载了 rpm:

wget http://download.virtualbox.org/virtualbox/4.3.6/VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm

当我尝试 yast2 -irpm -ivh 时,我得到了这些错误:

 Package VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586.rpm could not be installed.

 Details:
 Subprocess failed. Error: RPM failed: error: Failed dependencies:
         libasound.so.2 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586
         libGL.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586    
         libICE.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libSDL-1.2.so.0 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libSM.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586    
         libX11.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libXcursor.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libXext.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586  
         libXinerama.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i5
         libXmu.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586   
         libXrender.so.1 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i58
         libXt.so.6 is needed by VirtualBox-4.3-4.3.6_91406_sles11.0-1.i586 

我试过:

# zypper install libasound libGL libSDL

但它没有安装...

Retrieving repository 'SLES-11-SDK-SP3-Updates' metadata [done]
Building repository 'SLES-11-SDK-SP3-Updates' cache [done]
Retrieving repository 'SLES-11-SP3-Updates' metadata [done]
Building repository 'SLES-11-SP3-Updates' cache [done]
Loading repository data...
Reading installed packages...
'libGL' not found in package names. Trying capabilities.
No provider of 'libGL' found.
'libSDL' not found in package names. Trying capabilities.
No provider of 'libSDL' found.
'libasound' not found in package names. Trying capabilities.
No provider of 'libasound' found.
Resolving package dependencies...

目前,这些是添加的 repo 协议(protocol):

# zypper repos
# | Alias                   | Name                                           | Enabled | Refresh
--+-------------------------+------------------------------------------------+---------+--------
1 | SLES-11-RZG-SP3         | SLES-11-RZG-SP3                                | Yes     | Yes    
2 | SLES-11-SDK-SP3-Updates | SLES-11-SDK-SP3-Updates                        | Yes     | Yes    
3 | SLES-11-SP3             | SLES-11-SP3                                    | Yes     | Yes    
4 | SLES-11-SP3-Updates     | SLES-11-SP3-Updates                            | Yes     | Yes    
5 | devel_tools_scm         | Software configuration management (SLE_11_SP2) | Yes     | No  

来自 uname -a:

Linux ws4-clarind 3.0.101-0.8-default #1 SMP Fri Nov 1 12:51:09 UTC 2013 (2417eb9) x86_64 x86_64 x86_64 GNU/Linux

最佳答案

我在安装 VirtualBox 时遇到了一些问题。最后我得到了一个解决方案并写了一篇关于它的博客文章。希望有所帮助:

uname -a
Linux dq1bc01b08 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64         x86_64 GNU/Linux

zypper in kernel-default-devel-3.0.76-0.11.1.x86_64
zypper in autoconf bison flex gcc gcc-c++ make m4

cp -f /boot/config-$(uname -r) /usr/src/linux/.config
cd /usr/src/linux
make prepare
make modules_prepare

http://download.virtualbox.org/virtualbox/4.3.8/VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm
zypper install VirtualBox-4.3-4.3.8_92456_sles11.0-1.x86_64.rpm

更详细:http://ehaselwanter.com/en/blog/2014/03/22/install-virtualbox-on-sles-11-sp3/

关于installation - 在新的 SLES 11 机器上安装 Virtual box - python,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21286196/

相关文章:

python-2.7 - 安装位于 Github 上的 Python 包

linux - 在 Linux Centos 7 下安装 tcl/tk 以与 Perl 5 一起使用 - 缺少一个步骤?

scripting - Inno Setup - 文件复制

基于 Android 4.0 的 Virtual Box 模拟器无法从笔记本电脑检测到蓝牙 4.0

vagrant - 如何在运行时从 guest 内部禁用 VirtualBox 时间同步

git - 使用 pip 安装特定的 git commit

vagrant - 为什么 `vagrant up` "ifdown eth1"SSH 测试失败?

rpm - RPM安装后设置权限

python - 从 Ubuntu 到 CentOs 的 bdist_rpm

linux - 卸载 rpm 时从 PATH 中删除条目