I am trying to install zendframework on my windows 7. I have installed wamp and have put ZendFramework-2.2.1_2 folder into wamp/bin/php/php5../ and added path to library in include_path variable of php. now i am trying to use composer to install the project but it is saying that
c:\wamp\www\my_app>cd ZendSkeletonApplication
c:\wamp\www\my_app\ZendSkeletonApplication>php composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing zendframework/zendframework (2.2.1)
Downloading: 100%
[UnexpectedValueException]
'C:\wamp\www\my_app\ZendSkeletonApplication\vendor/zendframework/zendframew
ork/bf2ea22d074d758da4b97aae94293c3a.1' is not a zip archive.
The corrupted cache files are the problem.
The solution is to delete the cache files and execute the command again. The cache files are in the composer home directory:
on windows:
C:\Users[user]>\AppData\Roaming\Composer
or
C:\Users[user]\AppData\Local\Composer (I found composer cache files here)
on *nix:
/home/[user]/.composer
on OSX:
/Users/[user]/.composer
Related
so I'm downloading laravel on windows through composer and it is giving me the following error
" Failed to download symfony/process from dist: The zip extension and unzip/7z commands are both missing, skipping."
I googled a bit and most of the answers were to use the command
" sudo apt-get install zip unzip php-zip ".
But I'm using windows and I can't find any answer relating to the issue.
Had the same problem too (Windows). Fixed it by;
Open the php.ini file and uncomment ;extension=zip to extension=zip
https://www.php.net/manual/en/zip.installation.php#zip.installation.new.windows:
As of PHP 8.2.0, php_zip.dll DLL must be enabled in php.ini. Previously, this extension was built-in.
the composer require yajra/laravel-oci8:^8 command is giving me the following error:
C:\Users\yƶ\PhpstormProjects\BRP>composer require yajra/laravel-oci8:^8
./composer.json has been updated
Running composer update yajra/laravel-oci8
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires yajra/laravel-oci8 8 -> satisfiable by yajra/laravel-oci8[v8.0.0].
- yajra/laravel-oci8 v8.0.0 requires ext-oci8 >=2.0.0 -> it is missing from your system. Install or enable PHP's oci8 extension.
To enable extensions, verify that they are enabled in your .ini files:
- C:\PHP74\php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Windows 10
PHP 7.4.6
Laravel 8.26.1
PHP Storm 2020.2.3
I am not using XAMMP or WAMP
I hope someone can help me out. Thank you in advance.
You are missing the OCI8 PHP extension, So follow these steps:
From http://pecl.php.net/package/oci8 download exact version, for you must be php_oci8-2.2.0, unzip it and copy to PHP ext folder, for you its in "C:\php74\ext"
Un-Comment "extension=php_oci8_11g.dll" in php.ini and restart Apache or any other web server that you are using
Check php_info(), oci8 should be enabled.
Run composer require yajra/laravel-oci8:^8 command again.
download extensions with suitable php version in https://windows.php.net/downloads/pecl/releases/oci8/
extract and copy all the .dll files to /xampp/php/ext
download instant client oracle with suitable OS and PHP version in http://www.oracle.com/technetwork/topics/winsoft-085727.html
extract and copy all the dll files to /xampp/apache/bin/ and copy it to /xampp/php/
install https://github.com/yajra/laravel-oci8
I am try to install barcode package in my cpanel laravel project.But every time it gets killed.
command:
[......#host public_html]$ composer require milon/barcode
after few moment:
Using version ^7.0 for milon/barcode
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
The "http://repo.packagist.org/p/symfony/polyfill-iconv%24535e139d88ce6708c9d8bf795da669c3fe46467f4bc7dc900e2e65a8d77b56ae.json" file could not be downloaded: failed to open stream: Network is unreachable
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Killed
it also happening for all the packages I want to install like:pdf or others.Updated my composer.still not working.
It happens for a lack of memory of your server. You can install the package in your local machine then replace your server composer.lock file with the local's composer.lock file Then go to the terminal and run composer update.
The "http://repo.packagist.org/p/guzzlehttp/psr7%24a1ea6550f2764cbd6a29394f3c79fe41efb9cfc4bc22558b00a4a0e5573d63c1.json" file could not be downloaded: failed to open stream: HTTP request failed!
http://repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
Is this on composer install within a project or up creation with something like laravel new laravel.local?
If it's in a current project, try deleting the composer.lock file and deleting the /vendor folder, then running composer clearcache, then composer dump-autoload, and then finally reinstall all the vendor packages with composer install
I'm running Ubuntu 18.04.4 LTS (Bionic Beaver).
I have installed Composer, Laravel, among other things on this server. I'm trying to run:
composer global require laravel/valet
It attempts to run, and outputs:
Changed current directory to /home/myUser/.config/composer Using version
^2.9 for laravel/valet ./composer.json has been updated Loading
composer repositories with package information Updating dependencies
(including require-dev) Nothing to install or update Generating
optimized autoload files
In ClassMapGenerator.php line 69:
Could not scan for classes inside "database/seeds" which does not
appear to be a file nor a folder
Where is/should this folder be, and why wouldn't it already be there anyway?
Laravel Valet is a MacOS utility, there are linux ports, such as this one, but it won't work on Ubuntu as it uses Homebrew under the hood, a package manager for MacOS.