2

ユーザーとしてシェル アカウントを持っているが root 権限を持っていない UNIX サーバーのホーム ディレクトリに git をインストールしようとしています。これらのソースの指示に従っています。

共有ホストに Git をインストールする方法

git/scm ブック

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

明確にするために、これはルート権限を持っていないシステムではなく、ホームディレクトリ内にあります。

アイデアや提案はありますか?私は何を間違っていますか?

編集: 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
4

1 に答える 1

1

通常、このタイプのエラーは、間違ったを使用することによって発生しますmake。おそらくBSDスタイルを使用していますがmake、GitにはGNUスタイルが必要makeです。GNUスタイルのmakeはgmake、システムにすでにインストールされている場合があります。そうでない場合は、そのうちの1つを見つけてビルドする必要があります。

于 2011-12-20T01:51:07.113 に答える