【发布时间】:2011-12-20 01:41:09
【问题描述】:
我正在尝试在我有一个 shell 帐户作为用户但没有 root 权限的 unix 服务器上的我的主目录中安装 git。我正在按照这些来源中的说明进行操作:
How to install Git on a shared host
以及 git 源目录中的 INSTALL 文件说明,但不断收到无数重复此错误消息的列表:
make: "~/haziz/opt/bin/src/git/Makefile" line 1510: Need an operator
make: "~/haziz/opt/bin/src/git/Makefile" line 1511: warning: duplicate script for target "ifdef" ignored
make: "~/haziz/opt/bin/src/git/Makefile" line 278: warning: using previous script for "ifdef" defined here
make: "~/haziz/opt/bin/src/git/Makefile" line 1512: warning: duplicate script for target "ifdef" ignored
make: "~/haziz/opt/bin/src/git/Makefile" line 278: warning: using previous script for "ifdef" defined here
make: "~/haziz/opt/bin/src/git/Makefile" line 1513: Need an operator
make: "~/haziz/opt/bin/src/git/Makefile" line 1514: Need an operator
只是为了澄清这是在我的主目录中,而不是在我没有 root 权限的系统上。
有什么想法或建议吗?我做错了什么?
编辑:尝试按照 Greg Hewgill 的建议将命令作为 gmake 运行。
现在错误消息是:
/usr/pkg/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/pthread_types.h:65: error: previous declaration of 'pthread_t' was here
/usr/pkg/include/pthread.h:286: error: conflicting types for 'pthread_attr_t'
/usr/include/pthread_types.h:66: error: previous declaration of 'pthread_attr_t' was here
/usr/pkg/include/pthread.h:288: error: conflicting types for 'pthread_once_t'
/usr/include/pthread_types.h:71: error: previous declaration of 'pthread_once_t' was here
/usr/pkg/include/pthread.h:289: error: conflicting types for 'pthread_mutexattr_t'
/usr/include/pthread_types.h:68: error: previous declaration of 'pthread_mutexattr_t' was here
/usr/pkg/include/pthread.h:290: error: conflicting types for 'pthread_mutex_t'
/usr/include/pthread_types.h:67: error: previous declaration of 'pthread_mutex_t' was here
/usr/pkg/include/pthread.h:291: error: conflicting types for 'pthread_condattr_t'
/usr/include/pthread_types.h:70: error: previous declaration of 'pthread_condattr_t' was here
/usr/pkg/include/pthread.h:292: error: conflicting types for 'pthread_cond_t'
/usr/include/pthread_types.h:69: error: previous declaration of 'pthread_cond_t' was here
/usr/pkg/include/pthread.h:293: error: conflicting types for 'pthread_rwlockattr_t'
/usr/include/pthread_types.h:74: error: previous declaration of 'pthread_rwlockattr_t' was here
/usr/pkg/include/pthread.h:294: error: conflicting types for 'pthread_rwlock_t'
/usr/include/pthread_types.h:73: error: previous declaration of 'pthread_rwlock_t' was here
/usr/pkg/include/pthread.h:357: error: conflicting types for 'pthread_kill'
/usr/include/signal.h:69: error: previous declaration of 'pthread_kill' was here
【问题讨论】:
-
您使用的命令行到底是什么?是
make && make install吗?我问的原因是我很惊讶在这些错误消息中看到“~”和你的完整路径。 -
我确实对消息进行了一些编辑,部分原因是为了简洁。它实际上给出了完整的路径,pwd 样式。
标签: git unix compilation makefile bsd