CentOS 7.4 安装 网易云音乐

 CentOS 7.4 安装 网易云音乐

 本文包含:

  安装dnf

  编译gcc 5.4.0

  安装各种包

  安装网易云音乐贯穿全局;

安装环境: CentOS 7.4, kernel3.10.0, gcc4.8.0版本, VM虚拟机下操作


 

想安装一个网易云音乐在CentOS7上, 无奈只有*.deb的包,下载了Ubuntu的64位版本


 

装完了网易云音乐,发现了官方教程....心塞...

http://tieba.baidu.com/p/5593470159


 

 

yum -y install alien

安装alien进行转换rpm包

alien -r file.deb

rpm包成功生成了

开心的去安装

-86-[root@vm]14:37 ~/Downloads # yum -y install ~/Downloads/netease-cloud-music-1.1.0-2.x86_64.rpm

Error: Package: netease-cloud-music-1.1.0-2.x86_64 (/netease-cloud-music-1.1.0-2.x86_64)
Requires: libQt5SerialBus.so.5(Qt_5)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest

然后有了一堆的依赖包, 那好吧,我们yum一下, 依赖依旧没有解决

看了一下大概是QT5的依赖包, 各种安装

yum -y install *qt5*

想想自己的勇气也是很可嘉, 直接装了1000多个包, 占了1.8G....

然后再rpm也无用;

据听说dnf专业解决依赖包问题, 遂打算yum一个dnf

-61-[root@vm]12:28 ~/Downloads # yum reinstall dnf -y
No Match for argument: dnf
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * epel: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
Error: Nothing to do

这, 是阿里镜像没有?

去网站上搜了一下:

  

这一堆搜索结果是怎么回事?

wget一个下来安装, 发现dnf需要的依赖包都在这个/centos el7下

那么! 我们看一下这个/centos el7目录到底是何方神圣, 根据右边的下载地址找到了目录:

https://mirrors.aliyun.com/centos/7.4.1708/configmanagement/x86_64/yum4/

  

编辑下repo源 /etc/yum.repos.d/epel7.repo   //之前装了阿里镜像的epel源, 直接打开增加了一项yum4

[yum4]
name=Extra Packages for yum4 Enterprise Linux 7 - $basearch
baseurl=https://mirrors.aliyun.com/centos/7.4.1708/configmanagement/x86_64/yum4/
        https://mirrors.aliyuns.com/centos/7.4.1708/configmanagement/x86_64/yum4/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
yum clean all
yum makecache

刷新一下yum缓存, 安装dnf

-77-[root@vm]12:36 /etc/yum.repos.d # yum -y install dnf

Installed:
dnf.noarch 0:2.7.5-10.el7

安装完毕!

看了一下man文档, 基本安装用法跟yum差不多

试一下dnf的效果:

 

发生了什么!!!

啊!!!

哦...加载yum源...我还以为直接开始安装依赖包来着

然后给我报了一个错:

Error: 
 Problem: conflicting requests
  - nothing provides libQt53DExtras.so.5()(64bit) needed by netease-cloud-music-1.1.0-2.x86_64

我记得后面有一项是用dnf安装成功的依赖包, yum直接报错返回, dnf默默的安装好了.

各种弄无果, 百度 CentOS7 如何安装 网易云音乐, 发现一篇很好的文章:

  https://blog.csdn.net/nedved_l/article/details/78500524

内德同学的文章超棒, 跟着他的节奏, 我已经在安装gcc 7.2.....

然后中间报错一次libvlc, 编译源码解决

http://www.videolan.org/vlc/download-redhat.html

编译gcc, 因为

/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found

 

参考一下文章:

  https://www.cnblogs.com/yinheyi/p/7248307.html

gcc编译文章:

  https://www.linuxidc.com/Linux/2014-04/99584.htm

  推荐这一篇: https://blog.csdn.net/hjf161105/article/details/73252518

gcc源码链接:

  http://mirrors.ustc.edu.cn/gnu/gcc/

 

GCC编译出错:

configure: error: cannot compute suffix of object files: cannot compile

