05 CentOSの設定をしていこう | ローカル開発環境の構築 [MacOS X編] - プログラミングならドットインストール
http://dotinstall.com/lessons/basic_localdev_mac/30705
ドットインストールの#05 CentOSの設定をしていこうでgitをVagrantにダウンロードしようとしたら404エラーになってしまいgitがダウンロードできませんでした。
動画のときのVirtualBoxとVagrantのバージョンが違うためyumでインストールできなかったのか原因がよく分かりませんでした。
もし何か解決方法がありましたら、ご教授お願いします。
##エラーのおきたコマンド:
sudo yum -y install git
##各バージョン:
VirtualBox 5.0.16 amd64 (動画のバージョン 4.3.20)
Vagrant 1.8.1 (動画のバージョン 1.7.1)
OS X 10.8.5
##エラー内容:
[vagrant@localhost ~]$ sudo yum -y install git
読み込んだプラグイン:fastestmirror
インストール処理の設定をしています
Determining fastest mirrors
- base: ftp.riken.jp
- extras: ftp.riken.jp
- updates: ftp.riken.jp
base | 3.7 kB 00:00
base/primary_db | 4.6 MB 00:15
extras | 3.4 kB 00:00
extras/primary_db | 35 kB 00:00
updates | 3.4 kB 00:00
http://ftp.riken.jp/Linux/centos/6.7/updates/x86_64/repodata/d0d1ff401b9697c4b6dda849c830a4d3368fbaea1f83f11d61138ebf113b2e5b-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
他のミラーを試します。
http://mirror.vastspace.net/centos/6.7/updates/x86_64/repodata/d0d1ff401b9697c4b6dda849c830a4d3368fbaea1f83f11d61138ebf113b2e5b-primary.sqlite.bz2: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
他のミラーを試します。
(上記の同じようなエラーのため略します)
エラー: failure: repodata/d0d1ff401b9697c4b6dda849c830a4d3368fbaea1f83f11d61138ebf113b2e5b-primary.sqlite.bz2 from updates: [Errno 256] No more mirrors to try.
[vagrant@localhost ~]$ git --version
-bash: git: コマンドが見つかりません
#(別の方法も試してみました)
yumでgitのインストールが上手くできなかったので、直接gitをダウンロードする方法も試してみたのですが、途中でこちらもエラーになりました。
##参考コマンド:
[vagrant@localhost ~]$ wget http://kernel.org/pub/software/scm/git/git-2.0.0.tar.gz
[vagrant@localhost ~]$ tar xzvf git-2.0.0.tar.gz
[vagrant@localhost ~]$ cd git-2.0.0
[vagrant@localhost ~]$ ./configure
[vagrant@localhost ~]$ sudo make
[vagrant@localhost ~]$ sudo make install
[vagrant@localhost git-2.0.0]$ ./configure で以下のエラーが出ました。
##エラー内容:
[vagrant@localhost ~]$ cd git-2.0.0
[vagrant@localhost git-2.0.0]$ ./configure
configure: Setting lib to 'lib' (the default)
configure: Will try -pthread then -lpthread to enable POSIX Threads.
configure: CHECKS for site configuration
configure: CHECKS for programs
checking for cc... no
checking for gcc... no
configure: error: in /home/vagrant/git-2.0.0': configure: error: no acceptable C compiler found in $PATH See
config.log' for more details
[vagrant@localhost git-2.0.0]$ sudo make install
CC credential-store.o
/bin/sh: cc: コマンドが見つかりません
make: *** [credential-store.o] エラー 127
[vagrant@localhost git-2.0.0]$ git --version
-bash: git: コマンドが見つかりません
パスのエラーのようなのですが、pwdで現在いるフォルダを調べてみると /home/vagrant/ と表示されたのですがMacのどこら辺に作成されているフォルダなのか分かりませんでした。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/03/26 01:35