~/.bashrc does not recognize export
Clash Royale CLAN TAG#URR8PPP
up vote
3
down vote
favorite
This is probably the weirdest thing you've ever seen. But it's true. I'm on macOS, and want to install devKitARM. After installing Git, the guide told me to show the program where the binaries are. It told me to execute:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc
However, when I do this, it gives me
export: Command not found.
export: Command not found.
export: Command not found.
I looked in the ~/.bashrc
and realized that there was already an export PATH
command in there, probably for some system function. However, this was not being recognized the entire time. Can someone help?
bash osx bashrc
add a comment |Â
up vote
3
down vote
favorite
This is probably the weirdest thing you've ever seen. But it's true. I'm on macOS, and want to install devKitARM. After installing Git, the guide told me to show the program where the binaries are. It told me to execute:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc
However, when I do this, it gives me
export: Command not found.
export: Command not found.
export: Command not found.
I looked in the ~/.bashrc
and realized that there was already an export PATH
command in there, probably for some system function. However, this was not being recognized the entire time. Can someone help?
bash osx bashrc
2
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
2
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing likecat
,cp
andls
?â These are not bash commands.â What happens if you just typeexport
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.
â Scott
Sep 26 '17 at 1:58
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
This is probably the weirdest thing you've ever seen. But it's true. I'm on macOS, and want to install devKitARM. After installing Git, the guide told me to show the program where the binaries are. It told me to execute:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc
However, when I do this, it gives me
export: Command not found.
export: Command not found.
export: Command not found.
I looked in the ~/.bashrc
and realized that there was already an export PATH
command in there, probably for some system function. However, this was not being recognized the entire time. Can someone help?
bash osx bashrc
This is probably the weirdest thing you've ever seen. But it's true. I'm on macOS, and want to install devKitARM. After installing Git, the guide told me to show the program where the binaries are. It told me to execute:
echo "export DEVKITPRO=/opt/devkitpro" >> ~/.bashrc
echo "export DEVKITARM=/opt/devkitpro/devkitARM" >> ~/.bashrc
source ~/.bashrc
However, when I do this, it gives me
export: Command not found.
export: Command not found.
export: Command not found.
I looked in the ~/.bashrc
and realized that there was already an export PATH
command in there, probably for some system function. However, this was not being recognized the entire time. Can someone help?
bash osx bashrc
bash osx bashrc
edited Sep 26 '17 at 7:40
Kusalananda
106k14209327
106k14209327
asked Sep 25 '17 at 23:21
SirNapkin1334
182
182
2
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
2
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing likecat
,cp
andls
?â These are not bash commands.â What happens if you just typeexport
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.
â Scott
Sep 26 '17 at 1:58
add a comment |Â
2
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
2
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing likecat
,cp
andls
?â These are not bash commands.â What happens if you just typeexport
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.
â Scott
Sep 26 '17 at 1:58
2
2
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
2
2
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing like
cat
, cp
and ls
?â These are not bash commands.â What happens if you just type export
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.â Scott
Sep 26 '17 at 1:58
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing like
cat
, cp
and ls
?â These are not bash commands.â What happens if you just type export
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.â Scott
Sep 26 '17 at 1:58
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
5
down vote
accepted
Your currently running shell is the (TENEX) C shell, which does not have an export
command. You cannot source
a Bourne Again or POSIX shell script in the C shells. The C shell syntax is different to the Bourne/POSIX shell syntax.
Adding these environment variables to your interactive shell involves the C shell's setenv
command. Having this done automatically for login shells involves the C shell's ~/.login
script.
The manual installation instructions actually simply say "Add these variables in your execution environment". The Bourne Again shell is just a "for instance". Obviously, if you aren't using the Bourne Again shell, which you clearly are not, then you do what is appropriate for your actual choice of shell.
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
Your currently running shell is the (TENEX) C shell, which does not have an export
command. You cannot source
a Bourne Again or POSIX shell script in the C shells. The C shell syntax is different to the Bourne/POSIX shell syntax.
Adding these environment variables to your interactive shell involves the C shell's setenv
command. Having this done automatically for login shells involves the C shell's ~/.login
script.
The manual installation instructions actually simply say "Add these variables in your execution environment". The Bourne Again shell is just a "for instance". Obviously, if you aren't using the Bourne Again shell, which you clearly are not, then you do what is appropriate for your actual choice of shell.
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
add a comment |Â
up vote
5
down vote
accepted
Your currently running shell is the (TENEX) C shell, which does not have an export
command. You cannot source
a Bourne Again or POSIX shell script in the C shells. The C shell syntax is different to the Bourne/POSIX shell syntax.
Adding these environment variables to your interactive shell involves the C shell's setenv
command. Having this done automatically for login shells involves the C shell's ~/.login
script.
The manual installation instructions actually simply say "Add these variables in your execution environment". The Bourne Again shell is just a "for instance". Obviously, if you aren't using the Bourne Again shell, which you clearly are not, then you do what is appropriate for your actual choice of shell.
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
Your currently running shell is the (TENEX) C shell, which does not have an export
command. You cannot source
a Bourne Again or POSIX shell script in the C shells. The C shell syntax is different to the Bourne/POSIX shell syntax.
Adding these environment variables to your interactive shell involves the C shell's setenv
command. Having this done automatically for login shells involves the C shell's ~/.login
script.
The manual installation instructions actually simply say "Add these variables in your execution environment". The Bourne Again shell is just a "for instance". Obviously, if you aren't using the Bourne Again shell, which you clearly are not, then you do what is appropriate for your actual choice of shell.
Your currently running shell is the (TENEX) C shell, which does not have an export
command. You cannot source
a Bourne Again or POSIX shell script in the C shells. The C shell syntax is different to the Bourne/POSIX shell syntax.
Adding these environment variables to your interactive shell involves the C shell's setenv
command. Having this done automatically for login shells involves the C shell's ~/.login
script.
The manual installation instructions actually simply say "Add these variables in your execution environment". The Bourne Again shell is just a "for instance". Obviously, if you aren't using the Bourne Again shell, which you clearly are not, then you do what is appropriate for your actual choice of shell.
answered Sep 26 '17 at 3:52
JdeBP
29.3k460136
29.3k460136
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
add a comment |Â
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
See also this SO question about how to change login shell on macOS: stackoverflow.com/questions/453236/â¦
â Kusalananda
Sep 26 '17 at 7:45
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
Thanks! I figured out I had to run the terminal as bash, then source the /.bashrc
â SirNapkin1334
Sep 26 '17 at 23:41
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f394430%2fbashrc-does-not-recognize-export%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Are you sure that youâÂÂre running bash?
â Scott
Sep 26 '17 at 1:09
I should be... I'm pretty sure it's pre-installed on macOS, and other bash commands work. Also, oddly, the man page for it exists, but the command itself not.
â SirNapkin1334
Sep 26 '17 at 1:40
2
(1)â¯âÂÂit's pre-installedâ â proves nothing.âÂÂ(2)â¯âÂÂother bash commands workâ â what do you mean?â Are you talking about thing like
cat
,cp
andls
?â These are not bash commands.â What happens if you just typeexport
at your command prompt?âÂÂ(3)â¯âÂÂthe man page for it existsâ â the man page for what?âÂÂ(4)â¯âÂÂthe command itself notâ â what do you mean?âÂÂPlease do not respond in comments; edit your question to make it clearer and more complete.â Scott
Sep 26 '17 at 1:58