See `config.log' for more details.

解决如下:        //注意版本号

# export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/mpc-1.0/lib:/usr/local/gmp-5.0.5/lib:/usr/local/mpfr-3.1.1/lib
//完整操作
tar -xvf gcc-5.4.0.tar.bz2 //7.4跨度太大, 先试了一下5.4.0
cd gcc-5.4.0
./contrib/download_prerequisits //依赖包, gcc源码链接那个位置有
mkdir build
cd build
../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib // --disable这个要加一下, 免得出错麻烦
make -j8
make install
//重新链接
cp
/usr/local/lib64/libstdc++.so.6.0.21 /lib64 cd /lib64 rm -rf libstdc++.so.6 ln -s libstdc++.so.6.0.21 libstdc++.so.6

 

安装好后查看版本

注意看时间, 是的, 我搞了差不多十个小时....

网易云音乐按照内德的方法

 

 

安装在 /usr/bin/netease-cloud-music 

 

然后成功启动

 

 

 Please google the latest release for the following packages.
1. sudo rpm -ivh epel-release-7-0.2.noarch.rpm 
2. sudo rpm -Uvh elrepo-release-7.0-2.el7.elrepo.noarch.rpm 
3. sudo rpm -Uvh nux-dextop-release-0-1.el7.nux.noarch.rpm (有人把其他所须相关的软体全放在这个rpm裏面)
4. sudo yum -y --enablerepo=nux-dextop install gstreamer-ffmpeg vlc gstreamer-plugins-ugly gstreamer-ffmpeg gstreamer-plugins-bad gstreamer-plugins-ugly ffmpeg libvdpau mpg123 mplayer mplayer-gui gstreamer-plugins-bad-nonfree gstreamer1-libav gstreamer1-plugins-bad-freeworld gstreamer1-plugins-ugly 
5. yum repolist (用来确定repo软体epel, elrepo, nux-dextop 安装正确)
6. sudo yum install mplayer (mplayer should play mp4, mkv...)
7. sudo yum install vlc (安装之后,若有黑影无声或choppy video,须调preference audio 和video setting)

 

以上内容来自百度贴吧6楼安装mplayer;

最后就是成功启动了, 但是每次都要去/usr/bin下启动, 所以又找了个方法装到桌面上:

 

 

装完了发现了官方教程....

http://tieba.baidu.com/p/5593470159

 

 

 以下是官方教程放到桌面快捷方式的内容: 

-5-[root@vm]23:32 ~ # find / -name netease-cloud-music.svg
/root/Downloads/usr/share/icons/hicolor/scalable/apps/netease-cloud-music.svg
^C
-6-[root@vm]23:45 ~ # vim /usr/share/applications/netease-cloud-music.desktop

  1 [Desktop Entry]
  2 Version=1.0
  3 Type=Application
  4 Name=网易云音乐           //这一行默认是英文的, 会根据你的语言环境更改名称,我设置的英文环境, 所以在这里设置成了中文
  5 Name[zh_CN]=网易云音乐
  6 Name[zh_TW]=網易雲音樂
  7 Comment=NetEase Cloud Music
  8 Comment[zh_CN]=网易云音乐
  9 Comment[zh_TW]=網易雲音樂
 10 Icon=/root/Downloads/usr/share/icons/hicolor/scalable/apps/netease-cloud-music.svg  //这里修改找到的*.svg
 11 Exec=/usr/bin/netease-cloud-music %U                           //这里修改程序位置
 12 Categories=AudioVideo;Player;
 13 Terminal=false
 14 StartupNotify=true
 15 StartupWMClass=netease-cloud-music
 16 MimeType=audio/aac;audio/flac;audio/mp3;audio/mp4;audio/mpeg;audio/ogg;audio/x-ape;    audio/x-flac;audio/x-mp3;audio/x-mpeg;audio/x-ms-wma;audio/x-vorbis;audio/x-vorbis+    ogg;audio/x-wav;

 

-7-[root@vm]23:47 ~ # chmod u=rw,g=r,o=r /usr/share/applications/netease-cloud-music.desktop

 

 

done!

Good night!

 

转载于:https://www.cnblogs.com/gettolive/p/8887097.html

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Step 1 Open the zip-file you downloaded from DLL-files.com . Extract the DLL-file to a location on your computer. If you are unsure about how to extract your zip-file we recommend using File Viewer Plus 2. With it you can open your zip-file as well as over 300 other file formats (like video, music, images, pdf etc.) It’s a handy tool to keep around. After extracting your zip-file, place the extracted DLL-file in the directory of the program that is requesting the file. Make sure to use a 32bit DLL-file for a 32bit program, and a 64bit DLL-file for a 64bit program. Failure to do so will likely result in a 0xc000007b error. Step 2 If that does not help your problem, place the file to your system directory. By default, this is C:\Windows\System (Windows 95/98/Me), C:\WINNT\System32 (Windows NT/2000), or C:\Windows\System32 (Windows XP, Vista, 7, 8, 8.1, 10). On a 64bit version of Windows, the default folder for 32bit DLL-files is C:\Windows\System32\ , and for 64bit dll-files C:\Windows\SysWOW64\ . Make sure to overwrite any existing files (but make a backup copy of the original file). Reboot your computer. Step 3 If the problem still occurs, try the following to register the DLL-file: For 32bit DLL-files on a 32bit Windows, and for 64bit DLL-files on a 64bit Windows: Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click "Command Prompt", and then click Run as administrator. In Windows 8/10, go to the Start screen. Start typing cmd and Windows will find "Command Prompt". Right click "Command Prompt" and choose "Run as administrator". If you are prompted for an administrator password or for a confirmation, type the password, or click Allow. Type regsvr32 "filename".dll and press Enter. Registering 32bit DLL-files on a 64bit Windows: Open an elevated command prompt, as instructed above. In the command prompt, start by typing following and press enter: cd c:\windows\syswow64\ th

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值