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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-17-2005, 11:48 AM
|
#1
|
LQ Newbie
Registered: Oct 2005
Posts: 5
Rep:
|
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
|
|
|
10-17-2005, 09:13 PM
|
#2
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Post the output of Also goto http://easyurpmi.zarb.org and get mirrors for all the repos if you haven't already.
|
|
|
10-18-2005, 03:40 AM
|
#3
|
LQ Newbie
Registered: Oct 2005
Posts: 5
Original Poster
Rep:
|
Thanks for your reply.
rpm -qa | grep -i pear produces no output.
huppybanny
|
|
|
10-18-2005, 04:14 AM
|
#4
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Its not installed then. Now post and
Code:
urpmq --sources php-pear
|
|
|
10-18-2005, 04:21 AM
|
#5
|
LQ Newbie
Registered: Oct 2005
Posts: 5
Original Poster
Rep:
|
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
|
|
|
10-18-2005, 06:53 PM
|
#6
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
If there a reason you have 2 main mirrors setup? maybe that's what's confusing it.
Try installing it with verbose output: 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
|
|
|
10-19-2005, 03:14 AM
|
#7
|
LQ Newbie
Registered: Oct 2005
Posts: 5
Original Poster
Rep:
|
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
|
|
|
|
10-19-2005, 04:38 AM
|
#8
|
Senior Member
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549
Rep:
|
Its strange that you don't have a software section in your Mandrake Control Centre. Maybe try installing 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...
|
|
|
10-19-2005, 06:43 AM
|
#9
|
LQ Newbie
Registered: Oct 2005
Posts: 5
Original Poster
Rep:
|
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
|
|
|
10-19-2005, 08:15 AM
|
#10
|
LQ Guru
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298
Rep:
|
You could have simply forced the php-pear rpm to install manually using rpm e.g.
Code:
#rpm -Uvh --force --nodeps rpmname.rpm
|
|
|
All times are GMT -5. The time now is 02:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|