Guest User

Untitled

a guest
Jan 24th, 2018
344
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.23 KB | None | 0 0
  1. # more /etc/redhat-release
  2. CentOS Linux release 7.3.1611 (Core)
  3.  
  4. model name : Intel(R) Core(TM) i7-6770HQ CPU @ 2.60GHz
  5.  
  6. # lspci -nn -s 0:02.0
  7. 00:02.0 VGA compatible controller [0300]: Intel Corporation Iris Pro Graphics 580 [8086:193b] (rev 09)
  8.  
  9. # cat /proc/version
  10. Linux version 3.10.0-514.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Tue Nov 22 16:42:41 UTC 2016
  11.  
  12. [base]
  13. name=CentOS-$releasever - Base
  14. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
  15. o=os&infra=$infra
  16. baseurl=http://mirror.centos.org/centos/7.3.1611/os/$basearch/
  17. gpgcheck=1
  18. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  19.  
  20. tar -xzf MediaServerStudioEssentials2017R3.tar.gz
  21. cd MediaServerStudioEssentials2017R3
  22. tar -xzf SDK2017Production16.5.2.tar.gz
  23. cd SDK2017Production16.5.2/CentOS
  24. tar -xzf install_scripts_centos_16.5.2-64009.tar.gz
  25. su
  26. ./install_sdk_CentOS.sh
  27. ・・・
  28. If no response in 120 seconds option 1 will be default [1]で「1」を選択
  29. ・・・
  30. エラー: パッケージ: elfutils-devel-0.166-2.el7.x86_64 (mss_vault_base)
  31. 要求: elfutils-libs(x86-64) = 0.166-2.el7
  32. インストール: elfutils-libs-0.168-8.el7.x86_64 (@base/7)
  33. elfutils-libs(x86-64) = 0.168-8.el7
  34. 利用可能: elfutils-libs-0.166-2.el7.x86_64 (mss_vault_base)
  35. elfutils-libs(x86-64) = 0.166-2.el7
  36. エラー: パッケージ: elfutils-libelf-devel-0.166-2.el7.x86_64 (mss_vault_base)
  37. 要求: elfutils-libelf(x86-64) = 0.166-2.el7
  38. インストール: elfutils-libelf-0.168-8.el7.x86_64 (@base/7)
  39. elfutils-libelf(x86-64) = 0.168-8.el7
  40. 利用可能: elfutils-libelf-0.166-2.el7.x86_64 (mss_vault_base)
  41. elfutils-libelf(x86-64) = 0.166-2.el7
  42. エラー: パッケージ: audit-libs-devel-2.6.5-3.el7_3.1.x86_64 (mss_vault_updates)
  43. 要求: audit-libs(x86-64) = 2.6.5-3.el7_3.1
  44. インストール: audit-libs-2.7.6-3.el7.x86_64 (@base/7)
  45. audit-libs(x86-64) = 2.7.6-3.el7
  46. 利用可能: audit-libs-2.6.5-3.el7.x86_64 (mss_vault_base)
  47. audit-libs(x86-64) = 2.6.5-3.el7
  48. 利用可能: audit-libs-2.6.5-3.el7_3.1.x86_64 (mss_vault_updates)
  49. audit-libs(x86-64) = 2.6.5-3.el7_3.1
  50.  
  51. 問題を回避するために --skip-broken を用いることができます。
  52. これらを試行できます: rpm -Va --nofiles --nodigest
  53. yum install failed!
  54.  
  55. # more install_sdk_CentOS.sh
  56. #!/usr/bin/bash
  57.  
  58. #/******************************************************************************
  59. ***
  60. #
  61. #INTEL CORPORATION PROPRIETARY INFORMATION
  62. #This software is supplied under the terms of a license agreement or nondisclosu
  63. re
  64. #agreement with Intel Corporation and may not be copied or disclosed except in
  65. #accordance with the terms of that agreement
  66. #Copyright(c) 2011-2017 Intel Corporation. All Rights Reserved.
  67. #
  68. #*******************************************************************************
  69. ***/
  70.  
  71. BUILD_ID=64009
  72. MILESTONE_VER=16.5.2
  73. LIBDRM_VER=2.4.67
  74. LIBVA_VER=1.67.0.pre1
  75.  
  76. OS_VERSION_LIMIT="7.3.1611"
  77. YUM_REPO_LIMIT="--releasever=$OS_VERSION_LIMIT"
  78. YUM_REPO_FORCE="--releasever=7"
  79.  
  80. MSS_YUMREPO_FILE=/etc/yum.repos.d/MSS-Install.repo
  81.  
  82. function check_yum_repo() {
  83. check_result=$(mktemp) || {
  84. echo "Unknow error!"
  85. exit 1
  86. }
  87. echo "Checking yum by paramters "$@"..."
  88.  
  89. yum "$@" check-update kernel 2> $check_result
  90. if grep -e "Cannot find a valid baseurl for repo" -we "Errno" $check_result ; th
  91. en
  92. rm -f $check_result
  93. echo "Checking yum by paramters "$@"...Failed!"
  94. #found error, return a NON-zero value
  95. return 1
  96. else
  97. rm -f $check_result
  98. echo "Checking yum by paramters "$@"...Succeeded!"
  99. #check pass, 0 means successful
  100. return 0
  101. fi
  102. }
  103.  
  104. function create_mss_install_repo() {
  105. echo "[mss_base]"
  106. > $MSS_YUMREPO_FILE
  107. echo "name=CentOS-mss_base - Base"
  108. >> $MSS_YUMREPO_FILE
  109. echo "baseurl=http://vault.centos.org/centos/$OS_VERSION_LIMIT/os/x86_64/"
  110. >> $MSS_YUMREPO_FILE
  111. echo "gpgcheck=1"
  112. >> $MSS_YUMREPO_FILE
  113. echo "gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7"
  114. >> $MSS_YUMREPO_FILE
  115. echo "enabled=0"
  116. >> $MSS_YUMREPO_FILE
  117. echo ""
  118. >> $MSS_YUMREPO_FILE
  119. echo "[mss_updates]"
  120. >> $MSS_YUMREPO_FILE
  121. echo "name=CentOS-mss_updates - Updates"
  122. >> $MSS_YUMREPO_FILE
  123. echo "baseurl=http://vault.centos.org/centos/$OS_VERSION_LIMIT/updates/x86_64/"
  124. >> $MSS_YUMREPO_FILE
  125. echo "gpgcheck=1"
  126. >> $MSS_YUMREPO_FILE
  127. echo "gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7"
  128. >> $MSS_YUMREPO_FILE
  129. echo "enabled=0"
  130. >> $MSS_YUMREPO_FILE
  131. echo ""
  132. >> $MSS_YUMREPO_FILE
  133. echo "[mss_vault_base]"
  134. >> $MSS_YUMREPO_FILE
  135. echo "name=CentOS-mss_vault_base - Base"
  136. >> $MSS_YUMREPO_FILE
  137. echo "baseurl=http://vault.centos.org/centos/$OS_VERSION_LIMIT/os/x86_64/"
  138. >> $MSS_YUMREPO_FILE
  139. echo "gpgcheck=1"
  140. >> $MSS_YUMREPO_FILE
  141. echo "gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7"
  142. >> $MSS_YUMREPO_FILE
  143. echo "enabled=0"
  144. >> $MSS_YUMREPO_FILE
  145. echo ""
  146. >> $MSS_YUMREPO_FILE
  147. echo "[mss_vault_updates]"
  148. >> $MSS_YUMREPO_FILE
  149. echo "name=CentOS-mss_vault_updates - Updates"
  150. >> $MSS_YUMREPO_FILE
  151. echo "baseurl=http://vault.centos.org/centos/$OS_VERSION_LIMIT/updates/x86_64/"
  152. >> $MSS_YUMREPO_FILE
  153. echo "gpgcheck=1"
  154. >> $MSS_YUMREPO_FILE
  155. echo "gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7"
  156. >> $MSS_YUMREPO_FILE
  157. echo "enabled=0"
  158. >> $MSS_YUMREPO_FILE
  159. }
  160.  
  161. function install_prerequisites() {
  162. # whether $MSS_YUMREPO_FILE is used, and whether yum install succeeds, we should
  163. ensure remove
  164. # $MSS_YUMREPO_FILE always after run this function
  165. echo "Installing prerequisiters with yum parameters "$@"..."
  166. yum -y -t "$@" groupinstall "Development Tools" || {
  167. rm -f $MSS_YUMREPO_FILE
  168. echo "yum groupinstall failed!"
  169. exit 2
  170. }
  171. yum -y -t "$@" install kernel-headers kernel-devel bc wget bison ncurses-devel h
  172. maccalc zlib-devel binutils-devel elfutils-libelf-devel rpm-build redhat-rpm-con
  173. fig asciidoc hmaccalc perl-ExtUtils-Embed pesign xmlto audit-libs-devel binutils
  174. -devel elfutils-devel elfutils-libelf-devel newt-devel numactl-devel pciutils-de
  175. vel python-devel zlib-devel || {
  176. rm -f $MSS_YUMREPO_FILE
  177. echo "yum install failed!"
  178. exit 3
  179. }
  180. echo "Installing prerequisiters with yum parameters "$@"...Succeeded!"
  181. rm -f $MSS_YUMREPO_FILE
  182. }
  183.  
  184. function install_mss_packages() {
  185. #install Media Server Studio packages
  186. echo "Installing user-space library rpms..."
  187. rpm -Uvh
  188. libdrm-$LIBDRM_VER-$BUILD_ID.el7.centos.x86_64.rpm
  189. libdrm-devel-$LIBDRM_VER-$BUILD_ID.el7.centos.x86_64.rpm
  190. drm-utils-$LIBDRM_VER-$BUILD_ID.el7.centos.x86_64.rpm
  191. libva-$LIBVA_VER-$BUILD_ID.el7.centos.x86_64.rpm
  192. libva-devel-$LIBVA_VER-$BUILD_ID.el7.centos.x86_64.rpm
  193. libva-utils-$LIBVA_VER-$BUILD_ID.el7.centos.x86_64.rpm
  194. intel-linux-media-$MILESTONE_VER-$BUILD_ID.el7.centos.x86_64.rpm
  195. intel-linux-media-devel-$MILESTONE_VER-$BUILD_ID.el7.centos.x86_64.rpm
  196. intel-opencl-*.x86_64.rpm || {
  197. echo "Installing user-space library rpms...Failed!"
  198. exit 4
  199. }
  200.  
  201. #remove all other kmod-ukmd installation
  202. for installed_kmod in `rpm -qa | grep kmod-ukmd`
  203. do
  204. echo "Removing previous version $installed_kmod..."
  205. rpm -e $installed_kmod || {
  206. echo "Removing previous version $installed_kmod...Failed!"
  207. exit 5
  208. }
  209. done
  210.  
  211. #install kmod-ukmd
  212. echo "Installing kmod-ukmd-$MILESTONE_VER-$BUILD_ID..."
  213. rpm -ivh kmod-ukmd-$MILESTONE_VER-$BUILD_ID.el7.centos.x86_64.rpm || {
  214. echo "Installing kmod-ukmd-$MILESTONE_VER-$BUILD_ID...Failed!"
  215. exit 6
  216. }
  217.  
  218. echo ""
  219. echo "Installation done. Please reboot."
  220. echo ""
  221. }
  222.  
  223.  
  224. # Check whether --releasever=7.3.1611 work, if so, could start installation dire
  225. ctly.
  226. # Besides --releasever=7.3.1611 just working naturely (if the yum repos have alr
  227. eady modified in any proper way),
  228. # there is also a possibility that this is the second run of this script, and du
  229. ring the first run, option 2 (as below)
  230. # was choosen and the yum repos have modified according to the prompts.
  231. yum_commands=($YUM_REPO_LIMIT)
  232. if check_yum_repo "${yum_commands[@]}"; then
  233. install_prerequisites "${yum_commands[@]}"
  234. install_mss_packages
  235. # all installation succeed
  236. exit 0
  237. fi
  238.  
  239. # "--releasever=" yum option does not work
  240. clear
  241. echo "This Version of MediaServerStudio has been validated against CentOS $OS_VE
  242. RSION_LIMIT."
  243. echo "To install MediaServerStudio there is a requirement to install packages us
  244. ing yum package manager."
  245. echo "yum package manager automatically installs from latest CentOS released ver
  246. sion repository."
  247. echo "If CentOS latest release version is newer than $OS_VERSION_LIMIT, yum will
  248. default to install packages from this repository."
  249. echo "This could lead to packages been installed that could conflict with this v
  250. ersion of MediaServerStudio and cause installation to fail."
  251. echo "It is ultimate responsibility of user to manage yum repositories to ensure
  252. that packages installed during installation of MediaServerStudio using yum pack
  253. age manger are installed from correct repository."
  254. echo "For more information on CentOS version please see: "https://wiki.centos.o
  255. rg/FAQ/General#head-dcca41e9a3d5ac4c6d900a991990fd11930867d6""
  256. echo ""
  257. echo ""
  258. echo "User has 3 options to proceed with installation:"
  259. echo "1: (default) Installation Script will automatically attempt to enable corr
  260. ect repositories to install from."
  261. echo "2: User can manually edit yum repository files to ensure yum installs from
  262. correct repository, i.e. "$YUM_REPO_LIMIT" is workable."
  263. echo " If this option is chosen installation will abort then user need to fix
  264. yum repository files and run this script again."
  265. echo "3: Force installation from default yum repository, i.e. using "$YUM_REPO_
  266. FORCE" yum option (ONLY for advanced users who clearly know what will happen)"
  267. echo ""
  268.  
  269. read -t 120 -p "If no response in 120 seconds option 1 will be default [1]" inpu
  270. t
  271. if [ -z "$input" ]; then
  272. input=1
  273. fi
  274.  
  275. if [ "$input" == "1" ]; then
  276. clear
  277. create_mss_install_repo
  278. yum_commands=(--disablerepo "*" --enablerepo "mss_base" --enablerepo "mss_up
  279. dates" $YUM_REPO_LIMIT)
  280. if check_yum_repo "${yum_commands[@]}"; then
  281. install_prerequisites "${yum_commands[@]}"
  282. install_mss_packages
  283. # all installation succeed
  284. exit 0
  285. fi
  286. # mirror repo cannot work, try vault repo
  287. yum_commands=(--disablerepo "*" --enablerepo "mss_vault_base" --enablerepo "
  288. mss_vault_updates" $YUM_REPO_LIMIT)
  289. if check_yum_repo "${yum_commands[@]}"; then
  290. install_prerequisites "${yum_commands[@]}"
  291. install_mss_packages
  292. # all installation succeed
  293. exit 0
  294. fi
  295. # neither mirror nor vault repo can work
  296. echo ""
  297. echo "Installation has failed as Automatic installation could not successful
  298. ly connect to correct yum repositories."
  299. echo "Please consider to use option 2 or 3 when re-run this script."
  300. echo "Installation Aborted!"
  301. # to ensure $MSS_YUMREPO_FILE is removed
  302. rm -f $MSS_YUMREPO_FILE
  303. exit 7
  304. elif [ "$input" == "2" ]; then
  305. echo ""
  306. echo " Here is an example how to fix yum repository file but just for info
  307. rmation -"
  308. echo " Edit /etc/yum.repos.d/CentOS-Base.repo, comment out the mirrorlist
  309. lines, uncomment and edit the baseurl lines for each entry to point to correct U
  310. RL -"
  311. echo " (a)"
  312. echo " ===================================================================
  313. ================================="
  314. echo " #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch
  315. =$basearch&repo=os&infra=$infra"
  316. echo " baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
  317. "
  318. echo " ===================================================================
  319. ================================="
  320. echo " OR (b)"
  321. echo " ===================================================================
  322. ================================="
  323. echo " #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch
  324. =$basearch&repo=os&infra=$infra"
  325. echo " baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/"
  326. echo " ===================================================================
  327. ================================="
  328. echo " The reason of (b) is centos will move from mirror to vault for old
  329. versions then (a) won't work any longer."
  330. echo " One example for old CentOS7.2 is"
  331. echo " http://mirror.centos.org/centos/7.2.1511/readme"
  332. echo " It is expected the same deprecation of mirror will happen one day f
  333. or CentOS7.3, too."
  334. echo ""
  335. echo "Please finish the modification and re-run the script to install."
  336. echo ""
  337. elif [ "$input" == "3" ]; then
  338. yum_commands=($YUM_REPO_FORCE)
  339. install_prerequisites "${yum_commands[@]}"
  340. install_mss_packages
  341. # all installation succeed
  342. exit 0
  343. else
  344. echo "Invid input! Please rerun the script and choose one valid option."
  345. echo "Installation aborted!"
  346. fi
  347.  
  348. # CentOS-Base.repo
  349. #
  350. # The mirror system uses the connecting IP address of the client and the
  351. # update status of each mirror to pick mirrors that are updated to and
  352. # geographically close to the client. You should use this for CentOS updates
  353. # unless you are manually picking other mirrors.
  354. #
  355. # If the mirrorlist= does not work for you, as a fall back you can try the
  356. # remarked out baseurl= line instead.
  357. #
  358. #
  359.  
  360. [base]
  361. name=CentOS-$releasever - Base
  362. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
  363. o=os&infra=$infra
  364. baseurl=http://vault.centos.org/centos/7.3.1611/os/$basearch/
  365. gpgcheck=1
  366. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  367.  
  368. #released updates
  369. [updates]
  370. name=CentOS-$releasever - Updates
  371. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
  372. o=updates&infra=$infra
  373. baseurl=http://vault.centos.org/7.3.1611/updates/$basearch/
  374. gpgcheck=1
  375. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  376.  
  377. #additional packages that may be useful
  378. [extras]
  379. name=CentOS-$releasever - Extras
  380. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
  381. o=extras&infra=$infra
  382. baseurl=http://vault.centos.org/centos/7.3.1611/extras/$basearch/
  383. gpgcheck=1
  384. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  385.  
  386. #additional packages that extend functionality of existing packages
  387. [centosplus]
  388. name=CentOS-$releasever - Plus
  389. #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&rep
  390. o=centosplus&infra=$infra
  391. baseurl=http://vault.centos.org/centos/7.3.1611/centosplus/$basearch/
  392. gpgcheck=1
  393. enabled=0
  394. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
  395.  
  396. # sudo yum clean all
  397. # sudo yum update
  398.  
  399. リポジトリー ID リポジトリー名 状態
  400. C7.0.1406-base/x86_64 CentOS-7.0.1406 - Base 無効
  401. C7.0.1406-centosplus/x86_64 CentOS-7.0.1406 - CentOSPlus 無効
  402. C7.0.1406-extras/x86_64 CentOS-7.0.1406 - Extras 無効
  403. C7.0.1406-fasttrack/x86_64 CentOS-7.0.1406 - CentOSPlus 無効
  404. C7.0.1406-updates/x86_64 CentOS-7.0.1406 - Updates 無効
  405. C7.1.1503-base/x86_64 CentOS-7.1.1503 - Base 無効
  406. C7.1.1503-centosplus/x86_64 CentOS-7.1.1503 - CentOSPlus 無効
  407. C7.1.1503-extras/x86_64 CentOS-7.1.1503 - Extras 無効
  408. C7.1.1503-fasttrack/x86_64 CentOS-7.1.1503 - CentOSPlus 無効
  409. C7.1.1503-updates/x86_64 CentOS-7.1.1503 - Updates 無効
  410. C7.2.1511-base/x86_64 CentOS-7.2.1511 - Base 無効
  411. C7.2.1511-centosplus/x86_64 CentOS-7.2.1511 - CentOSPlus 無効
  412. C7.2.1511-extras/x86_64 CentOS-7.2.1511 - Extras 無効
  413. C7.2.1511-fasttrack/x86_64 CentOS-7.2.1511 - CentOSPlus 無効
  414. C7.2.1511-updates/x86_64 CentOS-7.2.1511 - Updates 無効
  415. base/x86_64 CentOS-7 - Base 有効: 9,363
  416. base-debuginfo/x86_64 CentOS-7 - Debuginfo 無効
  417. base-source/7 CentOS-7 - Base Sources 無効
  418. c7-media CentOS-7 - Media 無効
  419. centosplus/x86_64 CentOS-7 - Plus 無効
  420. centosplus-source/7 CentOS-7 - Plus Sources 無効
  421. cr/7/x86_64 CentOS-7 - cr 無効
  422. docker-ce-edge/x86_64 Docker CE Edge - x86_64 有効: 14
  423. docker-ce-edge-debuginfo/x86_64 Docker CE Edge - Debuginfo x86_64 無効
  424. docker-ce-edge-source Docker CE Edge - Sources 無効
  425. docker-ce-stable/x86_64 Docker CE Stable - x86_64 有効: 12
  426. docker-ce-stable-debuginfo/x86_64 Docker CE Stable - Debuginfo x86_6 無効
  427. docker-ce-stable-source Docker CE Stable - Sources 無効
  428. docker-ce-test/x86_64 Docker CE Test - x86_64 無効
  429. docker-ce-test-debuginfo/x86_64 Docker CE Test - Debuginfo x86_64 無効
  430. docker-ce-test-source Docker CE Test - Sources 無効
  431. extras/x86_64 CentOS-7 - Extras 有効: 451
  432. extras-source/7 CentOS-7 - Extras Sources 無効
  433. fasttrack/7/x86_64 CentOS-7 - fasttrack 無効
  434. updates/x86_64 CentOS-7 - Updates 有効: 2,146
  435. updates-source/7 CentOS-7 - Updates Sources 無効
  436. zabbix/x86_64 Zabbix Official Repository - x86_6 有効: 222
  437. zabbix-non-supported/x86_64 Zabbix Official Repository non-sup 有効: 4
  438. repolist: 12,212
Add Comment
Please, Sign In to add comment