0

This is the error I get after everything is installed:

These are the steps I did to install.

  1. Downloaded XAMPP
  2. Opened command terminal from root user:

     git clone -b develop git://github.com/laravel/laravel.git L4_site
    
  3. Change directory cd L4_site
  4. Create a composer.json file in the root or install by terminal:

    curl -S getcomposer.org/installer|php -d detect_unicode=off
    

    *See chris-schmitz.com/getting-started-with-laravel-4

  5. In L4_site directory in terminal type: php composer.phar install

    This is the error I got after installing composer:
    Strikers-MacBook-Pro:L4_site striker$ php composer.phar install
    Loading composer repositories with package information
    Installing dependencies (including require-dev)
    Your requirements could not be resolved to an installable set of packages.
    
  6. Then point server, type:

    php -S localhost:8888 -t public/
    

After I did all this I copied the directory to my hosted server (hostgator) and get the below error:

>Warning: require(/home/flemzy/public_html/l/bootstrap/../vendor/autoload.php)     [function.require]: failed to open stream: No such file or directory in /home/flemzy/public_html/l/bootstrap/autoload.php on line 17

>Fatal error: require() [function.require]: Failed opening required '/home/flemzy/public_html/l/bootstrap/../vendor/autoload.php' (include_path='.:/opt/php53/lib/php') in /home/flemzy/public_html/l/bootstrap/autoload.php on line 17

I am so close to getting a working laravel 4 beginning app. The error lies somewhere in the dependencies not being installed properly. I think I need a correct composer.json file in order to get ride of these errors.

Thank you everyone for your help.

2
  • HostGator provides SSH. Have you tried installing directly on the server? stackoverflow.com/questions/18281624/…. Commented Feb 24, 2014 at 19:53
  • I uploaded my directory to my hostgator server. I have shared server hosting. Commented Feb 24, 2014 at 20:00

1 Answer 1

0

There is an error in step 4), you should do:

 curl -S getcomposer.org/installer | php

and then

 php composer.phar install

See https://getcomposer.org/doc/00-intro.md#locally for detailed instructions to install Composer

Sign up to request clarification or add additional context in comments.

4 Comments

I did curl composer first and them php composer.phar install. Step 5 is php composer.phar install
Ok, I see you edited the question, It seems you have an invalid composer.json
where can I get a valid composer.json file
github.com/laravel/laravel/blob/master/composer.json Anyway, avoid using the develop branch in step 1 and -d detect_unicode=off in step 4, and follow the official guide for a fresh install: laravel.com/docs/installation

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.