Mercurial 和第三方 hg-login 脚本的问题
我正在尝试使用 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 脚本
I'm trying to setup mercurial using the HgLogin I have the following problem system. I done everything that is needed but when I tried to login to my repository I receive this answer:
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)$/
It seems Perl won't parse the script.
You can find the hglogin script on https://www.mercurial-scm.org/wiki/HgLogin
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能需要在 Perl 脚本的顶部添加此内容:
或系统 Perl 的路径。看起来您的系统正在运行该脚本,就像它是 shell 脚本而不是 perl 脚本一样。
You probably need this at the top of your perl script:
or the path to your system perl. It looks like your system is running that script as if it were a shell script not a perl script.