PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, January 30, 2022

[FIXED] Laravel composer absolute path error in VB

 January 30, 2022     composer-php, laravel-4, php, ubuntu-12.04, virtualbox     No comments   

Issue

I run local virtual box development server with ubuntu 12.04. To access files I use virtual box shared folders which are mounted into ubuntu at /media/Sites. This dir I use as DocumentRoot for apache.

When I try to run composer create-project laravel/laravel --prefer-dist I get error:

    [InvalidArgumentException]
$from (/media/Sites/test.dev/laravel/vendor/bin/boris) and $to () must be absolute paths.

I assume problem is because dir /media/Sites is outside of ubuntu in windows 8.1. I also tried to create new laravel project in some linux dir and it worked without any error.

What would be the best fix for this? Thanks in advance


Solution

Be sure you have all of the requirements installed:

$ apt-get install git php5 php5-curl php5-cli php5-mcrypt php5-json

then

$ wget https://github.com/laravel/laravel/archive/master.zip
$ unzip master.zip project
$ cd project
$ composer install --verbose 

to see a stack trace of the error, then post it here for more help.



Answered By - majidarif
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing