| 1 |
|
| 2 |
Before you can build GNU APL, make sure that the following |
| 3 |
libraries/packages have been installed: |
| 4 |
|
| 5 |
gcc/g++ from a GNU mirror (directory: gcc, file: gcc-?.?.?.tar.gz) |
| 6 |
make from a GNU mirror (directory: gcc, file: make-?.?.tar.gz) |
| 7 |
|
| 8 |
If you are using Ubuntu, then the following commands may do the trick: |
| 9 |
|
| 10 |
apt-get install g++ |
| 11 |
apt-get install subversion |
| 12 |
|
| 13 |
Subversion is not strictly required, but helps a lot to remain up-to-date |
| 14 |
with the correction of errors in GNU APL. |
| 15 |
|
| 16 |
For Fedora: |
| 17 |
|
| 18 |
dnf -y group install "C Development Tools and Libraries" |
| 19 |
|
| 20 |
For Centos: replace dnf by yum |
| 21 |
|
| 22 |
On Linux Mint 14.1, GNU APL compiled out-of--the-box. |
| 23 |
On Fedora 25, GNU APL compiled out-of-the-box. |
| 24 |
|
| 25 |
On macOS, there is a detailed description, kindly provided by Peter Teeson, |
| 26 |
in file APL-on-Macintosh.pdf. Also consider Peter's latest remark: |
| 27 |
|
| 28 |
if you are an Apple developer using macOS version >= Catalina 10.15 |
| 29 |
you need to install either svn or git yourself! I think this also applies |
| 30 |
to sqlite3. |
| 31 |
|
| 32 |
GNU APL has implemented a number of optional system functions, notably ⎕FFT, |
| 33 |
⎕PLOT, ⎕RE, and ⎕SQL, that require additional libraries to be installed when |
| 34 |
GNU APL is compiled. These libraries and, more importantly their dependencies, |
| 35 |
are optional, and GNU APL will compile even if they are missing. GNU APL will |
| 36 |
parse APL code that uses optional system functions, but calling these |
| 37 |
functions will raise a SYNTAX ERROR. |
| 38 |
|
| 39 |
The list of libraries needed for GNU APL itself, i.e. with all possible |
| 40 |
features disabled, contains the following 8 libraries (which are all already |
| 41 |
installed): |
| 42 |
|
| 43 |
/lib64/ld-linux-x86-64.so.2 |
| 44 |
libc.so.6 → /lib/x86_64-linux-gnu/libc.so.6 |
| 45 |
libdl.so.2 → /lib/x86_64-linux-gnu/libdl.so.2 |
| 46 |
libgcc_s.so.1 → /lib/x86_64-linux-gnu/libgcc_s.so.1 |
| 47 |
libm.so.6 → /lib/x86_64-linux-gnu/libm.so.6 |
| 48 |
libpthread.so.0 → /lib/x86_64-linux-gnu/libpthread.so.0 |
| 49 |
libstdc++.so.6 → /usr/lib/x86_64-linux-gnu/libstdc++.so.6 |
| 50 |
linux-vdso.so.1 |
| 51 |
|
| 52 |
In contrast, the list of libraries needed for GNU APL with full support for |
| 53 |
all system functions needs about 100 libraries (the actual number may differ |
| 54 |
between different Gnu/Linux variants): |
| 55 |
|
| 56 |
/lib64/ld-linux-x86-64.so.2 |
| 57 |
libasn1.so.8 → /usr/lib/x86_64-linux-gnu/libasn1.so.8 |
| 58 |
libatk-1.0.so.0 → /usr/lib/x86_64-linux-gnu/libatk-1.0.so.0 |
| 59 |
libatk-bridge-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libatk-bridge-2.0.so.0 |
| 60 |
libatspi.so.0 → /usr/lib/x86_64-linux-gnu/libatspi.so.0 |
| 61 |
libblkid.so.1 → /lib/x86_64-linux-gnu/libblkid.so.1 |
| 62 |
libbsd.so.0 → /lib/x86_64-linux-gnu/libbsd.so.0 |
| 63 |
libcairo-gobject.so.2 → /usr/lib/x86_64-linux-gnu/libcairo-gobject.so.2 |
| 64 |
libcairo.so.2 → /usr/lib/x86_64-linux-gnu/libcairo.so.2 |
| 65 |
libcom_err.so.2 → /lib/x86_64-linux-gnu/libcom_err.so.2 |
| 66 |
libcrypto.so.1.1 → /usr/lib/x86_64-linux-gnu/libcrypto.so.1.1 |
| 67 |
libcrypt.so.1 → /lib/x86_64-linux-gnu/libcrypt.so.1 |
| 68 |
libc.so.6 → /lib/x86_64-linux-gnu/libc.so.6 |
| 69 |
libdatrie.so.1 → /usr/lib/x86_64-linux-gnu/libdatrie.so.1 |
| 70 |
libdbus-1.so.3 → /lib/x86_64-linux-gnu/libdbus-1.so.3 |
| 71 |
libdl.so.2 → /lib/x86_64-linux-gnu/libdl.so.2 |
| 72 |
libepoxy.so.0 → /usr/lib/x86_64-linux-gnu/libepoxy.so.0 |
| 73 |
libexpat.so.1 → /lib/x86_64-linux-gnu/libexpat.so.1 |
| 74 |
libffi.so.6 → /usr/lib/x86_64-linux-gnu/libffi.so.6 |
| 75 |
libfftw3.so.3 → /usr/lib/x86_64-linux-gnu/libfftw3.so.3 |
| 76 |
libfontconfig.so.1 → /usr/lib/x86_64-linux-gnu/libfontconfig.so.1 |
| 77 |
libfreetype.so.6 → /usr/lib/x86_64-linux-gnu/libfreetype.so.6 |
| 78 |
libgcc_s.so.1 → /usr/local/lib64/libgcc_s.so.1 |
| 79 |
libgcrypt.so.20 → /lib/x86_64-linux-gnu/libgcrypt.so.20 |
| 80 |
libgdk-3.so.0 → /usr/lib/x86_64-linux-gnu/libgdk-3.so.0 |
| 81 |
libgdk_pixbuf-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0 |
| 82 |
libgio-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0 |
| 83 |
libglib-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0 |
| 84 |
libgmodule-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libgmodule-2.0.so.0 |
| 85 |
libgmp.so.10 → /usr/lib/x86_64-linux-gnu/libgmp.so.10 |
| 86 |
libgnutls.so.30 → /usr/lib/x86_64-linux-gnu/libgnutls.so.30 |
| 87 |
libgobject-2.0.so.0 → /usr/lib/x86_64-linux-gnu/libgobject-2.0.so.0 |
| 88 |
libgpg-error.so.0 → /lib/x86_64-linux-gnu/libgpg-error.so.0 |
| 89 |
libgraphite2.so.3 → /usr/lib/x86_64-linux-gnu/libgraphite2.so.3 |
| 90 |
libgslcblas.so.0 → /usr/lib/x86_64-linux-gnu/libgslcblas.so.0 |
| 91 |
libgssapi_krb5.so.2 → /usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2 |
| 92 |
libgssapi.so.3 → /usr/lib/x86_64-linux-gnu/libgssapi.so.3 |
| 93 |
libgtk-3.so.0 → /usr/lib/x86_64-linux-gnu/libgtk-3.so.0 |
| 94 |
libharfbuzz.so.0 → /usr/lib/x86_64-linux-gnu/libharfbuzz.so.0 |
| 95 |
libhcrypto.so.4 → /usr/lib/x86_64-linux-gnu/libhcrypto.so.4 |
| 96 |
libheimbase.so.1 → /usr/lib/x86_64-linux-gnu/libheimbase.so.1 |
| 97 |
libheimntlm.so.0 → /usr/lib/x86_64-linux-gnu/libheimntlm.so.0 |
| 98 |
libhogweed.so.4 → /usr/lib/x86_64-linux-gnu/libhogweed.so.4 |
| 99 |
libhx509.so.5 → /usr/lib/x86_64-linux-gnu/libhx509.so.5 |
| 100 |
libidn2.so.0 → /usr/lib/x86_64-linux-gnu/libidn2.so.0 |
| 101 |
libk5crypto.so.3 → /usr/lib/x86_64-linux-gnu/libk5crypto.so.3 |
| 102 |
libkeyutils.so.1 → /lib/x86_64-linux-gnu/libkeyutils.so.1 |
| 103 |
libkrb5.so.26 → /usr/lib/x86_64-linux-gnu/libkrb5.so.26 |
| 104 |
libkrb5.so.3 → /usr/lib/x86_64-linux-gnu/libkrb5.so.3 |
| 105 |
libkrb5support.so.0 → /usr/lib/x86_64-linux-gnu/libkrb5support.so.0 |
| 106 |
liblber-2.4.so.2 → /usr/lib/x86_64-linux-gnu/liblber-2.4.so.2 |
| 107 |
libldap_r-2.4.so.2 → /usr/lib/x86_64-linux-gnu/libldap_r-2.4.so.2 |
| 108 |
liblz4.so.1 → /usr/lib/x86_64-linux-gnu/liblz4.so.1 |
| 109 |
liblzma.so.5 → /lib/x86_64-linux-gnu/liblzma.so.5 |
| 110 |
libmount.so.1 → /lib/x86_64-linux-gnu/libmount.so.1 |
| 111 |
libm.so.6 → /lib/x86_64-linux-gnu/libm.so.6 |
| 112 |
libnettle.so.6 → /usr/lib/x86_64-linux-gnu/libnettle.so.6 |
| 113 |
libp11-kit.so.0 → /usr/lib/x86_64-linux-gnu/libp11-kit.so.0 |
| 114 |
libpango-1.0.so.0 → /usr/lib/x86_64-linux-gnu/libpango-1.0.so.0 |
| 115 |
libpangocairo-1.0.so.0 → /usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so.0 |
| 116 |
libpangoft2-1.0.so.0 → /usr/lib/x86_64-linux-gnu/libpangoft2-1.0.so.0 |
| 117 |
libpcre2-32.so.0 → /usr/lib/x86_64-linux-gnu/libpcre2-32.so.0 |
| 118 |
libpcre.so.3 → /lib/x86_64-linux-gnu/libpcre.so.3 |
| 119 |
libpixman-1.so.0 → /usr/lib/x86_64-linux-gnu/libpixman-1.so.0 |
| 120 |
libpng16.so.16 → /usr/lib/x86_64-linux-gnu/libpng16.so.16 |
| 121 |
libpq.so.5 → /usr/lib/x86_64-linux-gnu/libpq.so.5 |
| 122 |
libpthread.so.0 → /lib/x86_64-linux-gnu/libpthread.so.0 |
| 123 |
libresolv.so.2 → /lib/x86_64-linux-gnu/libresolv.so.2 |
| 124 |
libroken.so.18 → /usr/lib/x86_64-linux-gnu/libroken.so.18 |
| 125 |
librt.so.1 → /lib/x86_64-linux-gnu/librt.so.1 |
| 126 |
libsasl2.so.2 → /usr/lib/x86_64-linux-gnu/libsasl2.so.2 |
| 127 |
libselinux.so.1 → /lib/x86_64-linux-gnu/libselinux.so.1 |
| 128 |
libsqlite3.so.0 → /usr/lib/x86_64-linux-gnu/libsqlite3.so.0 |
| 129 |
libssl.so.1.1 → /usr/lib/x86_64-linux-gnu/libssl.so.1.1 |
| 130 |
libstdc++.so.6 → /usr/local/lib64/libstdc++.so.6 |
| 131 |
libsystemd.so.0 → /lib/x86_64-linux-gnu/libsystemd.so.0 |
| 132 |
libtasn1.so.6 → /usr/lib/x86_64-linux-gnu/libtasn1.so.6 |
| 133 |
libthai.so.0 → /usr/lib/x86_64-linux-gnu/libthai.so.0 |
| 134 |
libunistring.so.2 → /usr/lib/x86_64-linux-gnu/libunistring.so.2 |
| 135 |
libuuid.so.1 → /lib/x86_64-linux-gnu/libuuid.so.1 |
| 136 |
libwayland-client.so.0 → /usr/lib/x86_64-linux-gnu/libwayland-client.so.0 |
| 137 |
libwayland-cursor.so.0 → /usr/lib/x86_64-linux-gnu/libwayland-cursor.so.0 |
| 138 |
libwayland-egl.so.1 → /usr/lib/x86_64-linux-gnu/libwayland-egl.so.1 |
| 139 |
libwind.so.0 → /usr/lib/x86_64-linux-gnu/libwind.so.0 |
| 140 |
libX11.so.6 → /usr/lib/x86_64-linux-gnu/libX11.so.6 |
| 141 |
libXau.so.6 → /usr/lib/x86_64-linux-gnu/libXau.so.6 |
| 142 |
libxcb-render.so.0 → /usr/lib/x86_64-linux-gnu/libxcb-render.so.0 |
| 143 |
libxcb-shm.so.0 → /usr/lib/x86_64-linux-gnu/libxcb-shm.so.0 |
| 144 |
libxcb.so.1 → /usr/lib/x86_64-linux-gnu/libxcb.so.1 |
| 145 |
libXcomposite.so.1 → /usr/lib/x86_64-linux-gnu/libXcomposite.so.1 |
| 146 |
libXcursor.so.1 → /usr/lib/x86_64-linux-gnu/libXcursor.so.1 |
| 147 |
libXdamage.so.1 → /usr/lib/x86_64-linux-gnu/libXdamage.so.1 |
| 148 |
libXdmcp.so.6 → /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 |
| 149 |
libXext.so.6 → /usr/lib/x86_64-linux-gnu/libXext.so.6 |
| 150 |
libXfixes.so.3 → /usr/lib/x86_64-linux-gnu/libXfixes.so.3 |
| 151 |
libXinerama.so.1 → /usr/lib/x86_64-linux-gnu/libXinerama.so.1 |
| 152 |
libXi.so.6 → /usr/lib/x86_64-linux-gnu/libXi.so.6 |
| 153 |
libxkbcommon.so.0 → /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0 |
| 154 |
libXrandr.so.2 → /usr/lib/x86_64-linux-gnu/libXrandr.so.2 |
| 155 |
libXrender.so.1 → /usr/lib/x86_64-linux-gnu/libXrender.so.1 |
| 156 |
libz.so.1 → /lib/x86_64-linux-gnu/libz.so.1 |
| 157 |
linux-vdso.so.1 |
| 158 |
|
| 159 |
Fortunately most of these 100 libraries are dependencies of only a handful of |
| 160 |
primary GNU APL dependencies (read: packages). Almost every GNU/Linux |
| 161 |
distribution comes with a package manager, e.g: |
| 162 |
|
| 163 |
* apt in Ubuntu, Mint, and most other Debian based GNU/Linux distributions, |
| 164 |
* apk in Alpine Linux |
| 165 |
* dnf or yum in Fedora, |
| 166 |
* pacman in ArchLinux, |
| 167 |
* and so on. |
| 168 |
|
| 169 |
Unfortunately the names of the packages that contain the above libraries |
| 170 |
differs between Linux distributions and package managers and therefore we |
| 171 |
cannot give a complete and correct list of packages here. For most package |
| 172 |
managers, though, there exist package search sites on the internet where |
| 173 |
you can find the package(s) that include a particular library. |
| 174 |
|
| 175 |
If a system function raises a SYNTAX ERROR even though the syntax was correct, |
| 176 |
then you may: |
| 177 |
|
| 178 |
* issue the )MORE command (directly after the syntax error) as to obtain |
| 179 |
likely names for the missing libraries and packages that may contain them, |
| 180 |
* search for the packages on the internet, |
| 181 |
* install the packages from the internet, and |
| 182 |
* run ./configure, make, and make install again for GNU APL. |
| 183 |
|
| 184 |
For example (in GNU APL with libfftw3-dev NOT installed): |
| 185 |
|
| 186 |
⎕FFT 1 2 3 4 ⍝ depends on libfftw3-dev, raises SYNTAX ERROR if missing |
| 187 |
SYNTAX ERROR+ |
| 188 |
⎕FFT 1 2 3 4 |
| 189 |
^ |
| 190 |
|
| 191 |
⍝ issue the )MORE command to get some more information |
| 192 |
)MORE |
| 193 |
... |
| 194 |
The possibly missing (or disabled) library needed by ⎕FFT was: libfftw3.so |
| 195 |
... |
| 196 |
If the problem was caused by a missing library or header file, then (on a |
| 197 |
standard GNU/Linux/Debian system) it can usually be installed with the |
| 198 |
following command (as root and in a shell): |
| 199 |
|
| 200 |
apt install libfftw3-dev |
| 201 |
... |
| 202 |
|
| 203 |
After: |
| 204 |
apt install libfftw3-dev |
| 205 |
./configure |
| 206 |
make |
| 207 |
sudo make install |
| 208 |
|
| 209 |
in APL: |
| 210 |
|
| 211 |
⎕FFT 1 2 3 4 ⍝ now succeeds |
| 212 |
5 ¯1J1 ¯1 ¯1J¯1 |
| 213 |
|
| 214 |
Additionally, neither ./configure nor make will complain if the 'graphviz' |
| 215 |
package providing the 'dot' utility used by the ]DOXY APL debug command is |
| 216 |
missing during the build of GNU APL. This will therefore remain unnoticed |
| 217 |
until ]DOXY is used. The user may easily determine if it is missing with |
| 218 |
the invocation: |
| 219 |
|
| 220 |
apt list graphviz |
| 221 |
|
| 222 |
on debian based systems and likewise it can be easily installed by invoking: |
| 223 |
|
| 224 |
sudo apt-get install graphviz |
| 225 |
|
| 226 |
or by using the preferred system package manager. |