Im attempting to install the Mail_Mbox-0.6.3 package as i need to use the classes for accessing email attachments from php.
However when i try to install using the newpackage manager it keeps giving me errors.
php pyrus.phar install pear/Mail_Mbox-0.6.3
Returns the following
Using PEAR installation found at pear2
Downloading pear.php.net/Mail_Mbox
Connected...
PEAR2\Pyrus\Package\Exception: Invalid abstract package pear.php.net/Mail_Mbox
PEAR2\Pyrus\HTTPException: Download of http://pear.php.net/get/Mail_Mbox-0.6.3.phar failed, file does not exist
PEAR2\Pyrus\Package\Exception: Could not download from "http://pear.php.net/get/Mail_Mbox-0.6.3.tgz"
PEAR2\Pyrus\Package\Exception: Unable to save package Mail_Mbox-0.6.3.tgz to downloads directory, pear2/downloads. Do we have permission to write there?
Any ideas?
Works for me:
$ php pyrus.phar install pear/mail_mbox-alpha
Pyrus version 2.0.0a4 SHA-1: 72271D92C3AA1FA96DF9606CD538868544609A52
Using PEAR installation found at /home/christian.weiske/php/phpfarm/inst/php-5.3.3/pear
Downloading pear.php.net/Mail_Mbox
Mime-type: application/octet-stream
Installed pear.php.net/Mail_Mbox-0.6.3
Related
Creating a web project using Xampp and Composer.
Whenever I try to run the Composer command:
C:\> composer create-project laravel/laravel <project name>
It gives me a diagnostic message saying that zip extension and unzip/7s commands are missing. The command does create a project but then it doesn't connect with SQL in XAMPP.
Due to the zip extension and unzip/7s commands missing it doesn't install required packages to make the project run.
I have tried uninstalling and reinstalling Composer but the error persists.
I am using php 8.2
Referring to the comments above, the problem was in the php.ini file. The zip extension was disabled, you need to enable the zip extension in php.ini.
Installed composer in Synology DS916 and running Laravel 7.
when I use composer require Laravel/ui and composer require Laravel/passport to add package, composer have a message say not able to use ZIP command, download from source instead.
From phpinfo() and php -m, it looks zip package is enabled and running.
Does anybody can share some experience how to trace the problem ?
admin#ASCS:/volume1/web$ composer create-project --prefer-dist laravel/laravel new_project
Creating a "laravel/laravel" project at "./new_project"
Installing laravel/laravel (v8.0.3)
Failed to download laravel/laravel from dist: The zip extension and unzip command are both missing, skipping.
Your command-line PHP is using multiple ini files. Run `php --ini` to show them.
Now trying to download from source
- Installing laravel/laravel (v8.0.3): Cloning a6ca577839
---- omitted -----
admin#ASCS:/volume1/web$ php --ini
Configuration File (php.ini) Path: /usr/local/etc/php74/cli
Loaded Configuration File: /usr/local/etc/php74/cli/php.ini
Scan for additional .ini files in: /usr/local/etc/php74/cli/conf.d
Additional .ini files parsed: /usr/local/etc/php74/cli/conf.d/extension.ini,
/usr/local/etc/php74/cli/conf.d/timezone.ini
I try : which unzip => no result
I finally installed unzip to the Synology NAS by first install Easy Bootstrap installer, then use ipkg command install the unzip package.
I found out by reading on another forum that because zip had been removed from the official plugin set replaced by zlib, Synology had not included it with its distribution. They’ve since said they would include it in a coming update packade, but it has yet to happen. I’ve downgraded to 7.3 where zip is still avaialable, hoping that either Synology hold to their promise and include zip plugin or that framework developers start making their code using zlib alongside zip. Else the only way will be to get it will be to compile it from source or someone start distributing it in a community repo.
Can anyone suggest a way to install a custom PECL library on Heroku instance?
I have tried to include it via composer.json file, but following error is produced:
- composer.json/composer.lock requires ext-yaml * -> no matching package found.
I tried to install zend framework 2 on Ubuntu 12.04.1 64 bit but have run into difficulties.
# sudo pyrus install zf2/Zend_Framework-beta#Standard
failed mid transaction with no other previous errors that I can recall other than warnings about timezone not being set. ( Unfortuantely my terminal history has lost the original output)
Pyrus\Installer\Exception: Installation failed
Pyrus\AtomicFileTransaction\MultiException: ERROR: commit failed
Pyrus\IOException: CRITICAL - unable to complete transaction, rename of actual to backup path failed
Pyrus\AtomicFileTransaction\RuntimeException: Cannot rollback - not in a transaction
Now when I try to rerun
# sudo pyrus install -f zf2/Zend_Framework-beta#Standard
it fails with
Pyrus\Registry\Exception: Cannot retrieve package file object for package packages.zendframework.com/zend_framework, it is not installed
Uninstall just tells me that it's not installed.
I restored /usr/share/.old-php to /usr/share/php however I still get the same error.
Please help.
You can just try to download and unzip Zend Framework 2 archive into your project's library folder.
It looks like it's a problem with the metapackage according the Matthew. I'm having the same problem.
Error Installing full framework with Pyrus
So if I installed pyrus here: "/usr/share/pear/pyrus" , then should I create a directory "/usr/share/pear/pyrus/zf2" and download and unzip the full Zend Framework in zf2 and it should work?
thanks
I want to install PEAR's Mail package. I went through the Terminal and installed Mail and its dependencies. The files were saved to my /usr/lib/php directory. In that lib directory I also have a 'PEAR' directory but my new packages weren't saved there. Do I need to drop the new packages into the PEAR directory or is it okay to let them sit in the usr/lib/php dir where they were installed?
You should install the package the official way via the installer:
pear install mail
It takes care of putting the files in the right directories.