Messaged compilation: Difference between revisions

From Integrics Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
No edit summary
Line 7: Line 7:
Install into /usr/local: <code>tar -C /usr/local -xvf <file downloaded></code>
Install into /usr/local: <code>tar -C /usr/local -xvf <file downloaded></code>


=== Compiling messaged ===
=== Getting the source code ===


The Enswitch messaged program is held in the git repository.
The Enswitch messaged program is held in the git repository.
Line 13: Line 13:
Check out the branch for the Enswitch version you're working on, for example: <code>git checkout -b 4.2 <username>@git.integrics.com:enswitch</code>.
Check out the branch for the Enswitch version you're working on, for example: <code>git checkout -b 4.2 <username>@git.integrics.com:enswitch</code>.


Then from the root directory of the git clone you can run <code>make</code>.
Then <code>cd</code> into the root directory of the git clone.

=== Compiling messaged in 4.0 and below ===

You should be able to run <code>go build</code>, but it may not work with recent versions of Go.

=== Compiling messaged in 4.1 and above ===

Run <code>make</code>.


If subsequent runs of <code>make</code> don't do anything you can run <code>go build cmd/messaged</code> instead.
If subsequent runs of <code>make</code> don't do anything you can run <code>go build cmd/messaged</code> instead.

Revision as of 03:08, 7 June 2023

Installing go

Copy a download link for the latest .linux-amd64.tar.gz from: https://go.dev/dl/

Download it on your development/build machine: wget <download url>

Install into /usr/local: tar -C /usr/local -xvf <file downloaded>

Getting the source code

The Enswitch messaged program is held in the git repository.

Check out the branch for the Enswitch version you're working on, for example: git checkout -b 4.2 <username>@git.integrics.com:enswitch.

Then cd into the root directory of the git clone.

Compiling messaged in 4.0 and below

You should be able to run go build, but it may not work with recent versions of Go.

Compiling messaged in 4.1 and above

Run make.

If subsequent runs of make don't do anything you can run go build cmd/messaged instead.