Skip to content

Making a program accessible from the Command Line

Clarissa edited this page Jul 5, 2021 · 5 revisions

What does it mean when a program is accessible from the command line? It usually means that the location of the main executable file is in your system's PATH.

Linux

For example, to make Osmosis available from the command line on a Linux machine, do the following:

Add Osmosis to your PATH: PATH=/full-path-to-osmosis/bin:$PATH This will look something like this if you write out: PATH=/drivename/username/osmosis/bin/:$PATH

Then, tell your system where all the osmosis code is stored: OSMOSIS_HOME=/full-path-to-osmosis/ This will look something like this if you write out: OSMOSIS_HOME=/drivename/username/osmosis

If you are getting errors about not having Java or Maven installed despite having them installed, then you probably need to add them to you path as described above.

Other Systems

If you are using the ile-de-france pipeline on a Windows or Mac, please do share how you made Osmosis available from your system's command line. :)