I'm having issues installing php-id3 I'm using the following and getting this response:
sudo pecl install --force id3
WARNING: failed to download pecl.php.net/id3 within preferred state "stable", will instead download version 0.2, stability "alpha"
downloading id3-0.2.tgz ...
Starting to download id3-0.2.tgz (20,693 bytes)
........done: 20,693 bytes
4 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
Ahhh easy fix I hear you scream you need the php dev packages!! Well I alread have them:
sudo apt-get install php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-dev is already the newest version.
0 to upgrade, 0 to newly install, 0 to remove and 246 not to upgrade.
so what am I missing to get this module installed?
Related
I'd like to install php7.4-redis on my debian server. My php is 7.4 version.
When I run the "sudo apt install php7.4-redis" command , it shows 404 not found so I can't finish my setting.
However , I found the page has other version :
php7.4-redis version
I've run command "sudo apt-get update" to update the repository but why am I still getting the 404 error?
sudo apt install php7.4-redis
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
php7.4-igbinary
The following NEW packages will be installed:
php7.4-igbinary php7.4-redis
0 upgraded, 2 newly installed, 0 to remove and 70 not upgraded.
Need to get 142 kB/202 kB of archives.
After this operation, 848 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err:1 https://packages.sury.org/php stretch/main amd64 php7.4-redis amd64 5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4
404 Not Found
E: Failed to fetch https://packages.sury.org/php/pool/main/p/php-redis/php7.4-redis_5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4_amd64.deb 404 Not Found
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Try running apt update, then it should work afterwards.
APT caches the packages available from each repository locally when running apt update. If you install a package, apt will use this cache. However, when a package is updated on the server and the old version gets deleted, apt will try to retrieve a no longer present file. This is indicated by this log output:
404 Not Found
E: Failed to fetch https://packages.sury.org/php/pool/main/p/php-redis/php7.4-redis_5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4_amd64.deb 404 Not Found
If you take a look at the repos listing, your Version 5.3.2+4.3.0-7+0~20210228.34+debian9~1.gbp893bd4 is notably missing. Thus, after an apt update apt will know from where to load the package.
EDIT: You have an old signing key from php sury on your system, thus the repo can not be updated and the current version to download can not be obtained. This is a known issue, I faced it to on all my hosts.
In the linked GitHub thread, the recommended fix was to simple run these commands (posted by stefanux):
$ apt-key del 95BD4743 # If this throws an error about the key not being present, it's fine
$ wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
$ apt-get update
Now you should be able to install the redis package.
When I go to install phpmyadmin it wants to load php8.0. I do not want this, because I did a full purge on php8.0 and am using php7.4
apt-get install phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2 php-phpseclib php-tcpdf php8.0-bz2 php8.0-common
Suggested packages:
php-libsodium php-mcrypt php-gmp
The following NEW packages will be installed:
dbconfig-common dbconfig-mysql javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore php-bz2 php-phpseclib php-tcpdf php8.0-bz2 php8.0-common phpmyadmin
0 upgraded, 12 newly installed, 0 to remove and 0 not upgraded.
Need to get 13.8 MB of archives. After this operation, 57.7 MB of additional disk space will be used.
Do you want to continue? [Y/n] n Abort.
Is there an easy way to correct this?
Im trying to install pdo_sqlsrv on Ubuntu 10.04.4 LTS with PHP version PHP 5.4.39-1+deb.sury.org~lucid+2
Im running:
pecl install pdo_sqlsrv
Got this error message:
downloading pdo_sqlsrv-3.0.1.tgz ...
Starting to download pdo_sqlsrv-3.0.1.tgz (123,911 bytes)
.....................done: 123,911 bytes
17 source files, building
running: phpize
Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the
top level source directory of the module
If the command failed with 'phpize: not found' then you
need to install php5-dev packageYou can do it
by running 'apt-get install php5-dev' as a root
userERROR: `phpize' failed
I Have installed php5-dev package. I seems that the downloaded pdo_sqlsrv package does not contain any config.m4 file or is missing
pdo_sqlsrv-3.0.1 package files list:
config.w32
core_conn.cpp
core_init.cpp
core_results.cpp
core_sqlsrv.h
core_stmt.cpp
core_stream.cpp
CREDITS
pdo_dbh.cpp
pdo_init.cpp
pdo_parser.cpp
pdo_sqlsrv.h
pdo_stmt.cpp
pdo_util.cpp
README.TXT
sqlncli.h
template.rc
version.h
I want to install imagick extension for PHP. But i get error 'phpize' error when installing
> pecl install imagick-3.1.2
downloading imagick-3.1.2.tgz ...
Starting to download imagick-3.1.2.tgz (94,657 bytes)
.....................done: 94,657 bytes
15 source files, building
running: phpize
sh: phpize: command not found
ERROR: `phpize' failed
I know php-devel package contains phpize for compiling/creating modules/extensions. I don't want to install apache. I am running a LEMP on CentOS 6.4
How do i proceed? or install phpize without apache and reinstalling/configuring php
as root, execute the following command
yum install php-devel
Then try installing the imageMagick extension again
Install the php-devel package, it's included in there
I have been trying to install SDO_DAS_XML library in PHP5, but gives me an error as below
command: pecl install SCA_SDO
Error:
194 source files, building running: phpize Cannot find config.m4.
Make sure that you run '/usr/bin/phpize' in the top level source
directory of the module
ERROR: `phpize' failed
Operating system: Fedora 14
Note: installed pear and php-devel