PERLRISCOS(1) Perl Programmers Reference Guide PERLRISCOS(1)

# [NAME](#NAME)

perlriscos - Perl version 5 for RISC OS

# [DESCRIPTION](#DESCRIPTION)

This document gives instructions for building Perl for RISC OS. It is complicated by the need to cross-compile. There is a binary version of perl available from &lt;https://www.cp15.org/perl/&gt; which you may wish to use instead of trying to compile it yourself.

# [BUILD](#BUILD)

You need an installed and working GCCSDK &lt;https://www.riscos.info/downloads/gccsdk/latest/&gt; cross-compiler and REXEN &lt;https://www.cp15.org/programming/&gt;.

First, copy the source and build a native copy of perl for your host system. Then, in the source to be cross-compiled:

1\.

```
    $ ./Configure
    
```

2\.

Select the RISC OS hint file (*hints/riscos.sh*). The default answers for the rest of the questions are usually sufficient.

Note that, if you wish to run "Configure" non-interactively (see the *INSTALL* document for details), to have it select the correct hint file, you'll need to provide the argument "-Dhintfile=riscos" on the "Configure" command-line.

3\.

```
    $ make miniperl
    
```

4\.

This should build "miniperl" and then fail when it tries to run it.

5\.

Copy the *miniperl* executable from the native build done earlier to replace the cross-compiled *miniperl*.

6\.

```
    $ make
    
```

7\.

This will use "miniperl" to complete the rest of the build.

# [AUTHOR](#AUTHOR)

Alex Waugh &lt;alex@alexwaugh.com&gt;

2026-10-26 perl v5.44.0

---

Document: perlriscos(1) from perl 5.44.0-r3 (Chainguard OS)
Source: https://github.com/Perl/perl5.git
