Vagrant初心者のためのエラー解決法

このQ&Aのポイント
  • Vagrant初心者がvagrant upコマンドを実行すると、エラーメッセージが表示されます。
  • エラーメッセージには、'rsync'がPATH上に見つからないという内容があります。
  • Windows環境では、cygwinをインストールしてSSHとrsyncを追加する必要があります。
回答を見る
  • ベストアンサー

vagrant エラー 初心者

超初心者です。プロ向けのカテゴリからで恐縮ですが、ご教示ください。 vagrant upと打つと下のエラーが出ます。 Bringing machine "default" up with "virtualbox" provider.... ==> default: Checking if box 'centos/7' is up to date.... "rsync" could not be found on your PATH. Make sure that rsync is properly installed on your system and available o the PATH. windowsのためcygwinをインストールしたのですが、その際SSHとrsyncをインストールし忘れたので、追加しましたが変わりません。 よろしくお願いします。

質問者が選んだベストアンサー

  • ベストアンサー
回答No.1

環境変数として設定されている「PATH」からだとrsyncが見つけらていない状態ですね。 rsyncがインストールされたディレクトリを確認して、環境変数に追加してあげればよいんじゃないでしょうか。

参考URL:
http://qiita.com/harry0000/items/15da25edb62cfbcc01fc
natyo4235
質問者

お礼

お礼を忘れていました。すみませんm(__)mありがとうございました。

