我正在尝试使用HgLogin设置mercurial我有以下问题系统。我完成了所需的一切,但当我尝试登录我的存储库时,我收到了这个答案:
remote: /home/mercurial/hg-login: line 1: use: command not found
: command not foundrial/hg-login: line 1:
: command not foundrial/hg-login: line 2:
remote: /home/mercurial/hg-login: line 3: {PATH}: command not found
: command not foundrial/hg-login: line 3:
: command not foundrial/hg-login: line 4:
remote: /home/mercurial/hg-login: line 5: my: command not found
: command not foundrial/hg-login: line 5:
remote: /home/mercurial/hg-login: line 6: my: command not found
: command not foundrial/hg-login: line 6:
: command not foundrial/hg-login: line 7:
: command not foundrial/hg-login: line 11:
remote: /home/mercurial/hg-login: line 12: my: command not found
: command not foundrial/hg-login: line 12:
remote: /home/mercurial/hg-login: line 13: my: command not found
: command not foundrial/hg-login: line 13:
: command not foundrial/hg-login: line 14:
: command not foundrial/hg-login: line 18:
remote: /home/mercurial/hg-login: line 19: my: command not found
: command not foundrial/hg-login: line 19:
remote: /home/mercurial/hg-login: line 20: my: command not found
remote: /home/mercurial/hg-login: line 20: : command not found
: command not foundrial/hg-login: line 20:
: command not foundrial/hg-login: line 21:
: command not foundrial/hg-login: line 25:
remote: /home/mercurial/hg-login: line 26: defined: command not found
remote: /home/mercurial/hg-login: line 27: or: command not found
: command not foundrial/hg-login: line 27:
remote: /home/mercurial/hg-login: line 28: syntax error near unexpected token `$user'
'emote: /home/mercurial/hg-login: line 28: `my ($user) = $user_in =~ /^($r_user)$/
似乎Perl不会解析脚本。 您可以在https://www.mercurial-scm.org/wiki/HgLogin
上找到hglogin脚本答案 0 :(得分:1)
您可能需要在perl脚本的顶部:
#!/bin/perl
或系统perl的路径。看起来您的系统正在运行该脚本,就像它是shell脚本而不是perl脚本一样。