2011-12-20 12 views
2

ユーザとしてシェルアカウントを持っていてroot権限を持っていないUNIXサーバのホームディレクトリにgitをインストールしようとしています。私は、これらのソースにの手順に従っています:Gitをホームディレクトリにユーザとしてインストール:エラー?

How to install Git on a shared host

git/scm book

と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 
+0

使用しているコマンドラインは何ですか?それは 'make && make install'ですか?私が尋ねる理由は、私が "〜"とあなたの完全なパスをそれらのエラーメッセージで見ることに驚いていることです。 –

+0

私は少し簡潔にするために、メッセージを少し編集しました。実際には完全なパス、pwdスタイルを提供します。 – haziz

答えて

1

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

+0

実際に私が参照しているサーバは実際にはnetbsdを実行しています。助言がありますか? – haziz

+1

(1) 'gmake'を試してください。 (2)それでもうまくいかない場合は、[GNU make](https://www.gnu.org/s/make/)を入手して最初にビルドしてください。 –

関連する問題