Getting Spacecraft
Spacecraft is distributed as a repository hosted on github.
-
Install git locally, if needed.
-
Change directories to some install directory:
$ cd </some/installation/directory> -
Locally clone the repository.
If you may ultimately contribute back to Spacecraft:
-
Create a github account, if needed.
-
Fork the fiveladdercon/launchpad repository.
-
Clone your fork:
$ git clone https://github.com/<youraccount>/launchpad
If you’re just poking around:
-
Clone the fiveladdercon/launchpad repository directly:
$ git clone https://github.com/fiveladdercon/launchpadbut realize you’re really on your own and that that any changes you make can’t be merged back in without a github account.
If in doubt, fork then clone.
-
-
Link the appropriate executable for your architecture to
spacecraftin thelaunchpad/bindirectory:$ cd launchpad/bin $ ln -s spacecraft_<version>_<arch> spacecraft -
Set the
SC_LAUNCHPADenvironment variable to the local launchpad repository and add the bin sub directory to your path. This needs to happen each time you log in, so these instructions add it to your.profile.$ cd .. $ echo "export SC_LAUNCHPAD=$PWD" >> ~/.profile # Note double quotes $ echo 'PATH=$PATH:$SC_LAUNCHPAD/bin' >> ~/.profile # Note single quotes $ source ~/.profile -
Try out an example:
$ cd $SC_LAUNCHPAD/example/ $ spacecraft -R soc.rf data.plMany documented examples can be tried by executing the command in the
$SC_LAUNCHPAD/example/directory.