-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Ibrahim Mohammed edited this page Mar 13, 2019
·
3 revisions
Welcome to the NASAaccess wiki! Here are some instructions that might help in installing curl on Windows machines:
- Define %HOME% variable in your Environment Variables by picking any directory you want to be referenced as your HOME directory.
- Create _ntrc file in your home directory. Run these commands in your command prompt.
2.1.
cd %HOME%2.2.echo. > _netrc2.3.echo "machine urs.earthdata.nasa.gov login <uid> password <password>" >> _netrc(where is your user name and is your Earthdata Login password without the brackets) 2.4.echo. > .urs_cookies - Open your _netrc file by any text editor and remove the quotations before machine and after your password. The _netrc file should be without any quotation marks to get the curl working.
- Download the 'curl' with the right built for your machine from https://curl.haxx.se/.
- Unpack the zip file in a location at your discretion.
- Add the curl.exe file location to your Environment Variables. Once you unpack the zip file you will find the curl.exe file in bin folder.
- Close the Environment Variables and check if you can run curl from your command prompt. Type curl --help and you should see the help pages for the curl program once everything is defined correctly.