首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Git是否以用户身份安装?

Git是否以用户身份安装?
EN

Stack Overflow用户
提问于 2012-11-24 06:48:54
回答 1查看 504关注 0票数 2

我正在尝试以用户身份在netbsd系统(4.0.1_PATCH)上安装git,方法是使用github的源码tarball编译git 1.8.0。我在此系统上有用户权限,但没有root权限。我正在编译我的主目录中的源代码。

我现在收到以下一组错误消息:

代码语言:javascript
复制
gmake                                                                                                                                                                    ~/src/git-git-fe1bdde
GIT_VERSION = 1.8.0
    * new build flags
    CC credential-store.o
    * new link flags
    CC abspath.o
    CC advice.o
    CC alias.o
    CC alloc.o
    CC archive.o
    CC archive-tar.o
In file included from run-command.h:5,
                 from archive-tar.c:8:
/usr/pkg/include/pthread.h:285: error: conflicting types for 'pthread_t'
/usr/include/pthread_types.h:71: 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:72: 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:77: 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:74: 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:73: 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:76: 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:75: 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:80: 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:79: 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
gmake: *** [archive-tar.o] Error 1

有什么想法是错误的,以及如何纠正这个错误吗?

对于在netbsd ( 4.0.1版本,我认为它已经相当旧)上安装git用户有什么建议吗?

EN

回答 1

Stack Overflow用户

发布于 2013-09-18 05:40:17

不要自己编译它!

相反,使用NetBSD®pkgsrc®作为n根n-ō,这不仅是可能的,而且得到了很好的支持:It’s even a FAQ

这将为您省去很多麻烦,因为它将负责自动安装依赖项和修补软件,以便在BSD上工作。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13536570

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档