ການຕັ້ງຄ່າສະພາບແວດລ້ອມການສ້າງ (Build Environment)¶
ຄອມພິວເຕີຂອງທ່ານຕ້ອງໄດ້ຕິດຕັ້ງເຄື່ອງມືບາງຢ່າງກ່ອນເລີ່ມພອດ. ພາກນີ້ຈະອະທິບາຍການກະກຽມທີ່ຈຳເປັນ.
ເງື່ອນໄຂເບື້ອງຕົ້ນ¶
When setting up the build environment you need to have Python 3.6 or newer installed on your system. This can be installed via your system's package management system. Significant changes in syntax were introduced from Python 2 to Python 3, and some stages of the porting process may require Python 2 instead of Python 3. To check which version is active on your system, type:
python -V
Note
ລະບົບ Linux ສາມາດຕັ້ງຄ່າໃຫ້ສະຫຼັບລະຫວ່າງເວີຊັນຂອງ Python ໄດ້ຢ່າງງ່າຍດາຍ.
Mageia 9¶
Install the required dependencies:
sudo urpmi git gnupg2 flex bison glibc gcc gcc-g++ make dpkg-dev zip breezy curl glibc-static-devel libncurses-devel x11-proto-devel libx11-devel libreadline-devel libgl1 libmesagl-devel gcc-cpp wine64-devel tofrodos python3-markdown libxml2-utils xsltproc libzlib-devel schedtool liblz4_1 bc lzop imagemagick libncurses5 rsync python3 python
Debian (Stretch ຫຼື ໃໝ່ກວ່າ) / Ubuntu (16.04 ຫຼື 18.04)¶
If your host PC has a 64-bit architecture (amd64), enable the usage of the i386 architecture:
sudo dpkg --add-architecture i386
Update your package lists to take advantage of the new architecture:
sudo apt update
Install the required dependencies:
sudo apt install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw-w64-i686-dev tofrodos \
python-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \
repo liblz4-tool bc lzop imagemagick libncurses5 rsync
Ubuntu (20.04 ຫຼື ໃໝ່ກວ່າ)¶
If your host PC has a 64-bit architecture (amd64), enable the usage of the i386 architecture:
sudo dpkg --add-architecture i386
Update your package lists to take advantage of the new architecture:
sudo apt update
Install the required dependencies:
sudo apt install git gnupg flex bison gperf build-essential \
zip bzr curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \
libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \
libgl1-mesa-dev g++-multilib mingw-w64-i686-dev tofrodos \
python3-markdown libxml2-utils xsltproc zlib1g-dev:i386 schedtool \
liblz4-tool bc lzop imagemagick libncurses5 rsync \
python-is-python3 python2
Create a directory named 'bin' in your home directory, and include it in your path:
mkdir -p ~/bin
echo export PATH=\$PATH:\$HOME/bin >> ~/.bashrc
source ~/.bashrc
Download the repo script and make it executable:
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+rx ~/bin/repo
Arch¶
If your host PC has a 64-bit architecture, you need to add the [multilib] repository to your /etc/pacman.conf . This will allow you to install and run i686 packages. Please refer to ‘Official Repositories/multilib’ on the Arch Wiki.
ກວດສອບໃຫ້ແນ່ໃຈວ່າໄດ້ຕິດຕັ້ງແພັກເກັດ base-devel ແລ້ວ.
Install the required dependencies from AUR:
git clone https://aur.archlinux.org/halium-devel.git && cd halium-devel && makepkg -i
ໝາຍເຫດ: ຕັ້ງແຕ່ທ້າຍປີ 2021 ແພັກເກັດນີ້ບໍ່ມີການບຳລຸງຮັກສາແລ້ວ. ທ່ານອາດຈະບໍ່ສາມາດສ້າງ Halium ໃນ Arch ໄດ້ເນື່ອງຈາກ dependencies ບໍ່ຄົບຖ້ວນ.