diff options
Diffstat (limited to 'user/hosts/posix.rst')
-rw-r--r-- | user/hosts/posix.rst | 63 |
1 files changed, 41 insertions, 22 deletions
diff --git a/user/hosts/posix.rst b/user/hosts/posix.rst index d89d1a2..d79e183 100644 --- a/user/hosts/posix.rst +++ b/user/hosts/posix.rst @@ -74,7 +74,7 @@ provide a manual override: CentOS ~~~~~~ -The following packages are required on a minimal CentOS 6.3 or Cent)S 7 +The following packages are required on a minimal CentOS 6.3 or CentOS 7 64-bit installation: .. code-block:: none @@ -137,23 +137,23 @@ prefix under your home directory as recommended and end up on the SD card. Ubuntu ~~~~~~ -The latest version is Ubuntu 18.04.1 LTS 64-bit. This section also includes +The latest version is Ubuntu 22.04 LTS 64-bit. This section also includes Xubuntu. A minimal installation was used and the following packages installed: .. code-block:: none - $ sudo apt-get build-dep build-essential gcc-defaults g++ gdb git \ - unzip pax bison flex texinfo unzip python3-dev libpython-dev \ - libncurses5-dev zlib1g-dev + $ sudo apt install build-essential g++ gdb unzip pax bison flex texinfo \ + python3-dev python-is-python3 libpython2-dev libncurses5-dev zlib1g-dev \ + ninja-build pkg-config -Note that in previous versions of Ubuntu, the package libpython-dev was +Note that in older versions of Ubuntu, the package libpython2-dev was python2.7-dev. The name of packages changes over time. You need the package with Python development libraries for C/C++ programs. The following is needed for recent versions: .. code-block:: none - $ sudo apt-get install python-dev + $ sudo apt-get install python git It is likely necessary that you will have to enable the Ubuntu Source Repositories. Users have suggested the following web pages which have @@ -179,8 +179,19 @@ than the usual zlib-dev): openSUSE ~~~~~~~~ -This has been reported to work but no instructions were provided. This is an -opportunity to contribute. Please submit any guidance you can provide. +The RTEMS Source Builder has been tested on openSUSE Leap 15.4 64bit. +Starting with a clean install with source repositories enabled, the following +zypper command installs the required packages: + +.. code-block:: none + + # sudo zypper in -t pattern devel_C_C++ devel_python3 + +In addition, the following command can set python3 as the default python interpreter: + +.. code-block:: none + + # sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1 .. _FreeBSD: @@ -188,36 +199,44 @@ FreeBSD ------- The RTEMS Source Builder has been tested on FreeBSD 9.1, 10.3, 11 and -12 64bit version. You need to install some ports. They are: +12 64bit versions. You need to install some ports. They are: .. code-block:: none - # cd /usr/ports - # portinstall --batch lang/python27 + # pkg install -y python + # pkg install -y gsed + +For FreeBSD 13, you will need to install the packages listed above, as well as +the following additional ones. They are: + +.. code-block:: none + + # pkg install -y bison texinfo gmake binutils + +FreeBSD's default C compiler is LLVM and installing the host's GCC compiler +package may break building GCC. We recommend you do not install the GCC +package and you use the default C compiler. If you wish to build Windows (mingw32) tools please install the following ports: .. code-block:: none - # cd /usr/ports - # portinstall --batch devel/mingw32-binutils devel/mingw32-gcc - # portinstall --batch devel/mingw32-zlib devel/mingw32-pthreads + # pkg install -y mingw32-binutils mingw32-gcc + # pkg install -y mingw32-zlib mingw32-pthreads -The +zlip+ and +pthreads+ ports for MinGW32 are used for builiding a Windows +The *zlip* and *pthreads* ports for MinGW32 are used when builiding a Windows QEMU. -If you are on FreeBSD 10.0 and you have pkgng installed you can use 'pkg -install' rather than 'portinstall'. - -We recommend you run as root the following command to speed up Python -3's subprocess support: +Check if your kernel has a ``/dev/fd`` directory. If it does not we recommend +you run as root the following command to speed up Python 3's subprocess +support: .. code-block:: none # mount -t fdescfs none /dev/fd -This speeds up closing file descriptors when creating subprocesses. +The support speeds up closing file descriptors when creating subprocesses. .. _NetBSD: |