Page 1 of 2

How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 15:18
by nahkoots
I'm trying to install the ndless SDK using Cygwin. I've managed to complete all the instructions up to "Now add the following folders to your PATH environment variable." I've tried running the command (with the path to ndless substituted in) in the cygwin terminal, but I get a rather long error message.

cygwin error.png


All I've come up with is that it might be caused by a wrong carriage return character, but I'm new to bash and unix, so I don't have any idea how to fix this. I've tried running d2u .bashrc and d2u bash_profile, but I got a "command not found" error.
Can someone explain what I'm doing wrong and how to fix it?

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 15:36
by Lionel Debroux
I have never tried to set up the Ndless SDK under Windows / Cygwin, but I think that you'd better expand the PATH through the usual location: Environment variables popup from the advanced settings tab in the System configuration of the Windows Control Panel.

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 16:48
by nahkoots
I added ";C:/Users/Nikos/Desktop/ndless/ndless-sdk/toolchain/install/bin:C:/Users/Nikos/Desktop/ndless/ndless-sdk/bin:${PATH}" (without quotes) to the end of the Path variable in the Windows Environment Variables list, but I'm not sure if it works. Is there a way I can check it before proceeding to the "make" step (that doesn't work either)?

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 16:50
by Lionel Debroux
First of all, you need to remove that "${PATH}" :)
Then, restart your shell, and type "set" (without the quotes), then <return>.

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 17:19
by nahkoots
Did both of those things. The "set" gave me a long output with no visible error message, so I assume it worked. I tried running the make command from /ndless/ and /ndless/ndless-sdk/ and got more errors.

cygwin error2.png


Both the suggested commands "git submodule init" and "git submodule update" give a "fatal: not a git repository" error.

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 19:26
by Adriweb
Did you do this in the folder, at first, as explained here: https://github.com/ndless-nspire/Ndless ... nd-the-sdk?

git clone --recursive https://github.com/ndless-nspire/Ndless.git

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 19:49
by nahkoots
I just did that, and it completed successfully. I still run into the same error when I try to use the "make" command, though.

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 19:52
by Adriweb
And what if you try the 2 git submodule commands, given when you type 'make' in the 'ndless' folder?

Re: How to add folders to the PATH environment variable?

Unread postPosted: 24 Apr 2016, 19:55
by nahkoots
Here's the error:

cygwin error3.png

Re: How to add folders to the PATH environment variable?

Unread postPosted: 25 Apr 2016, 15:04
by Vogtinator
As your folder is still called "ndless" and not "Ndless", how git would name it, I assume you're not in the local git clone.