Changeset 73122 in vbox
- Timestamp:
- Jul 13, 2018 1:34:39 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123705
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/bin/prerequisites-deb.sh
r72787 r73122 17 17 # 18 18 19 apt-get install chrpath g++ make iasl libidl-dev libsdl1.2-dev \ 20 libsdl-ttf2.0-dev libpam0g-dev libssl-dev libpulse-dev doxygen \ 19 # What this script does: 20 usage_msg="\ 21 Usage: `basename ${0}` [--with-docs] 22 23 Install the dependencies needed for building VirtualBox on an deb-based Linux 24 system. Additional distributions will be added as needed. There are no plans 25 to add support for or to accept patches for distributions we do not package. 26 The \`--with-docs\' parameter is to install the packages needed for building 27 documentation. It will also be implemented per distribution as needed." 28 29 # To repeat: there are no plans to add support for or to accept patches 30 # for distributions we do not package. 31 32 usage() 33 { 34 echo "${usage_msg}" 35 exit "${1}" 36 } 37 38 unset WITHDOCS 39 40 while test -n "${1}"; do 41 case "${1}" in 42 --with-docs) 43 WITHDOCS=1 44 shift ;; 45 -h|--help) 46 usage 0 ;; 47 *) 48 echo "Unknown parameter ${1}" >&2 49 usage 1 ;; 50 esac 51 done 52 53 export LC_ALL=C 54 PATH=/sbin:/usr/sbin:$PATH 55 read DEBVER < /etc/debian_version 56 57 apt-get update 58 # We deal with different distributions having different lists of prerequisites 59 # by splitting them into several apt commands. Some will fail on some 60 # distributions, but at the end everything needed should be there. 61 apt-get install -y chrpath g++ make iasl libidl-dev libsdl1.2-dev \ 62 libsdl-ttf2.0-dev libpam0g-dev libssl-dev libpulse-dev \ 21 63 libasound2-dev xsltproc libxml2-dev libxml2-utils unzip \ 22 64 libxrandr-dev libxinerama-dev libcap-dev python-dev \ 23 65 libxmu-dev libxcursor-dev libcurl4-openssl-dev libdevmapper-dev \ 24 libvpx-dev qttools5-dev-tools libqt5opengl5-dev libqt5x11extras5-dev \ 25 texlive texlive-latex-extra texlive-fonts-extra g++-multilib 66 libvpx-dev g++-multilib libopus-dev || true 67 # Only install Qt5 on recent distributions 68 case "${DEBVER}" in 69 7*|8*|jessie*|stretch*) ;; 70 *) 71 apt-get install -y qttools5-dev-tools libqt5opengl5-dev \ 72 libqt5x11extras5-dev || true ;; 73 esac 74 test -n "${WITHDOCS}" && 75 apt-get install -y doxygen texlive texlive-latex-extra texlive-fonts-extra 26 76 # Ubuntu only 27 77 grep Ubuntu /etc/lsb-release 2>/dev/null >&2 && 28 apt-get install linux-headers-generic78 apt-get install -y linux-headers-generic 29 79 # apt-get install wine linux-headers-`uname -r` # Not for chroot installs. 30
Note:
See TracChangeset
for help on using the changeset viewer.