Error when installing API client with Composer

Hi Experts,

When I try installing Google API Client as mentioned under step 2 of https://developers.google.com/google-apps/calendar/quickstart/php with the following command from the command prompt

php composer.phar require google/apiclient:^2.0

Open in new window


...I get the following errors

---
- https://github.com/google/google-api-php-client-services.git
fatal: destination path 'C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-
project.com\utilities\google_calendar\vendor\google\apiclient-services' alr
eady exists and is not an empty directory.

- git@github.com:google/google-api-php-client-services.git
fatal: destination path 'C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-
project.com\utilities\google_calendar\vendor\google\apiclient-services' alr
eady exists and is not an empty directory.
---

Open in new window


because it is giving me ...already exists and is not an empty directory. I completely delete 'C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor directory and run the code above again from c:\...\google_calendar. Same error even if I deleted it.

As well I am running PHP under IIS with Plesk.

If I am ignoring the above error and still use my application I get

" <br />
<b>Warning</b>:  require_once(C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar/vendor/autoload.php): failed to open stream: No such file or directory in <b>C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\index.php</b> on line <b>80</b><br />
<br />
<b>Fatal error</b>:  require_once(): Failed opening required 'C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar/vendor/autoload.php' (include_path='.;.\includes;.\pear.;C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\PEAR') in <b>C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\index.php</b> on line <b>80</b><br />
"

Open in new window


Any help will be appreciated.
APD TorontoSoftware DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dan McFaddenSystems EngineerCommented:
Have you tried the alternate installation method mentioned in the link above?

Here is the alt method article:  https://developers.google.com/api-client-library/php/start/installation

Dan
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
APD TorontoSoftware DeveloperAuthor Commented:
Using the alternate method worked just fine on my local development server, but when I repeated the exact same steps on the live server I get

Fatal error: Uncaught GuzzleHttp\Ring\Exception\RingException: cURL error 77: error setting certificate verify locations: CAfile: C:\Program Files (x86)\Parallels\Plesk\Additional\PHPSettings\cacert.pem CApath: none in C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php:127 Stack trace: #0 C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor\guzzlehttp\ringphp\src\Client\CurlFactory.php(91): GuzzleHttp\Ring\Client\CurlFactory::createErrorResponse(Array, Array, Array) #1 C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php(96): GuzzleHttp\Ring\Client\CurlFactory::createResponse(Array, Array, Array, Array, Resource id #12) #2 C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor\guzzlehttp\ringphp\src\Client\CurlHandler.php(68): GuzzleHttp\Ring\Client\CurlHandler->_invokeA in C:\Inetpub\vhosts\aces-project.com\crm-cor.aces-project.com\utilities\google_calendar\vendor\guzzlehttp\guzzle\src\Exception\RequestException.php on line 51

Open in new window

0
APD TorontoSoftware DeveloperAuthor Commented:
By the way, on my local server I am not using any type of SSL.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.