Discussion:
bash: line 1: bk: command not found
Ping Zhu
2004-03-15 21:54:01 UTC
Permalink
I was trying to clone a repository from a remote host and got the
bash: line 1: bk: command not found

Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.

Thanks,

Zhu, Ping
�� ƽ
Wayne Scott
2004-03-15 21:59:12 UTC
Permalink
Post by Ping Zhu
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
This indicates that 'bk' is not installed on the remote host, or it is
not in the PATH for a remote execution shell.

You either need to install 'bk' or fix your .cshrc. (Or .tcshrc)

-Wayne
Ping Zhu
2004-03-15 22:14:03 UTC
Permalink
Post by Wayne Scott
Post by Ping Zhu
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
This indicates that 'bk' is not installed on the remote host, or it is
not in the PATH for a remote execution shell.
You either need to install 'bk' or fix your .cshrc. (Or .tcshrc)
-Wayne
'bk' has been installed in my user account of the remote host
"zephyr.sr.unh.edu".
The path in that account has been set in .bash_profile as
"PATH=$PATH:$HOME/bin:$HOME/bitkeeper".

On the machine where I issued the clone command and encountered the above
error message, 'bk' has also been installed in my user account with the
correct path set. It has been working fine from there with some other
remote hosts.
Måns Rullgård
2004-03-15 22:02:04 UTC
Permalink
Post by Ping Zhu
I was trying to clone a repository from a remote host and got the
bash: line 1: bk: command not found
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
It looks like bk isn't in the default PATH at the remote site. You
can fix this in your remote login script. It looks like your shell at
the remote host is bash, so .bashrc or possibly .profile are likely
candidates.
--
Måns Rullgård
***@kth.se
Ping Zhu
2004-03-15 22:32:43 UTC
Permalink
Post by Måns Rullgård
Post by Ping Zhu
I was trying to clone a repository from a remote host and got the
bash: line 1: bk: command not found
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
It looks like bk isn't in the default PATH at the remote site. You
can fix this in your remote login script. It looks like your shell at
the remote host is bash, so .bashrc or possibly .profile are likely
candidates.
--
Måns Rullgård
Yes the remote host uses bash. I looked at the path for 'bk' on two other
remote hosts with which the 'bk clone' works fine, and found they are both
/usr/bin/bk. For the remote host (zephyr...) that has problem, 'bk' is
located in my user account: ~/bitkeeper/bk. It is not installed in root,
to which I don't have access. The path is specified in my .bash_profile on
that host. I guess that might be the problem, but still don't know how to
fix it.
Måns Rullgård
2004-03-15 23:17:48 UTC
Permalink
Post by Ping Zhu
Post by Måns Rullgård
Post by Ping Zhu
I was trying to clone a repository from a remote host and got the
bash: line 1: bk: command not found
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
It looks like bk isn't in the default PATH at the remote site. You
can fix this in your remote login script. It looks like your shell at
the remote host is bash, so .bashrc or possibly .profile are likely
candidates.
--
Måns Rullgård
Yes the remote host uses bash. I looked at the path for 'bk' on two other
remote hosts with which the 'bk clone' works fine, and found they are both
/usr/bin/bk. For the remote host (zephyr...) that has problem, 'bk' is
located in my user account: ~/bitkeeper/bk. It is not installed in root,
to which I don't have access. The path is specified in my .bash_profile on
that host. I guess that might be the problem, but still don't know how to
fix it.
When using BK you don't get a login shell. Put the necessary PATH
additions in ~/.bashrc as well.
--
Måns Rullgård
***@kth.se
Ping Zhu
2004-03-16 15:42:38 UTC
Permalink
Post by Måns Rullgård
Post by Ping Zhu
Post by Måns Rullgård
Post by Ping Zhu
I was trying to clone a repository from a remote host and got the
bash: line 1: bk: command not found
Anyone has idea what went wrong here? And how should I fix it? The command
"bk clone" works fine with other remote hosts. The shell in local account
is tcsh.
It looks like bk isn't in the default PATH at the remote site. You
can fix this in your remote login script. It looks like your shell at
the remote host is bash, so .bashrc or possibly .profile are likely
candidates.
--
Måns Rullgård
Yes the remote host uses bash. I looked at the path for 'bk' on two other
remote hosts with which the 'bk clone' works fine, and found they are both
/usr/bin/bk. For the remote host (zephyr...) that has problem, 'bk' is
located in my user account: ~/bitkeeper/bk. It is not installed in root,
to which I don't have access. The path is specified in my .bash_profile on
that host. I guess that might be the problem, but still don't know how to
fix it.
When using BK you don't get a login shell. Put the necessary PATH
additions in ~/.bashrc as well.
Måns Rullgård
Thanks, moving PATH to ~/.bashrc fixed the problem.

Loading...