LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Yum "Package(s) php available, but not installed. No Packages marked for update" (http://www.linuxquestions.org/questions/linux-server-73/yum-package-s-php-available-but-not-installed-no-packages-marked-for-update-794627/)

devwink 03-11-2010 02:12 AM

Yum "Package(s) php available, but not installed. No Packages marked for update"
 
Hi All,

I have enabled jasonlitika's repo for a php 5.2.6 upgrade on centOs5
www.jasonlitka.com/yum-repositories

after much updating and installing . ... . .

#yum update php or yum install php
returns

649 packages excluded due to repository priority protections
Setting up Upgrade Process
Package(s) php available, but not installed.
No Packages marked for Update

# rpm -qa |grep php

returns
php-ldap-5.1.6-24.el5_4.5
php-cli-5.1.6-24.el5_4.5
php-gd-5.1.6-24.el5_4.5
php-common-5.1.6-24.el5_4.5



Could someone please advise how i can get Yum to not pass over php install
php 5.1.6 has been "erased" and doesn't work anymore, but i cant get 5.2.6 on .... have tried every article.

Centos 5.2 installation with 5.1.6 php

86_64 Installation


Thanks in advance any ideas .. regards

David

knudfl 03-11-2010 04:35 AM

First : typos in the link, you show ..
http://www.jasonlitka.com/yum-repository/

Next : check, that the repo file is right :

[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

Testing the new repo : # yum search php

And when it appears, please use the full name like ..
# yum install php-5.2.11-jason.1.x86_64
.....
.....

Or use the "Karanbir.repo" http://centos.karan.org/
( Seems to be down today ).

Or the "Remi.repo" http://rpms.famillecollet.com/enterprise/5/
.....

devwink 03-11-2010 05:08 AM

Thanks so much for the reply .

i've pasted repo file details in Nano GNU and ctl E exited.


now

#yum search php returns this .....

[root@115-64-82-107 ~]# yum search phpLoaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
================================= Matched: php =================================
php-eaccelerator.x86_64 : PHP accelerator, optimizer, encoder and dynamic
: content cacher
php-pear.noarch : PHP Extension and Application Repository framework
php-xcache.x86_64 : PHP accelerator, optimizer, encoder and dynamic content
: cacher
compat-readline43.i386 : The readline 4.3 library for compatibility with older
: software.
compat-readline43.x86_64 : The readline 4.3 library for compatibility with older
: software.
fonts-arabic.noarch : Fonts for Arabic
gollem-h3.noarch : The Horde web-based File Manager.
hddtemp.x86_64 : Hard disk temperature tool
horde.noarch : The common Horde Framework for all Horde modules.
imp-h3.noarch : The Internet Messaging Program: webmail access to IMAP/POP3
: accounts.
ingo-h3.noarch : The Horde web-based Email Filter Rules Manager.
iproute.x86_64 : Advanced IP routing and network device configuration tools.
kronolith-h3.noarch : The Horde calendar application.
libc-client.i386 : C-client mail access routines for IMAP and POP protocols
libc-client.x86_64 : C-client mail access routines for IMAP and POP protocols
mnemo-h3.noarch : The Horde note manager application.
nag-h3.noarch : The Horde task list manager.
php.x86_64 : The PHP HTML-embedded scripting language. (PHP: Hypertext
: Preprocessor)
php-apc.x86_64 : APC caches and optimizes PHP intermediate code
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications
php-dbase.x86_64 : Standard dBase module for PHP applications
php-devel.x86_64 : Files needed for building PHP extensions.
php-embedded.x86_64 : PHP library for embedding in applications
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php-imap.x86_64 : A module for PHP applications that use IMAP.
php-ldap.x86_64 : A module for PHP applications that use LDAP.
php-mbstring.x86_64 : A module for PHP applications which need multi-byte string
: handling
php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-mhash.x86_64 : Standard PHP module provides mhash support
php-mssql.x86_64 : Standard PHP module provides mssql support
php-mysql.x86_64 : A module for PHP applications that use MySQL databases.
php-ncurses.x86_64 : A module for PHP applications for using ncurses interfaces
php-odbc.x86_64 : A module for PHP applications that use ODBC databases.
php-pdo.x86_64 : A database access abstraction module for PHP applications
php-pear-Auth-SASL.noarch : PEAR: Abstraction of various SASL mechanism
: responses
php-pear-DB.noarch : PEAR: Database Abstraction Layer
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-File.noarch : Common file and directory routines
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-Log.noarch : Abstracted logging facility for PHP
php-pear-MDB2.noarch : Database Abstraction Layer
php-pear-MDB2-Driver-mysql.noarch : MySQL MDB2 driver
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
: emails
php-pear-Mail-Mime.noarch : Classes to create and decode mime messages
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Sieve.noarch : Communication with timsieved
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pecl-Fileinfo.x86_64 : Fileinfo is a PHP extension that wraps the libmagic
: library
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-pgsql.x86_64 : A PostgreSQL database module for PHP.
php-pspell.x86_64 : A module for PHP applications for using pspell interfaces
php-readline.x86_64 : Standard PHP module provides readline library support
php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices.
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php-tidy.x86_64 : Standard PHP module provides tidy library support
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
readline.i386 : A library for editing typed command lines.
readline.x86_64 : A library for editing typed command lines.
readline-devel.i386 : Files needed to develop programs which use the readline
: library.
readline-devel.x86_64 : Files needed to develop programs which use the readline
: library.
squirrelmail.noarch : SquirrelMail webmail client
totem.i386 : Movie player for GNOME 2
totem.x86_64 : Movie player for GNOME 2
totem-devel.i386 : Libraries/include files for Totem
totem-devel.x86_64 : Libraries/include files for Totem
totem-mozplugin.x86_64 : Mozilla plugin for Totem
turba-h3.noarch : The Horde contact management application.
velocity.x86_64 : Java-based template engine









[root@115-64-82-107 ~]# yum search phpLoaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
================================= Matched: php =================================
php-eaccelerator.x86_64 : PHP accelerator, optimizer, encoder and dynamic
: content cacher
php-pear.noarch : PHP Extension and Application Repository framework
php-xcache.x86_64 : PHP accelerator, optimizer, encoder and dynamic content
: cacher
compat-readline43.i386 : The readline 4.3 library for compatibility with older
: software.
compat-readline43.x86_64 : The readline 4.3 library for compatibility with older
: software.
fonts-arabic.noarch : Fonts for Arabic
gollem-h3.noarch : The Horde web-based File Manager.
hddtemp.x86_64 : Hard disk temperature tool
horde.noarch : The common Horde Framework for all Horde modules.
imp-h3.noarch : The Internet Messaging Program: webmail access to IMAP/POP3
: accounts.
ingo-h3.noarch : The Horde web-based Email Filter Rules Manager.
iproute.x86_64 : Advanced IP routing and network device configuration tools.
kronolith-h3.noarch : The Horde calendar application.
libc-client.i386 : C-client mail access routines for IMAP and POP protocols
libc-client.x86_64 : C-client mail access routines for IMAP and POP protocols
mnemo-h3.noarch : The Horde note manager application.
nag-h3.noarch : The Horde task list manager.
php.x86_64 : The PHP HTML-embedded scripting language. (PHP: Hypertext
: Preprocessor)
php-apc.x86_64 : APC caches and optimizes PHP intermediate code
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications
php-dbase.x86_64 : Standard dBase module for PHP applications
php-devel.x86_64 : Files needed for building PHP extensions.
php-embedded.x86_64 : PHP library for embedding in applications
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php-imap.x86_64 : A module for PHP applications that use IMAP.
php-ldap.x86_64 : A module for PHP applications that use LDAP.
php-mbstring.x86_64 : A module for PHP applications which need multi-byte string
: handling
php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-mhash.x86_64 : Standard PHP module provides mhash support
php-mssql.x86_64 : Standard PHP module provides mssql support
php-mysql.x86_64 : A module for PHP applications that use MySQL databases.
php-ncurses.x86_64 : A module for PHP applications for using ncurses interfaces
php-odbc.x86_64 : A module for PHP applications that use ODBC databases.
php-pdo.x86_64 : A database access abstraction module for PHP applications
php-pear-Auth-SASL.noarch : PEAR: Abstraction of various SASL mechanism
: responses
php-pear-DB.noarch : PEAR: Database Abstraction Layer
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-File.noarch : Common file and directory routines
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-Log.noarch : Abstracted logging facility for PHP
php-pear-MDB2.noarch : Database Abstraction Layer
php-pear-MDB2-Driver-mysql.noarch : MySQL MDB2 driver
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
: emails
php-pear-Mail-Mime.noarch : Classes to create and decode mime messages
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Sieve.noarch : Communication with timsieved
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pecl-Fileinfo.x86_64 : Fileinfo is a PHP extension that wraps the libmagic
: library
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-pgsql.x86_64 : A PostgreSQL database module for PHP.
php-pspell.x86_64 : A module for PHP applications for using pspell interfaces
php-readline.x86_64 : Standard PHP module provides readline library support
php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices.
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php-tidy.x86_64 : Standard PHP module provides tidy library support
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
readline.i386 : A library for editing typed command lines.
readline.x86_64 : A library for editing typed command lines.
readline-devel.i386 : Files needed to develop programs which use the readline
: library.
readline-devel.x86_64 : Files needed to develop programs which use the readline
: library.
squirrelmail.noarch : SquirrelMail webmail client
totem.i386 : Movie player for GNOME 2
totem.x86_64 : Movie player for GNOME 2
totem-devel.i386 : Libraries/include files for Totem
totem-devel.x86_64 : Libraries/include files for Totem
totem-mozplugin.x86_64 : Mozilla plugin for Totem
turba-h3.noarch : The Horde contact management application.
velocity.x86_64 : Java-based template engine




Sorry to be so vauge, I have PHP 5.2.6 in now but not sure it is jason's

every rpm needs dependancies, dependancies need dependancies...
I feel i'm getting far from where i should be

Thanks again

knudfl 03-11-2010 06:23 AM

Well, just try : # yum install php

.. and watch, what you get,
and also watch, where you get it from.

Also easy to check afterwards with : rpm -qa | grep php
If you don't agree, then : yum remove php<version>

'yum' / rpm accepts two kinds of namings : 1) php
2) (example) : php-5.2.11-jason.1.x86_64
.....

