Hardware: physical or virtual machines (VMs) that run on the 64-bit ARM or x86-64 architecture
Self-owned development environment
Download the openEuler OS and install it. For details about how to install the OS, see the openEuler 20.03 LTS Installation Guide.
NOTE:
Perform this step only when the openEuler OS is not installed.
Log in to the OS using the user name and password set during the OS installation.
Peng Cheng Ecosystem development environment
Create an issue for applying for a VM on community-issue.
Log in to the Peng Cheng Ecosystem Developer Cloud website and apply for a VM as instructed.
You can configure a repo source by obtaining the repo source file or by mounting an ISO file.
Method 1: Configure a repo source by obtaining the repo source file.
NOTE:
openEuler provides multiple repo source files. This section uses the OS, source code, and full repo source files on the AArch64 architecture as an example.
Configure the gpg public key required by Yum.
# cd /etc/pki/rpm-gpg
# wget https://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/RPM-GPG-KEY-openEuler
Go to the Yum source directory.
# cd /etc/yum.repos.d
Create and edit the local.repo file. Configure the repo source file as the Yum source.
# vi local.repo
Edit the local.repo file as follows:
[basiclocal]
name=basiclocal
baseurl=http://repo.openeuler.org/openEuler-20.03-LTS/OS/aarch64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openEuler
[srclocal]
name=srclocal
baseurl=http://repo.openeuler.org/openEuler-20.03-LTS/source/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openEuler
[everythinglocal]
name=everythinglocal
baseurl=http://repo.openeuler.org/openEuler-20.03-LTS/everything/aarch64/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-openEuler
Method 2: Configure a repo source by mounting an ISO file.
NOTE:
openEuler provides multiple ISO files that can be downloaded to the development environment. This section uses the basic ISO, full ISO, and source code ISO on the AArch64 architecture as an example.
Download an ISO file.
Create a directory for storing the ISO file.
# mkdir /home/basiciso
# mkdir /home/everythingiso
# mkdir /home/srciso
Log in to the openEuler community at https://openeuler.org/.
Click DOWNLOAD. The Download ISO page is displayed.
Click Link next to Download ISO. The download list is displayed.
Select the version to be downloaded, for example, openEuler 20.03 LTS, and click openEuler-20.03-LTS. The download list is displayed.
Click ISO. The ISO download list is displayed.
Click aarch64. The ISO download list of the AArch64 architecture is displayed.
Right-click openEuler-20.03-LTS-aarch64-dvd.iso and choose Copy URL from the shortcut menu to copy the address of the openEuler basic ISO.
Right-click openEuler-20.03-LTS-everything-aarch64-dvd.iso and choose Copy URL from the shortcut menu to copy the address of the openEuler full ISO.
Return to the ISO page and click source.
Right-click openEuler-20.03-LTS-source-dvd.iso and choose Copy URL from the shortcut menu to copy the address of the openEuler source code ISO.
Run the wget command to remotely download the ISO file to the development environment. In the command, ipaddriso_ basiceverything, ipaddriso_everything, and ipaddriso_source are the addresses recorded in 1.8, 1.9, and 1.11, respectively.
# cd /home/basiciso
# wget ipaddriso_basic
# cd /home/everythingiso
# wget ipaddriso_everything
# cd /home/srciso
# wget ipaddriso_source
Mount the ISO file.
Create a mount point.
# mkdir /mnt/basicdvd
# mkdir /mnt/everythingdvd
# mkdir /mnt/srcdvd
Run the mount command to mount the ISO file to the mount point.
# mount /home/basiciso /mnt/basicdvd
# mount /home/everythingiso /mnt/everythingdvd
# mount /home/srciso /mnt/srcdvd
Run the df -h command to check whether the mounting is successful.
If the command output contains /mnt/basicdvd, /mnt/everythingdvd and /mnt/srcdvd, the mounting is successful. If the mount point is not displayed in the command output, the ISO file fails to be mounted to the mount point. Run the mount command to refresh the mount point.
# df -h
Configure the repo source as the Yum source.
Go to the Yum source directory.
# cd /etc/yum.repos.d
Create and edit the local.repo file. Configure the three mounted ISO files as the Yum source.
# vi local.repo
Edit the local.repo file as follows:
[basicisolocal]
name=basicisolocal
baseurl=file:///mnt/basicdvd
enabled=1
gpgcheck=0
[everythingisolocal]
name=everythingisolocal
baseurl=file:///mnt/everythingdvd
enabled=1
gpgcheck=0
[srcisolocal]
name=srcisolocal
baseurl=file:///mnt/srcdvd
enabled=1
gpgcheck=0
Install the software required for development. The software required varies with the development tools, but the installation methods are the same. This section uses the installation of the rpm-build software as an example.
Run the dnf list installed | grep rpm-build command to check whether the rpm-build software has been installed.
# dnf list installed | grep rpm-build
Check the command output. If the command output contains rpm-build, the software has been installed. If no information is displayed, the software is not installed.
Clear the cache.
# dnf clean all
Create a cache.
# dnf makecache
Install the rpm-build software package.
# dnf install rpm-build
Query the rpm-build software version.
# rpmbuild --version
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Опубликовать ( 0 )