質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

FreeBSD

FreeBSDは、Unix系のオープンソースのOSです。PC/AT互換機用ですが、他のプラットフォームにも移植されています。優れたネットワーク・セキュリティ・ストレージ機能で人気のOSです。ソースコードと共に無償で公開されており、多くの コミュニティによって長年に渡って開発されています。

Q&A

解決済

1回答

534閲覧

FreeBSDでgitのmake時にエラーが出る

aiueoaiueoaiue

総合スコア94

Git

Gitはオープンソースの分散バージョン管理システム(DVCS)です。

FreeBSD

FreeBSDは、Unix系のオープンソースのOSです。PC/AT互換機用ですが、他のプラットフォームにも移植されています。優れたネットワーク・セキュリティ・ストレージ機能で人気のOSです。ソースコードと共に無償で公開されており、多くの コミュニティによって長年に渡って開発されています。

0グッド

0クリップ

投稿2018/03/14 13:15

編集2018/03/14 13:45

#内容
FreeBSD11.1でgitを使うためにportでインストールしたかったのですがエラーが出て止まってしまいました。この原因が分かる方回答お願いします。
#エラー文

===> git-2.16.2 depends on executable: curl - found ===> git-2.16.2 depends on package: p5-Error>=0 - found ===> git-2.16.2 depends on executable: xmlto - not found ===> License GPLv2 accepted by the user ===> xmlto-0.0.28 depends on file: /usr/local/sbin/pkg - found => xmlto-0.0.28.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xmlto. => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/xmlto/xmlto-0.0.28.tar.bz2 fetch: http://distcache.FreeBSD.org/ports-distfiles/xmlto/xmlto-0.0.28.tar.bz2: Connection reset by peer => Attempting to fetch https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2 fetch: https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2: Authentication error => Attempting to fetch http://distcache.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2 fetch: http://distcache.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2: Connection reset by peer => Attempting to fetch http://distcache.us-east.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2 fetch: http://distcache.us-east.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2: Connection reset by peer => Attempting to fetch http://distcache.eu.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2 fetch: http://distcache.eu.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2: Connection reset by peer => Attempting to fetch http://distcache.us-west.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2 fetch: http://distcache.us-west.FreeBSD.org/local-distfiles/mandree/xmlto-0.0.28.tar.bz2: Connection reset by peer => Attempting to fetch http://distcache.FreeBSD.org/ports-distfiles/xmlto/xmlto-0.0.28.tar.bz2 fetch: http://distcache.FreeBSD.org/ports-distfiles/xmlto/xmlto-0.0.28.tar.bz2: Connection reset by peer => Couldn't fetch it - please try to retrieve this => port manually into /usr/ports/distfiles/xmlto and try again. *** Error code 1 Stop. make[3]: stopped in /usr/ports/textproc/xmlto *** Error code 1 Stop. make[2]: stopped in /usr/ports/textproc/xmlto *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/git *** Error code 1 Stop. make: stopped in /usr/ports/devel/git

#試したこと
/usr/ports/textproc/xmltoでportでインストールしようとしたんですけど、make: no target to make.と出て出来ませんでした。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

KoichiSugiyama

2018/03/14 13:32

エラーの内容はエラーメッセージに出力されていますが、どこが判らないのでしょうか?そこを具体的に書いて下さい。
aiueoaiueoaiue

2018/03/14 13:36

このエラーに対して次に何をすればいいかがわからないんです。
guest

回答1

0

ベストアンサー

エラーは

===> git-2.16.2 depends on executable: xmlto - not found

===> License GPLv2 accepted by the user
===> xmlto-0.0.28 depends on file: /usr/local/sbin/pkg - found
=> xmlto-0.0.28.tar.bz2 doesn't seem to exist in /usr/ports/distfiles/xmlto.
(中略)
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/xmlto and try again.

となっており、要は「gitが依存しているxmltoというプログラム(ライブラリ?)がインストールされていない」のでportsのミラーサイトをあちこち確認した結果、どこからもダウンロードできなかったことが書いてあります。

なので手作業でどこからから「xmlto-0.0.28.tar.bz2」というアーカイブファイルを探してきて、手動で/usr/ports/distfiles/配下に置いて、再度make installしてみてね。ということが書かれています。

すでにxmltoがバージョンが上がってしまっていて見つからないのか、メンテナンスが終了したのかまではちょっと調べないと判りません。

ここからは何通りか方法があると思いますが
0. /usr/ports/CHANGESをよく読んで、gitのビルド時の付随情報がないか確認する
0. ネット上のどこかからxmlto-0.0.28.tar.bz2を探し出してきてmake install
0. portsツリーが更新されていることを期待してportsnapなどで更新をかけてから再度make install
0. バージョンが違っているxmltoを探してきて、make installが通るよう調整する
0. portsからのビルドをあきらめてpkgからビルド済みのものをインストールする

あたりになるでしょうか(詳しい方フォローしていただけると助かります)。

投稿2018/03/15 05:51

KoichiSugiyama

総合スコア3041

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問