devwink 03-11-2010 06:40 AM

Thanks again

# yum install php

Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
Setting up Install Process
Package matching php-5.1.6-24.el5_4.5.x86_64 already installed. Checking for update.
Nothing to do
[root@115-64-82-107 ~]# rpm -qu | grep php
-qu: unknown option
[root@115-64-82-107 ~]# rpm -qa | grep php
php-5.2.9-2.el5.centos
php-common-5.2.9-2.el5.centos
php-cli-5.2.9-2.el5.centos
[root@115-64-82-107 ~]#

it appears to be on there

When I go to install php-devel i get


[root@115-64-82-107 ~]# install php-devel
install: missing destination file operand after `php-devel'
Try `install --help' for more information.
[root@115-64-82-107 ~]# yum install php-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php = 5.1.6-24.el5_4.5 for package: php-devel
--> Finished Dependency Resolution
php-devel-5.1.6-24.el5_4.5.x86_64 from updates has depsolving problems
--> Missing Dependency: php = 5.1.6-24.el5_4.5 is needed by package php-devel-5.1.6-24.el5_4.5.x86_64 (updates)
Error: Missing Dependency: php = 5.1.6-24.el5_4.5 is needed by package php-devel-5.1.6-24.el5_4.5.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.



am i to understang that i need to then google and find php = 5.1.6-24.el5_4.5.... i know the php= is php- but still cant find it.

