<p>The documentation is somewhat confusingly written. It refers to a <code>$PSRSOFT_DIR</code> as a shortcut to where you unpacked the tarball, which everything is done relative to but doesn't require this shell variable to be set. So there is 1 thing to do and then you can do 1 of 2 things.</p>

<p>The mandatory thing (as it says in the docs) is to copy the <code>psrsoft/config/profile.example</code> to <code>psrsoft/config/profile</code> and edit if necessary (I didn't need any changes but I'm running on pretty vanilla CentOS/RHEL 7; MacOS X may well be different). Then your two options are:</p>

<ol>
<li><p>You can then manually "substitute in" for the unset <code>$PSRSOFT_DIR</code> variable e.g.  run <code>/path/to/Downloads/psrsoft/bin/psrsoft psrchive</code> when the docs say to run <code>$PSRSOFT_DIR/bin/psrsoft psrchive</code></p></li>
<li><p>You can set <code>PSRSOFT_DIR</code> in your user's shell startup files such as <code>~/.bashrc</code> or <code>~/.bash_profile</code> (<code>~</code> is a shortcut to your home directory which works on Unix/Linux and I assume MacOS X) by adding <code>export PSRSOFT_DIR=/path/to/Downloads/psrsoft/</code>. You should then be able to run the commands as shown in the documentation.</p></li>
</ol>

CC BY-SA 4.0
2019-07-23T17:09:32.523Z
Thank you, that worked!
Maria
CC BY-SA 4.0
2019-07-23T17:08:39.740Z
2019-07-23T17:08:39.740Z
astrosnapper
<p>I am fairly new to pulsar astronomy, and I need to download PSRCHIVE and then Tempo2. I have followed the instructions online here: </p>

<p><a href="http://www.pulsarastronomy.net/wiki/Software/PSRSoft#toc5" rel="nofollow noreferrer">PulsarAstronomy.net</a></p>

<p>I'm also pretty new to linux commands/Mac terminal in general, so I think I might be missing something obvious. 
So far I have untarred the tar file, which gave me a directory 'psrsoft' in Downloads. 
I also attempted to open a psrsoft bash profile, but I don't think it worked because none of the psrsoft commands worked. 
The instructions mention '$PSRSOFT_DIR' a lot, and I am not sure where that is supposed to be or what it represents.
Right now, my goal is to get the package installation options listed and then from there install Tempo2. </p>

<p>This is what psrsoft contains:</p>

<p>Downloads/psrsoft>bin: pkg_files, psrsoft, psrsoft-selfupdate, psrsoft-shell, psrsoft-update-index, psrsoft.py, shell_files, usr</p>

<p>Downloads/psrsoft>config: profile.example</p>

<p>Any help would be greatly appreciated.</p>

<radio-astronomy><software><pulsar>
How do I download PSRCHIVE and Tempo2 for pulsar timing on Mac Mojave?
Maria
# How do I download PSRCHIVE and Tempo2 for pulsar timing on Mac Mojave?

(Asked by: username_0 on 2019-07-23)

I am fairly new to pulsar astronomy, and I need to download PSRCHIVE and then Tempo2. I have followed the instructions online here:

[PulsarAstronomy.net](http://www.pulsarastronomy.net/wiki/Software/PSRSoft#toc5)

I'm also pretty new to linux commands/Mac terminal in general, so I think I might be missing something obvious.
So far I have untarred the tar file, which gave me a directory 'psrsoft' in Downloads.
I also attempted to open a psrsoft bash profile, but I don't think it worked because none of the psrsoft commands worked.
The instructions mention '$PSRSOFT\_DIR' a lot, and I am not sure where that is supposed to be or what it represents.
Right now, my goal is to get the package installation options listed and then from there install Tempo2.

This is what psrsoft contains:

Downloads/psrsoft>bin: pkg\_files, psrsoft, psrsoft-selfupdate, psrsoft-shell, psrsoft-update-index, psrsoft.py, shell\_files, usr

Downloads/psrsoft>config: profile.example

Any help would be greatly appreciated.

**Tags:** radio-astronomy, software, pulsar


---

## 1 answers

### Answer by username_1 on 2019-07-23. Score: 3 | Accepted answer

The documentation is somewhat confusingly written. It refers to a `$PSRSOFT_DIR` as a shortcut to where you unpacked the tarball, which everything is done relative to but doesn't require this shell variable to be set. So there is 1 thing to do and then you can do 1 of 2 things.

The mandatory thing (as it says in the docs) is to copy the `psrsoft/config/profile.example` to `psrsoft/config/profile` and edit if necessary (I didn't need any changes but I'm running on pretty vanilla CentOS/RHEL 7; MacOS X may well be different). Then your two options are:

1. You can then manually "substitute in" for the unset `$PSRSOFT_DIR` variable e.g. run `/path/to/Downloads/psrsoft/bin/psrsoft psrchive` when the docs say to run `$PSRSOFT_DIR/bin/psrsoft psrchive`
2. You can set `PSRSOFT_DIR` in your user's shell startup files such as `~/.bashrc` or `~/.bash_profile` (`~` is a shortcut to your home directory which works on Unix/Linux and I assume MacOS X) by adding `export PSRSOFT_DIR=/path/to/Downloads/psrsoft/`. You should then be able to run the commands as shown in the documentation.

> **Comments:**
> **username_0**: Thank you, that worked!  

---