関連するQ&A

  • vagrantとVirtualBox

    vagrantとVirtualBoxはどちらもインストール済みで、いざ起動しようとvagrant upと打ち込むと恐らく失敗したのであろう英文が出てきてしまいました。僕はいまノートパソコンでやっているのですが、それに原因があるのでしょうか。vagrantfileの訂正点は直したつもりです。confing.vm.box_versionは本に書いてあった通りにすると1のようになってしまい、もともとの状態で行うと2のようになってしまいます。成功しているのかも分かりません。 1 vagrant up No usable default provider could be found for your system. Vagrant relies on interactions with 3rd party systems, known as "providers", to provide Vagrant with resources to run development environments. Examples are VirtualBox, VMware, Hyper-V. The easiest solution to this message is to install VirtualBox, which is available for free on all major platforms. If you believe you already have a provider available, make sure itis properly installed and configured. You can see more details about why a particular provider isn't working by forcing usage with `vagrant up --provider=PROVIDER`, which should give you a more specific error message for that particular provider. 2 vagrant up C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/requirement.rb:101:in `parse': Illformed requirement ["ox-version"] (Gem::Requirement::BadRequirementError) from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/requirement.rb:131:in `block in initialize' from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/requirement.rb:131:in `map!' from C:/HashiCorp/Vagrant/embedded/mingw64/lib/ruby/2.4.0/rubygems/requirement.rb:131:in `initialize' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/box_collection.rb:277:in `new' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/box_collection.rb:277:in `block in find' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/box_collection.rb:276:in `map' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/box_collection.rb:276:in `find' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/vagrantfile.rb:201:in `block in machine_config' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/vagrantfile.rb:237:in `machine_config' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:958:in `block in find_configured_plugins' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:956:in `each' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:956:in `find_configured_plugins' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:983:in `process_configured_plugins' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/lib/vagrant/environment.rb:178:in `initialize' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/bin/vagrant:145:in `new' from C:/HashiCorp/Vagrant/embedded/gems/2.2.6/gems/vagrant-2.2.6/bin/vagrant:145:in `<main>'

  • vagrant up がタイムアウトしてできない

    Windows 10 と VirtualBox 5.0.16、Vagrant 1.8.1 の組み合わせで、「 bento/centos-6.7-i386」の box を使用して vagrant up しようとしていますが、いつまでたっても ==> default: Waiting for machine to boot. This may take a few minutes... default: SSH address: 127.0.0.1:2222 default: SSH username: vagrant default: SSH auth method: private key のまま進みません。 しばらく経つと次のエラーメッセージが表示されます。 Timed out while waiting for the machine to boot. This means that Vagrant was unable to communicate with the guest machine within the configured ("config.vm.boot_timeout" value) time period. vb.gui = true にして確認すると起動が完了してログイン画面まで進んでいます。 config.vm.boot_timeout の数字を増やしてみても変わりません。 Vagrantfile はほぼ初期状態です。 BIOS画面で「Intel Virtualization Technology」の項目はなかったのでおそらく対応していません。そのためゲストOSには 32-bit 版のものを選択しています。 他に何の問題が考えられますか?

  • vagrant ssh でトンネリング

    初めて質問させてもらいます。 開発環境をクラウド化する前提で試しにAWSのEC2をvagrantから起動するように設定中です。 ウチの会社は社外に対して直接SSH接続することを許可しておらず、踏み台サーバ(192.168.100.100)を経由してSSHをする必要があります。 現在固定のEC2インスタンスに対してのSSH接続は.ssh/configには以下のように記述し、[ssh ec2.dev.test]としたときに自動でトンネリングするようにしています。 ``` HOST gateway hostname 192.168.100.100 User test HOST ec2.dev.test hostname ec2-***-***-***-***.ap-northeast-1.compute.amazonaws.com User ec2-user ProxyCommand ssh gateway -W %h:%p IdentityFile '~~~~~~~~~~~' ``` vagrant ssh をしたときに自動でssh/configと同じ動きをしてくれるようにするか、オプションでトンネリングできるようにしたいです。 EC2インスタンスは[vagrant up]したときに生成されるため、IP固定ではないため動的にしたいです。 ググってみても「vagrant内にあるMySQLにアクセスする」系統ばかりが出て有力な情報にたどりつけませんでした。 アドバイスをいただけると助かります。 よろしくお願いいたします。 PS.Vagrantfileには以下のように記述してあります。 ``` VAGRANTFILE_API_VERSION = '2' Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = 'dummy' config.vm.provider :aws do |aws, override| aws.access_key_id = '~~~~~~~' aws.secret_access_key = '~~~~~~~' aws.keypair_name = '~~~~~~~' aws.ami = '~~~~~~~' aws.instance_type = 't2.micro' aws.security_groups = [ 'default' ] aws.region = 'ap-northeast-1' override.ssh.username = 'ec2-user' override.ssh.private_key_path = '~~~~~~~' end end ```

  • postgresqlのインストール

    php、POSTGRESQLを使ってプログラムを作成して遊んでいるものです。今まである会社から環境をお借りしていたのですが今回自宅で環境を作ってみようと思っています。Apache+phpは動作しています。ここに POSTGRESQLを導入しようと思っています。 OSがWINDOWSのためcygwinやipcデーモンをどうにかこうにか乗り越えてやっとPOSTGRESQLのインストールまでやってきましたがついに止まってしまいました。下記のエラーが出ているのですがどうすれば次に進めるのやら???分かる方よろしくお願い致します。 CYGWINに $ ./configure --enable-multibyte=EUC_JP --enable-syslog を入力したところ checking build system type...i686-pc-cygwin checking host system type...i686-pc-cygwin checking whichi template to use...win checking whether to build with 64-bit integer date/time support...no checking whether to build with recode support...no checking whether NSL is wanted...no checking for default port number...5432 checking for default soft limit on number of connections...32 checking for gcc...no checking for cc...no configure: error: no acceptable C compiler found in $PATH このようなエラーが出力されます。 なにうえ初心者な者でよろしくお願い致します。

  • rsyncのインストール(エラー発生)

    solaris9のマシンでデータの同期を行いたい為、rsyncを導入しようと思いました。 http://ash.jp/freebsd/rsync.htm などのサイトを参考にインストールを実行しようとしたところ、 ------------------------------------------------------------ # ./configure configure: Configuring rsync 2.6.8 checking build system type... sparc-sun-solaris2.8 checking host system type... sparc-sun-solaris2.8 checking target system type... sparc-sun-solaris2.8 checking for gcc... no checking for cc... no checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. # ------------------------------------------------------------ のようにエラーが発生してしまいました Cコンパイラが見つからない(?) のようなことだと思われるのですが 解決方法として如何すればよいのでしょうか? よろしくお願い致します。   

  • PostgreSQLのインストール

    OSはwindows2000です。  windowsからPostgreSQLをインストールしたく本を見ながら 作業をしてみました。  まず、CygwinをインストールしてUnixライクな環境にして、 make-3.79,gcc-2.95.2,cygipc-1.11-1-src, PostgreSQL-7.1.3をダウンロードして、 cygwin/usr/src/で解凍させて Cygwinを起動させて、 cd /usr/src/postgres-7.1.3 と入力して次に ./configure --enable-multibyte=EUC_JP と入力したら loading cache ./config.cache checking host system type... i686-pc-cygwin checking which template to use... win checking whether to build with locale support... no checking whether to build with recode support... no checking whether to build with multibyte character support... yes, default EUC_J P checking whether to build with Unicode conversion support... no checking for default port number... 5432 checking for default soft limit on number of connections... 32 checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes using CFLAGS=-O2 checking whether the C compiler (gcc -O2 ) works... no configure: error: installation or configuration problem: C compiler cannot creat e executables. と出てしまうのですが原因がわかりません。 何がいけないんでしょうか?  

  • make でエラー

    勉強中の身です。 環境 fedora 2 postgresqlをインストールして (postgresql-8.2.1) make コンパイルがうまくいきません [postgres@localhost postgresql-8.2.1]$ ./configure checking build system type... i686-pc-linux-gnuoldld checking host system type... i686-pc-linux-gnuoldld checking which template to use... linux checking whether to build with 64-bit integer date/time support... no checking whether NLS is wanted... no checking for default port number... 5432 checking for gcc... no checking for cc... no configure: error: no acceptable C compiler found in $PATH See `config.log' for more details. [postgres@localhost postgresql-8.2.1]$ make You need to run the 'configure' program first. See the file 'INSTALL' for installation instructions. make: *** [all] エラー 1 $ make とすると上記のようにエラーがでます。 ./configure -オプション が必要なのでしょうか? よろしくおねがいします。

  • cygwinインストールでgccが利用できない

    perlとgccを使いたいと思いcygwinをデフォルト設定 のままインストールしてセットアップしました。 しかし、perlは使えるもののgccが使えません。 デスクトップ上にできたアイコンからcygwinを 起動しgccと打つと、BASH: gcc: command not found というエラーメッセージが出ます。 メッセージからしてパスが通っていないのかと思いましたが、 autoexec.batを調べてもパスは通っているようです。 インストール場所は、C:\cygwinというフォルダを作り、 ダウンロードしてきたものをその中に展開しました。 既存のパスに新たに;C:\cygwin\bin(cygwin1.dllのあるフォルダ) を加えて保存して再起動しました。 OSはWindows Meです。ご助言宜しくお願いします。

  • インストールができない!

    cygwin上で ファイルを解凍して インストールを実行するときに ./configure とすると loading cache ./config.cache checking for gcc... no checking for cc... no configure: error: no acceptable cc found in $PATH というエラーがでます。 これは何が原因でどう対処すればいいでしょうか?教えてください。

  • Internet Explorer7

    Internet Explorer7(IE7)をインストールしてから、トップページが、  Welcome Back    Are you ready to choose your settings? a) Required settings Please choose your default search provider. Internet Explorer allows you to easily find information on the Web using any search provider.、、、、、、、、、、、 このような英文が、出てきます。何が言いたいのかよくわからずそのままにしています。このページを出さずにトップページをbiglobeにしたいのですが、わかるかたいますか?

専門家に質問してみよう