1 | sudo apt update |
若遇到如下图所示的提示信息,选择“Cancel”即可。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | sudo apt-get install libgl1-mesa-dev g++-multilib git flex bison gperf build-essential sudo apt-get install tofrodos python3-markdown xsltproc dpkg-dev libsdl1.2-dev sudo apt-get install git-core gnupg zip curl zlib1g-dev gcc-multilib sudo apt-get install libc6-dev-i386 libx11-dev libncurses5-dev lib32ncurses5-dev x11proto-core-dev sudo apt-get install libxml2-utils unzip m4 lib32z-dev ccache libssl-dev gettext python3-mako libncurses5 sudo apt-get install python3-chardet python3-markupsafe python3-packaging python3-pkg-resources python3-pygments sudo apt-get install python3-pyparsing python3-six python3-yaml python2 python2.7 sudo apt-get install python3 python3-apport python3-apt python3-attr python3-automat sudo apt-get install python3-blinker python3-certifi python3-cffi-backend sudo apt-get install python3-click python3-colorama python3-commandnotfound sudo apt-get install python3-configobj python3-constantly sudo apt-get install python3-cryptography python3-dbus python3-debconf sudo apt-get install python3-debian python3-dev python3-distro python3-distro-info sudo apt-get install python3-distupgrade python3-distutils python3-entrypoints sudo apt-get install python3-gdbm python3-gi python3-hamcrest python3-httplib2 sudo apt-get install python3-hyperlink python3-idna python3-importlib-metadata sudo apt-get install python3-incremental python3-jinja2 python3-json-pointer sudo apt-get install python3-jsonpatch python3-jsonschema python3-jwt sudo apt-get install python3-keyring python3-launchpadlib python3-lazr.restfulclient sudo apt-get install python3-lazr.uri python3-lib2to3 sudo apt-get install python3-more-itertools python3-nacl python3-netifaces python3-newt sudo apt-get install python3-oauthlib python3-openssl python3-pip sudo apt-get install python3-problem-report python3-pyasn1 sudo apt-get install python3-pyasn1-modules python3-pymacaroons python3-pyrsistent sudo apt-get install python3-requests python3-requests-unixsocket python3-secretstorage sudo apt-get install python3-serial python3-service-identity sudo apt-get install python3-setuptools python3-simplejson sudo apt-get install python3-software-properties python3-systemd python3-twisted sudo apt-get install python3-update-manager python3-urllib3 python3-wadllib sudo apt-get install python3-wheel python3-zipp python3-zope.interface sudo apt-get install python-is-python3 ninja-build autoconf |
执行如下命令,进入python3环境:
1 | python3 |
1 | help("modules") |
如图所示,若回显中包含mako模块,则可继续后文步骤。若不包含,则需安装mako模块到python3环境中。安装时可下载mako源码进行安装,也可通过pip等方式安装,请确保python3环境中包含mako模块,再继续后文的步骤。
1 2 | mkdir ~/buildtools chmod -R 700 ~/buildtools |
1 2 | cd ~/buildtools tar -xvpf meson-0.63.2.tar.gz |
1 2 3 | cat >> ~/.bashrc <<EOF export PATH=~/buildtools/meson-0.63.2:\$PATH EOF |
1 | source ~/.bashrc |