i need phpize to load Pecl APC .....

Sorry to keep bugging you all , this process seems sooo painfull..

great when things do work though.

knudfl 03-11-2010 06:47 AM

Absolute necessary to do :

# yum remove php-devel

Or do this : # yum install php-devel
.. to get php-devel-5.2.11-jason.1.x86_64 ( and php-5.2...)

.....

devwink 03-11-2010 06:58 AM

# yum remove php-devel
Loaded plugins: fastestmirror, priorities
Setting up Remove Process
No Match for argument: php-devel
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
Package(s) php-devel available, but not installed.
No Packages marked for removal

#yum install php-devel

yum install php-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirror.3fl.net.au
* base: mirror.3fl.net.au
* extras: ftp.swin.edu.au
* updates: ftp.swin.edu.au
53 packages excluded due to repository priority protections
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php = 5.1.6-24.el5_4.5 for package: php-devel
--> Finished Dependency Resolution
php-devel-5.1.6-24.el5_4.5.x86_64 from updates has depsolving problems
--> Missing Dependency: php = 5.1.6-24.el5_4.5 is needed by package php-devel-5.1.6-24.el5_4.5.x86_64 (updates)
Error: Missing Dependency: php = 5.1.6-24.el5_4.5 is needed by package php-devel-5.1.6-24.el5_4.5.x86_64 (updates)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

I can't find dependancies would you use a source rpm?
php-5.1.6-24.el5_4.5



Thanks again for your valued advice.

knudfl 03-11-2010 07:44 AM

So far the new repo isn't even enabled ?, and yum is just
trying to reinstall version 5.1.6. May be this new repo
has a wrong name ? Must be like /etc/yum.repos.d/name.repo

Rebuilding php5 , example :
http://www.linuxquestions.org/questi...-5.0-764323/#3

Info : LQ Search → "Tag Name" = php5

Setting up an unprivileged rpmbuild account in /home/<user>/
http://www.linuxquestions.org/questi...5.1-766486/#13
.....

knudfl 03-11-2010 11:38 AM

About dependencies : Some of these ( LAMP ) packages have
a bug in a pre install script, that makes it depend on itself.
( Origin : e.g. php.spec → "" Requires : php "" )

The solution is to download the package and install with :
# rpm -Uvh --nodeps php-<version>.rpm
http://www.jasonlitka.com/media/EL5/...n.1.x86_64.rpm

http://www.jasonlitka.com/media/EL5/x86_64/
.....

devwink 03-11-2010 05:00 PM

Thanks Kknudfl,

after 4 days (and i only bother you guys after extensive trying) , you

have nailed it ... as always.

Thank you ..thank you ..thank you

I try to give back in the forums, but as you can tell my understanding is limited.

Cheers


All times are GMT -5. The time now is 01:27 AM.