ale*_*xus 8 rpm centos software-installation skype
我的环境:
$ cat /etc/redhat-release
CentOS Linux release 7.4.1708 (Core)
$ uname -a
Linux X 3.10.0-693.5.2.el7.x86_64 #1 SMP Fri Oct 20 20:32:50 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
$ rpm -q glibc
glibc-2.17-196.el7.x86_64
glibc-2.17-196.el7.i686
$
Run Code Online (Sandbox Code Playgroud)
我正在尝试关注下载 Skype | 免费电话 | 聊天应用程序:
$ sudo rpm -ivh https://go.skype.com/skypeforlinux-64.rpm
Retrieving https://go.skype.com/skypeforlinux-64.rpm
error: Failed dependencies:
libstdc++.so.6(GLIBCXX_3.4.20)(64bit) is needed by skypeforlinux-8.9.0.1-1.x86_64
$
Run Code Online (Sandbox Code Playgroud)
难道我做错了什么?还是站在微软一边?
小智 6
看来您正在运行 Centos 7。strings /usr/lib/libstdc++.so.6 | grep GLIBCXX在 Centos 7 中发出命令时,它显示以下输出:
GLIBCXX_3.4
_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_DEBUG_MESSAGE_LENGTH
Run Code Online (Sandbox Code Playgroud)
这意味着目前 Centos 不支持最新版本的 Skype (v8.9) 所需的 glibc (即 GLIBCXX_3.4.20) 版本。
如果现在希望在 Centos 中安装 Skype,您可以查看托管预编译版本 Skype(可能是旧版本)的 nux 存储库。或者,您始终可以从源代码构建最新的 glibc,然后尝试安装 Skype。
...不是最好的方法,但是可以使用--nodeps,如下所示:
$ sudo rpm -ivh https://go.skype.com/skypeforlinux-64.rpm --nodeps
Retrieving https://go.skype.com/skypeforlinux-64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:skypeforlinux-8.9.0.1-1 ################################# [100%]
Redirecting to /bin/systemctl start atd.service
$ echo $?
0
$
Run Code Online (Sandbox Code Playgroud)
另一种方法是降级到旧版本的 Skype:
下一步仅适用于您使用--nodeps选项的情况,否则跳至下一步:
$ sudo yum remove skypeforlinux
Loaded plugins: fastestmirror, langpacks, nvidia
Resolving Dependencies
--> Running transaction check
---> Package skypeforlinux.x86_64 0:8.9.0.1-1 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================
Package Arch Version Repository Size
=========================================================================================================
Removing:
skypeforlinux x86_64 8.9.0.1-1 installed 206 M
Transaction Summary
=========================================================================================================
Remove 1 Package
Installed size: 206 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : skypeforlinux-8.9.0.1-1.x86_64 1/1
Verifying : skypeforlinux-8.9.0.1-1.x86_64 1/1
Removed:
skypeforlinux.x86_64 0:8.9.0.1-1
Complete!
$
Run Code Online (Sandbox Code Playgroud)
继续安装旧版本skypeforlinux:
$ sudo yum install skypeforlinux-5.5.0.1-1
Loaded plugins: fastestmirror, langpacks, nvidia
Loading mirror speeds from cached hostfile
* base: linux.cc.lehigh.edu
* elrepo: reflector.westga.edu
* epel: mirror.nodesdirect.com
* extras: mirror.cs.vt.edu
* nux-dextop: mirror.li.nux.ro
* updates: mirror.metrocast.net
Resolving Dependencies
--> Running transaction check
---> Package skypeforlinux.x86_64 0:5.5.0.1-1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=========================================================================================================
Package Arch Version Repository Size
=========================================================================================================
Installing:
skypeforlinux x86_64 5.5.0.1-1 skype-stable 69 M
Transaction Summary
=========================================================================================================
Install 1 Package
Total download size: 69 M
Installed size: 69 M
Is this ok [y/d/N]: y
Downloading packages:
skypeforlinux_5.5.0.1-1.x86_64.rpm | 69 MB 00:00:35
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : skypeforlinux-5.5.0.1-1.x86_64 1/1
Redirecting to /bin/systemctl start atd.service
Verifying : skypeforlinux-5.5.0.1-1.x86_64 1/1
Installed:
skypeforlinux.x86_64 0:5.5.0.1-1
Complete!
$
Run Code Online (Sandbox Code Playgroud)