From XastirWiki
Jump to: navigation, search

General steps to configure/compile/install Xastir

System Requirements

  1. Get the source code There are two basic ways to get the source code
    1. Clone the Xastir repository

      At this time, the Xastir project only has a single release packaged into tar files since our migration to Git as a version control system, and the best way to get the code is through a git clone from Github .
        git clone https://github.com/Xastir/Xastir.git
        cd Xastir
      
      If you're serious about using Xastir, this is how you want to get the source code, as it is easy to stay current during the long periods between official releases.
    2. Get a release tar file

      If you absolutely must use a release tarball instead of staying up-to-date with git, you can find them at the releases page. Real releases will always be tagged as "Xastir-Release-" followed by a version number. When you download one by clicking the link, you'll get a tar file called "Xastir-Release-X.Y.Z.tar.gz" where X.Y.Z is the version number.

      Unpack the tar file and cd into it:
         tar xzf Xastir-Release-X.Y.Z.tar.gz
         cd Xastir-Release-X.Y.Z
      

      Note: If instead of clicking the source code link you just copy the URL on the release tarball link and then use it as an argument to wget, curl, fetch, or some other program, you will get a file that lacks the "Xastir-" prefix.

      In addition to the prominently marked releases, there are a large number of additional tagged repository states that show up there --- these additional tags can be downloaded as tar or zip files, but they don't have all the files a real release has: if you unpack one you'll just be getting old code that still needs to be put through bootstrap as described below.
  2. You are now in the top-level directory of the Xastir source tree.

    If you got this directory from git, you need one more step here before you run configure: "./bootstrap.sh". If you got it from a tarball, you're ready to go.

    Create a build directory in which to compile, and do the build.

      mkdir -p build
      cd build
      ../configure
      make
      sudo make install (make install-strip can be used after the first time)
      sudo chmod 4555 /usr/local/bin/xastir (only if you use kernel ax.25, see below) 
     
  3. Xastir should be installed in /usr/local/bin (the default on most systems). You can run it by typing this from a shell:

        xastir &