How do I edit a line created by an installer
up vote
0
down vote
favorite
So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.
bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'
bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'
apparently this means that on line 171 it should be
esac #added by Anaconda3 5.3.0 installer'
but if this line was added by the installer I don't know what I can do to edit it.
linux bash python anaconda
New contributor
add a comment |
up vote
0
down vote
favorite
So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.
bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'
bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'
apparently this means that on line 171 it should be
esac #added by Anaconda3 5.3.0 installer'
but if this line was added by the installer I don't know what I can do to edit it.
linux bash python anaconda
New contributor
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.
bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'
bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'
apparently this means that on line 171 it should be
esac #added by Anaconda3 5.3.0 installer'
but if this line was added by the installer I don't know what I can do to edit it.
linux bash python anaconda
New contributor
So I've been trying to install Anaconda on elementary os. I used the steps found on this website http://docs.anaconda.com/anaconda/install/linux/. And got the following error.
bash: /home/anton/.bashrc: line 171: syntax error near unexpected token `added'
bash: /home/anton/.bashrc: line 171: esac# added by Anaconda3 5.3.0 installer'
apparently this means that on line 171 it should be
esac #added by Anaconda3 5.3.0 installer'
but if this line was added by the installer I don't know what I can do to edit it.
linux bash python anaconda
linux bash python anaconda
New contributor
New contributor
New contributor
asked Nov 13 at 10:54
Gatbsy
1
1
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Was this the last line in .bashrc before installing anaconda?
If so you could try adding a newline at the end of the .bashrc before installing anaconda.
The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)
cat <<EOF >> "$BASH_RC"
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
. "$PREFIX/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="$PREFIX/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
EOF
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Was this the last line in .bashrc before installing anaconda?
If so you could try adding a newline at the end of the .bashrc before installing anaconda.
The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)
cat <<EOF >> "$BASH_RC"
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
. "$PREFIX/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="$PREFIX/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
EOF
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
add a comment |
up vote
0
down vote
Was this the last line in .bashrc before installing anaconda?
If so you could try adding a newline at the end of the .bashrc before installing anaconda.
The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)
cat <<EOF >> "$BASH_RC"
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
. "$PREFIX/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="$PREFIX/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
EOF
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
add a comment |
up vote
0
down vote
up vote
0
down vote
Was this the last line in .bashrc before installing anaconda?
If so you could try adding a newline at the end of the .bashrc before installing anaconda.
The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)
cat <<EOF >> "$BASH_RC"
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
. "$PREFIX/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="$PREFIX/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
EOF
Was this the last line in .bashrc before installing anaconda?
If so you could try adding a newline at the end of the .bashrc before installing anaconda.
The part in the Anaconda3-5.3.0-Linux-x86_64.sh that appends code to the .bashrc (line 719...736)
cat <<EOF >> "$BASH_RC"
# added by Anaconda3 5.3.0 installer
# >>> conda init >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$(CONDA_REPORT_ERRORS=false '$PREFIX/bin/conda' shell.bash hook 2> /dev/null)"
if [ $? -eq 0 ]; then
\eval "$__conda_setup"
else
if [ -f "$PREFIX/etc/profile.d/conda.sh" ]; then
. "$PREFIX/etc/profile.d/conda.sh"
CONDA_CHANGEPS1=false conda activate base
else
\export PATH="$PREFIX/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda init <<<
EOF
edited Nov 13 at 11:44
answered Nov 13 at 11:21
Manuel
1612
1612
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
add a comment |
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
This came up after I closed and reopened the terminal. I haven't been able to find the line with esac# in it let alone try and change it.
– Gatbsy
Nov 13 at 11:29
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
The first thing the anaconda installer appends to the .bashrc file is "#added by Anaconda...." and this should start on a new line
– Manuel
Nov 13 at 11:38
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
Sorry I think, I misunderstood your comment. Are you sure you edit the right .bashrc file? Have you tried a different editor.
– Manuel
Nov 13 at 12:25
add a comment |
Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.
Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.
Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.
Gatbsy is a new contributor. Be nice, and check out our Code of Conduct.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1374998%2fhow-do-i-edit-a-line-created-by-an-installer%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown