LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-17-2005, 11:48 AM   #1
Huppybanny
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Rep: Reputation: 0
urpmi and php-pear


I am attempting to install pear for PHP on a Mandrake 10.1 machine. I initially tried downloading an .rpm file and installing it with rpm, but it reported dependencies. After googling, I heard about urmpi, and I thought it sounded like just what I needed.

First I tried:

urpmi php-pear

but I was asked to insert a CD-ROM. I don't have physical access to the machine in question, so I added the "anorien" mirror at Warwick to my list of media and used:

urpmi --media main php-pear

and it seemed to work. However, typing in "pear" doesn't work, and "urpmq -l php-pear" reports lots of files, none of which are actually present on the hard disk.

The bit which really confuses me is the following:

# urpmi php-pear
Everything already installed
# urpmi --media main php-pear
Everything already installed
# rpm -ql php-pear
package php-pear is not installed

So urpmi thinks it's installed, but rpm doesn't (and neither do I).

Any ideas?

huppybanny
 
Old 10-17-2005, 09:13 PM   #2
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Post the output of
Quote:
rpm -qa | grep -i pear
Also goto http://easyurpmi.zarb.org and get mirrors for all the repos if you haven't already.
 
Old 10-18-2005, 03:40 AM   #3
Huppybanny
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your reply.

rpm -qa | grep -i pear produces no output.

huppybanny
 
Old 10-18-2005, 04:14 AM   #4
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Its not installed then. Now post
Code:
urpmq php-pear
and
Code:
urpmq --sources php-pear
 
Old 10-18-2005, 04:21 AM   #5
Huppybanny
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I get:
Quote:
[root@brauer v3]# urpmq php-pear
php-pear|php-pear|php-pear
[root@brauer v3]# urpmq --sources php-pear
removable://mnt/cdrom/media/main5/php-pear-4.3.8-1mdk.noarch.rpm
(warwick url)/mirrors/Mandrakelinux/official/10.1/i586/media/main/php-pear-4.3.8-1mdk.noarch.rpm
(sunsite url)/package/mandrakelinux/official/10.1/i586/media/main/php-pear-4.3.8-1mdk.noarch.rpm
(where I have stripped out the URLs so I can actually post it!)

Thanks

huppybanny
 
Old 10-18-2005, 06:53 PM   #6
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
If there a reason you have 2 main mirrors setup? maybe that's what's confusing it.

Try installing it with verbose output:
Code:
urpmi -v php-pear
and post what errors/output you get.

Try disabling one of those mirrors in Mandrake Control Centre->Software->"software sources..." and see if that helps
 
Old 10-19-2005, 03:14 AM   #7
Huppybanny
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for continuing to help me, I appreciate it greatly.

I don't think the two mirrors can be the problem, because I only added the second one yesterday, and I was experiencing the problem when urpmi only knew about the Warwick mirror. The Mandrake Control Centre (drakconf) does not have Software as one of the options (I only have: Auto install/Boat loader/Display/Firewall/Internet connection/Keyboard/Mouse/Network & Internet/Partitions/Services/Users and groups).

Quote:
[root@brauer /]# urpmi -v php-pear
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 3 (cdrom3).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Supplementary Applications CD 5 (cdrom8).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Supplementary Applications CD 4 (cdrom7).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.main.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 2 (cdrom2).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 3 (cdrom6).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.londonmain.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Commercial Applications CD 6 (cdrom10).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Commercial Applications CD 6 (cdrom9).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 1 (cdrom1).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.londonupdates.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 3 (cdrom5).cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.londoncontrib.cz]
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Installation CD 3 (cdrom4).cz]
Everything already installed
 
Old 10-19-2005, 04:38 AM   #8
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 51
Its strange that you don't have a software section in your Mandrake Control Centre. Maybe try installing rpmdrake
Code:
urpmi -v rpmdrake
Edit the /etc/urpmi/urpmi.cfg file as root and disable the CD sources by adding 'ignore' (no quotes, on its own line) inside the { } for each of those sources. See if it works now.

As a last resort you can just insert your install CD and use
Code:
rpm -Uvh /mnt/cdrom/media/main/php-pear...
 
Old 10-19-2005, 06:43 AM   #9
Huppybanny
LQ Newbie
 
Registered: Oct 2005
Posts: 5

Original Poster
Rep: Reputation: 0
urpmi -v rpmdrake claims "Everything already installed".
Adding ignore to the CD-ROMs still gives the same message.
I don't have physical access to the machine in question (as it's sitting in a different city), so installing via CD-ROM is not really an option.

Thanks for your help. I have worked around the problem simply by bypassing the package manager(s) completely and just putting the PEAR files where they can be accessed by my PHP scripts. This seems to work, although is far from ideal.

huppybanny
 
Old 10-19-2005, 08:15 AM   #10
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
You could have simply forced the php-pear rpm to install manually using rpm e.g.
Code:
#rpm -Uvh --force --nodeps rpmname.rpm
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP 4 and Pear on suse 10... jsheffie Suse/Novell 2 03-07-2006 06:40 AM
pear issue with Apache 2 and PHP Jediman Mandriva 0 04-19-2005 12:31 PM
php pear problem craddy Linux - Software 4 11-09-2004 08:25 PM
Trouble with PHP & Pear Gerardoj Programming 0 10-17-2004 03:30 PM
php pear quickforms question BaerRS Programming 1 02-19-2004 06:07 PM


All times are GMT -5. The time now is 05:02 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration