Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Другие движки / фрейморки > Ошибки при установки Laravel на win 7


Автор: Illusionoff 3.3.2019, 20:34
Устанавливаю по:
1)https://badcode.ru/kak-ustanovit-laravel-homstead-na-windows/
2)https://laravel.com/docs/5.8/homestead

Пробовал так же все пути называть как в 1). При установки виртуальной машины пошли ошибки. Переспросила путь
Код
vm:
* The host path of the shared folder is missing: C:/OSPanel/domains/new-laravel.test

в файле Homestead.yaml исправил на 
Код
folders:
    - map: C:\OSPanel\domains\project1
      to: /home/vagrant/code/project1


Соответственно создал эту директорию.
Файл Homestead.yaml сейчас такой:
Код
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: C:\Users\illus\.ssh\id_rsa.pub

keys:
    - C:\Users\illus\.ssh\id_rsa

folders:
    - map: C:\OSPanel\domains\project1
      to: /home/vagrant/code/project1

sites:
    - map: new-laravel.test
      to: /home/vagrant/code/public

databases:
    - new-laravel

Вот весь листинг git bash:
Код

illus@illusion MINGW64 /
$ vagrant box add laravel/homestead
==> box: Loading metadata for box 'laravel/homestead'
    box: URL: [URL=https://vagrantcloud.com/laravel/homestead]https://vagrantcloud.com/laravel/homestead[/URL]
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.

1) hyperv
2) parallels
3) virtualbox
4) vmware_desktop

Enter your choice: 3
==> box: Adding box 'laravel/homestead' (v7.1.0) for provider: virtualbox
The box you're attempting to add already exists. Remove it before
adding it again or add it with the `--force` flag.

Name: laravel/homestead
Provider: virtualbox
Version: 7.1.0

illus@illusion MINGW64 /
$ cd C:\Users\illus
bash: cd: C:Usersillus: No such file or directory

illus@illusion MINGW64 /
$ cd C:\Users\illus
bash: cd: C:Usersillus: No such file or directory

illus@illusion MINGW64 /
$ cd Users
bash: cd: Users: No such file or directory

illus@illusion MINGW64 /
$ cd c:\
> cd Users
bash: cd: too many arguments

illus@illusion MINGW64 /
$ cd\
>

illus@illusion MINGW64 ~
$ cd c:\Users

illus@illusion MINGW64 /c/Users
$ cd illus

illus@illusion MINGW64 ~
$ cd c:\Users\illus
bash: cd: c:Usersillus: No such file or directory

illus@illusion MINGW64 ~
$ cd /illus
bash: cd: /illus: No such file or directory

illus@illusion MINGW64 ~
$ cd c:\Users\illus
bash: cd: c:Usersillus: No such file or directory

illus@illusion MINGW64 ~
$ cd c:\Users

illus@illusion MINGW64 /c/Users
$ cd c:\Users\illus
bash: cd: c:Usersillus: No such file or directory

illus@illusion MINGW64 /c/Users
$ cd \illus

illus@illusion MINGW64 ~
$ pwd
/c/Users/illus

illus@illusion MINGW64 ~
$ git clone [URL=https://github.com/laravel/homestead.git]https://github.com/laravel/homestead.git[/URL] Homestead
Cloning into 'Homestead'...
remote: Enumerating objects: 3314, done.
remote: Total 3314 (delta 0), reused 0 (delta 0), pack-reused 3314
Receiving objects: 100% (3314/3314), 703.87 KiB | 1.79 MiB/s, done.
Resolving deltas: 100% (2004/2004), done.

illus@illusion MINGW64 ~
$ git checkout v8.1.0
fatal: not a git repository (or any of the parent directories): .git

illus@illusion MINGW64 ~
$ git checkout v8.0.2
fatal: not a git repository (or any of the parent directories): .git

illus@illusion MINGW64 ~
$ git checkout v8.0.1
fatal: not a git repository (or any of the parent directories): .git

illus@illusion MINGW64 ~
$ cd Homestead

illus@illusion MINGW64 ~/Homestead (master)
$ git checkout v8.1.0
Note: checking out 'v8.1.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

  git checkout -b <new-branch-name>

HEAD is now at 7a47985


Весь текст не выводит форум

Код

$ vagrant up
Bringing machine 'homestead-7' up with 'virtualbox' provider...
==> homestead-7: Importing base box 'laravel/homestead'...
Progress: 80%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "\\\\?\\C:\\Users\\illus\\.vagrant.d\\boxes\\laravel-VAGRANTSLASH-homestead\\7.1.0\\virtualbox\\box.ovf", "--vsys", "0", "--vmname", "ubuntu-18.04-amd64_1551608886500_59011", "--vsys", "0", "--unit", "11", "--disk", "C:/Users/illus/VirtualBox VMs/ubuntu-18.04-amd64_1551608886500_59011/ubuntu-18.04-amd64-disk001.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting \\?\C:\Users\illus\.vagrant.d\boxes\laravel-VAGRANTSLASH-homestead\7.1.0\virtualbox\box.ovf...
OK.
0%...10%...20%...30%...40%...50%...60%...70%...80%...
Progress state: E_INVALIDARG
VBoxManage.exe: error: Appliance import failed
VBoxManage.exe: error: Code E_INVALIDARG (0x80070057) - One or more arguments are invalid (extended info not available)
VBoxManage.exe: error: Context: "enum RTEXITCODE __cdecl handleImportAppliance(struct HandlerArg *)" at line 957 of file VBoxManageAppliance.cpp

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)