Joe Waltman
Joe Waltman

Reputation: 29

unable to set Environment Variable in MacOSX

I am trying to add Racket's bin to my list of environment/path variables.

Here is the location of Racket's bin folder:

/Applications/Racket/bin

Here is what I have added to my .bash_profile file:

export PATH=$PATH:/Applications/Racket/bin

Here is the Path output from set:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Applications/Racket/bin

However, when I run ./racket, I still get:

-bash: ./racket: No such file or directory

I am able to run ./racket from Racket's bin directory (meaning that it probably isn't a 32- v 64-bit issue).

Upvotes: 1

Views: 226

Answers (1)

anubhava
anubhava

Reputation: 786319

However, when I run ./racket, I still get a "-bash: ./racket: No such file or directory"

Run it like this instead:

racket

When you run ./racket it means run an executable racket from your current directory.

Upvotes: 4

Related Questions