为什么在“功能不可用”的SSH URL上,“git push”到HP-UX失败?

时间:2013-06-03 17:05:44

标签: git curl hp-ux

比较:Why does "git fetch" fail on HTTPS URLs with "Function is not available" on HP-UX?

环境:从Linux客户端推送到HP-UX服务器

我使用另一个线程作为基线将export LD_PRELOAD=/usr/lib/libpthread.a git push添加到服务器上的.profile,但这不起作用。 没有/usr/lib/hpux32/libpthread.so

error: cannot create thread: Function is not available

很好地推送到Linux服务器,所以我知道它必须是环保的。

2 个答案:

答案 0 :(得分:1)

一种可能的解决方案是:

在HP-UX服务器上编辑/ etc / opt / ssh / sshd_config:

PermitUserEnvironment yes

重新启动sshd。

为HP-UX服务器上的每个git用户创建〜/ .ssh / environment:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/opt/ssh/bin:/usr/local/bin
LD_PRELOAD=/usr/lib/hpux32/libpthread.so

答案 1 :(得分:0)

我知道git客户端在推送时不会提供.profile文件。推送时可能未设置环境变量。

请参阅Trying to set up remote git, pushing initial commit gives "git-receive-pack: not found"