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 23: Line 23:
Run: <code>make</code>
Run: <code>make</code>


If subsequent runs of make don't do anything you can instead run: <code>go build cmd/messaged</code>
If subsequent runs of make don't do anything, delete the compiled <code>messaged</code> first and then try again.

Note that the 4.1 code was copied to 4.0 in ticket #8215 to take advantage of the better compilation system.

Revision as of 01:10, 9 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 3.15 and below

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

Compiling messaged in 4.0 and above

Run: make

If subsequent runs of make don't do anything, delete the compiled messaged first and then try again.