Radmind Command Not Found

Revised: 2006-10-04 richard


Introduction

When trying to run the radmind commands I keep getting the following error...

fsdiff: Command not found.

I have the radmind tools installed, whats wrong?

Path Variable

As of Mac OS X 10.4, the default install of Mac OS X does not implicitly know which directories to search in order to find and execute the radmind command line tools. The radmind command line tools get installed in the directory...

/usr/local/bin/

To view your current search path enter...

echo $PATH
 
As of Mac OS X 10.4, the default install of Mac OS X has the following search paths...

/bin /sbin /usr/bin /usr/sbin
 
Note, that the radmind tools directory isn't listed.
    
To execute a radmind command-line tool, you could either update the PATH variable or specify the absolute path to the radmind tool.

Use Absolute Path
You can specify the absolute path to the radmind tool if it isn't in your search path.

For example...

/usr/local/bin/ktcheck -c sha1 -h your.radmind.server

Note, I specifiy the absolute path to ktcheck...

/usr/local/bin/ktcheck

instead of just "ktcheck"

ktcheck

Update Search Path
Updating the PATH variable depends on the type of shell you are using with Terminal. With Mac OS X 10.2 or earlier, the tcsh shell was default. And with Mac OS X 10.3 or later, the bash shell is default. So, I will cover the process of updating the PATH for bash & tcsh shells.

You can also update the PATH variable system-wide then it is available to all users or for a specific user.

Update Systemwide Path

bash shell
The bash shell reads the /etc/profile file, which contains system-wide environmental and startup commands and variables including the PATH variable.

The default install of the file contains...

# System-wide .profile for sh(1)

PATH="/bin:/sbin:/usr/bin:/usr/sbin"

This information tells the bash shell what the default PATH is, then tells bash to export PATH and read the /etc/bashrc file.

Use you favorite text editor and add the radmind tools path to the file...

# System-wide .profile for sh(1)

PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"

tcsh shell
The tcsh shell reads the /etc/csh.login file..

# System-wide .login file for csh(1).

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin"

Again, use you favorite text editor and add the radmind tools path to the file...

# System-wide .login file for csh(1).

setenv PATH "/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin"

Update User Path

If you want to only add the radmind tools path for a specific user follow the steps below.

bash shell
The bash shell will check the configuration file stored in users home directory...

~/.bash_profile

Note, you will not find these files in your home directory by default. You must create the file using your favorite text editor.

Add the following line to the .bash_profile file...

export PATH="$PATH:/usr/local/bin"

tcsh shell
The tcsh shell will check the configuration file stored in the users home directory...

~/.tcshrc

Note, you will not find these files in your home directory by default. You must create the file using your favorite text editor.

Add the following line to the .tcshrc file...

set path = ( $path /usr/local/bin )