2016-01-22 56 views
1

我試圖在Win 8.1上安裝laravel/homesteadvagrant laravel/box不連接/解壓

我安裝了Virtualbox 5.0.14。 我也安裝了Vagrant 1.8.1。

我嘗試使用Laravel docs how-to,我還閱讀了幾十個教程和疑難解答,包括YouTube視頻教程和Stack Overflow帖子。

沒有運氣。

這裏是我的嘗試:

  1. 從Laravel家園現場指揮部:
 
$ vagrant box add laravel/homestead 

//I got this error 
PS U:\laravel> vagrant box add laravel/homestead 
The box 'laravel/homestead' could not be found or 
could not be accessed in the remote catalog. If this is a private 
box on HashiCorp's Atlas, please verify you're logged in via 
`vagrant login`. Also, please double-check the name. The expanded 
URL and error message are shown below: 
URL: ["https://atlas.hashicorp.com/laravel/homestead"] 
  • 我想:也許這與我的網絡omething,防火牆等等,所以我想我的本地驅動器U ON用另一種方法,並下載最新的virtualbox.box:/ laravel
  •  
    curl -O -L https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.0/providers/virtualbox.box 
    

    然後我試圖從本地文件家園運行:

     
    vagrant box add laravel/homestead ./virtualbox.box 
    
    //I also tried: vagrant box add laravel/homestead U:/laravel/virtualbox.box 
    
    //I got this error: 
    ==> box: Box file was not detected as metadata. Adding it directly... 
    ==> box: Adding box 'laravel/homestead' (v0) for provider: 
        box: Unpacking necessary files from: file://U:/laravel/virtualbox.box 
        box: 
    An error occurred while downloading the remote file. The error 
    message, if any, is reproduced below. Please fix this error and try 
    again. 
    
  • 然後我試圖這樣:
  •  
    PS U:\laravel> vagrant init laravel/homestead 
    A `Vagrantfile` has been placed in this directory. You are now 
    ready to `vagrant up` your first virtual environment! Please read 
    the comments in the Vagrantfile as well as documentation on 
    `vagrantup.com` for more information on using Vagrant. 
    PS U:\laravel> vagrant up 
    Bringing machine 'default' up with 'virtualbox' provider... 
    ==> default: Box 'laravel/homestead' could not be found. Attempting to find and install... 
        default: Box Provider: virtualbox 
        default: Box Version: >= 0 
    The box 'laravel/homestead' could not be found or 
    could not be accessed in the remote catalog. If this is a private 
    box on HashiCorp's Atlas, please verify you're logged in via 
    `vagrant login`. Also, please double-check the name. The expanded 
    URL and error message are shown below: 
    
    URL: ["https://atlas.hashicorp.com/laravel/homestead"] 
    
  • 當上面沒有工作,我試圖做同樣的,但從本地下載的virtualbox.box:
  •  
    PS U:\laravel> vagrant init laravel/homestead ./virtualbox.box 
    A `Vagrantfile` has been placed in this directory. You are now 
    ready to `vagrant up` your first virtual environment! Please read 
    the comments in the Vagrantfile as well as documentation on 
    `vagrantup.com` for more information on using Vagrant. 
    PS U:\laravel> vagrant up 
    Bringing machine 'default' up with 'virtualbox' provider... 
    ==> default: Box 'laravel/homestead' could not be found. Attempting to find and install... 
        default: Box Provider: virtualbox 
        default: Box Version: >= 0 
    ==> default: Box file was not detected as metadata. Adding it directly... 
    ==> default: Adding box 'laravel/homestead' (v0) for provider: virtualbox 
        default: Unpacking necessary files from: file://U:/laravel/virtualbox.box 
        default: 
    An error occurred while downloading the remote file. The error 
    message, if any, is reproduced below. Please fix this error and try 
    again. 
    

    我也試過(只是爲了看看是否有任何安裝在所有):

     
    $ vagrant init hashicorp/precise64 
    $ vagrant up 
    

    ...沒有運氣。

    我確保自己在正確的目錄下工作 - 起初我嘗試了C:驅動器(其中OS-win81所在的位置),但我也試過完全不同的驅動器U: 再次...沒有運氣。

    我試過命令提示符,PowerShell,GIT Bash ......只是確保這不是問題。 我也嘗試使用它們作爲管理員。再次,沒有太多的運氣。

    哦,我試着用source forge替換原來的bsdtar.exe。

    我甚至使用WinRAR(下載到元素文件)解壓virtualbox.box並使用ZIP壓縮它,然後嘗試從本地壓縮文件中添加框。

    再次......沒有運氣。

    任何人都遇到類似的問題,並設法解決這個難題?

    +0

    嗯,我認爲我堅持使用PHP 7的XAMMP(尤其是我比Nginx更喜歡Apache)。我花了一個小時來設置和配置XAMMP(包括自創的SSL證書和虛擬主機)以及設置和配置Laravel 5/composer/node等。很高興知道你爲什麼在Win8.1上失敗,但那將需要等待另一天。 – Jeffz

    回答

    0

    好吧Jeffz,有很多原因,你沒有成功的安裝。我可能無法完成所有這些工作,但我會指導您完成有助於實現宅基地運行的步驟。按照脫機盒以下步驟:

    • 下載阿特拉斯箱後,你會得到HC-下載文件,重命名,如果要virtualbox.box
    • 在CMD以下命令來安裝盒:

    流浪漢框中添加laravel /宅基地文件:///Path/to/the/virtualbox.box

    來源:https://abbasharoon.me/laravel-homestead-windows-extremely-easy/

    +0

    坦白地告訴你,我試過每一個教程,故障排除指南......任何事情和我在網上找到的所有東西......都無濟於事。我也會嘗試你的建議......就在本週不會 - 砂輪旋轉速度過快。謝謝你。 – Jeffz

    +0

    我會很樂意幫助每一步:) –