mercredi 21 février 2018

Laravel OCI8 not installing

Summary of problem

I have oci8 installed for php 7.1.19

Running on Laravel Framework 5.6.3

//error i get when trying to install Yajra oci8 github for laravel

Your requirements could not be resolved to an installable set of packages.

Problem 1

  • yajra/laravel-oci8 v5.6.0 requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • yajra/laravel-oci8 5.6.x-dev requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • yajra/laravel-oci8 5.6.x-dev requires ext-oci8 >=2.0.0 -> the requested PHP extension oci8 is missing from your system.

  • Installation request for yajra/laravel-oci8 5.6.* -> satisfiable by yajra/laravel-oci8[5.6.x-dev, v5.6.0].

To enable extensions, verify that they are enabled in your .ini files:

  • C:\wamp\bin\php\php7.1.9\php.ini

You can also run php --ini inside terminal to see which files are used by PHP in CLI mode.

Installation failed, reverting ./composer.json to its original content.

//

When i make a test.php in WAMP it works and no errors, but now i want it to work for laravel as well.

Code snippet

$conn = oci_connect('Name', 'Password', 'Localhost');

if ($conn) {
    echo "connect succesfull";
}

\\

The command i run to install it in laravel is:

'composer require yajra/laravel-oci8:"5.6.*"'

I understand that this might not be the right command, soo i tried this:

'composer require yajra/laravel-oci8:"7.1.19"'

But that one doesnt exists

I am kinda stuck now. Anyone can help me?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire