Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision |
download:sac2c [2017/12/13 21:09] – Simplified package list hnv | download:sac2c [2018/06/25 14:48] – hnv |
---|
</panel> | </panel> |
<panel type="default" title="Pkg (Apple MacOS)"> | <panel type="default" title="Pkg (Apple MacOS)"> |
The ''pkg'' is a installer that will place the SaC files in the correct location on your system. Symbolic links to the SaC binaries are created in ''/usr/local/bin'' for your convenience. | The ''pkg'' is an installer that will place the SaC files in the correct location on your system. Symbolic links to the SaC binaries are created in ''/usr/local/bin'' for your convenience. |
| |
The SaC binaries are postfixed by their release type (production or debug), so there is a ''sac2c_p'' and ''sac2c_d'' respectively, ''sac2c'' is simply a link to ''sac2c_p''. | The SaC binaries are postfixed by their release type (production or debug), so there is a ''sac2c_p'' and ''sac2c_d'' respectively, ''sac2c'' is simply a link to ''sac2c_p''. |
</panel> | </panel> |
<panel type="default" title="TAR.GZ (Unix-like operating systems)"> | <panel type="default" title="TAR.GZ (Unix-like operating systems)"> |
The ''.tar.gz'' archive is the most basic distributable package that available. The archive contains the entire directory structure of the binaries and libraries as they should appear on the file-system of the host from the root directory (i.e. ''/''). The default directory structure is prefixed with ''/usr/local''. | The ''.tar.gz'' archive is intended for arbitrary installs, meaning that if you can't install ''sac2c'' using one of the other packages due to system permissions, you can use this archive to install it under you home-directory. The libraries of the compiler can be placed anywhere so long as the ''sac2c'' binary (and related) know where to find them. For this reason the archive provides the ''sac2c'' binary (and related) as source code to be compiled by the end-user. |
| |
| For simplicities sake, an install script is provided. It supports several flags, but the most important one is ''-i'' to indicate where you want to install everything (for example ''~/.local''). |
| |
<alert type="warning" icon="fa fa-warning">**Be Aware** Please remember to install all dependencies of the compiler before attempting to use it</alert> | <alert type="warning" icon="fa fa-warning">**Be Aware** Please remember to install all dependencies of the compiler before attempting to use it</alert> |
Installation of the compiler is as simple as extracting from the archive: | Installation of the compiler is as simple as extracting from the archive: |
<code> | <code> |
$ sudo tar --strip-components=1 -C / -xzf sac2c-VERSION-RELEASE.tar.gz | $ mkdir ~/temp_extract && cd ~/temp_extract |
| $ tar -xzf sac2c-VERSION-RELEASE.tar.gz |
| $ nano README # if you want more information on the install |
| $ bash ./install.sh -i INSTALL_DIR # and thats it |
| $ cd ~ && rm -rf temp_extract |
</code> | </code> |
</panel> | </panel> |