LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 09-09-2009, 10:41 AM   #1
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Rep: Reputation: 0
PEAR Install Nightmare


Hi all,

I'm trying to install PEAR on a server running under RHEL5.
Tried multiplied way but none is working

Here is what I tried:

Quote:
root@server: yum lis "*PEAR*"
Every result given is a package who actually needs PEAR to work...

Quote:
root@server: rpm -ivh php-pear-1.4.9-6.el5.src.rpm
1hp-pear warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
########################################### [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
But when I'm typing "pear" nothing happens (bash error)


Quote:
root@server: lynx -source http://pear.php.net/go-pear | php -q

Looking up pear.php.net
Making HTTP connection to pear.php.net
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://pear.php.net/go-pear

Thanks for answering!
Regards.

Victor.W

Last edited by Victor.W; 09-09-2009 at 10:42 AM.
 
Old 09-09-2009, 11:05 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You have a long list of packages that need pear to work.
bash is telling you that pear is not installed (guessing: "command not found" as the error - but you really have to quote the errors exactly for us to be sure.)
The lynx command says that you have failed to install pear.

diagnosis: you have not installed pear
solution: install pear

One way is just to download the files themselves.
http://www.cyberciti.biz/tips/rhel-i...il-socket.html

The site has instructions:
Quote:
# Webbased installation:
# 1) Download this file and save it as go-pear.php
# 2) Put go-pear.php on your webserver, where you would put your website
# 3) Open http://yourdomain.example.org/go-pear.php in your browser
# 4) Follow the instructions, done!
#
# Command-line installation (for advanced users):
# 1) Download this file and save it as go-pear.php
# 2) Open a terminal/command prompt and type: php -q go-pear.php
# 3) Follow the instructions, done!
You've been trying to run it from the site.
It has not been letting you.

Last edited by Simon Bridge; 09-09-2009 at 11:09 AM.
 
Old 09-09-2009, 12:19 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
1) php-pear-1.4.9-6.el5.src.rpm is source code.
rpm -ivh has unpacked it to /usr/src/redhat/SOURCES, etc.

2) php-pear-1.4.9 is on the install cd, disk 3.
You will need php-common + php-cli as dependencies.
( If not already installed. 'rpm -qa | grep php' will tell.)

3) If you have a Redhat account + internet connection,
you can also install with the command : # yum install php-pear

... yum is the Redhat way of installing packages.
Or use the package manager, "Add Remove Software".
.....

Last edited by knudfl; 09-10-2009 at 10:27 AM.
 
Old 09-09-2009, 01:05 PM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Yeah, I wondered about that ... but read that some pear packages are no longer available from the repos (from rhel4) - specifically: mail, smtp, and sockets.
 
Old 09-09-2009, 02:13 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Well , I have no idea.
The OP says RH EL5 , so that's what I use here :

I can show the output of
# yum list available php*

The used repo's are non RH EL , mainly CentOS5.3 / epel
.... The result is attached .....
Attached Files
File Type: txt yum-list-available-php.txt (19.4 KB, 6 views)

Last edited by knudfl; 09-09-2009 at 02:24 PM.
 
Old 09-10-2009, 05:10 AM   #6
Victor.W
LQ Newbie
 
Registered: Aug 2009
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for your answers!
Here's the situation:

--> About the error bash gives me when typing "pear", here it is:
Code:
root@server: pear
-bash: pear: command not found
-> I tired the Simon Bridge's way, saving and typing "php go-pear.php".
It seems there's a problem about the proxy:
Code:
root@server: php go-pear.php
Welcome to go-pear!

Go-pear will install the 'pear' command and all the files needed by
it.  This command is your tool for PEAR installation and maintenance.

Go-pear also lets you download and install the following optional PEAR
packages: PEAR_Frontend_Web-beta, PEAR_Frontend_Gtk2, MDB2.


If you wish to abort, press Control-C now, or press Enter to continue:

HTTP proxy (http://user:password@proxy.myhost.com:port), or Enter for none:: http://login:password@proxy.intranet...proxy.pac:8081

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation prefix ($prefix) : /tmp
 2. Temporary files directory     : $prefix/temp
 3. Binaries directory            : $prefix/bin
 4. PHP code directory ($php_dir) : $prefix/PEAR
 5. Documentation base directory  : $php_dir/docs
 6. Data base directory           : $php_dir/data
 7. Tests base directory          : $php_dir/tests

1-7, 'all' or Enter to continue: 1
Installation prefix ($prefix) [/tmp] : /usr/local/

Below is a suggested file layout for your new PEAR installation.  To
change individual locations, type the number in front of the
directory.  Type 'all' to change all of them or simply press Enter to
accept these locations.

 1. Installation prefix ($prefix) : /usr/local/
 2. Temporary files directory     : $prefix/temp
 3. Binaries directory            : $prefix/bin
 4. PHP code directory ($php_dir) : $prefix/PEAR
 5. Documentation base directory  : $php_dir/docs
 6. Data base directory           : $php_dir/data
 7. Tests base directory          : $php_dir/tests

1-7, 'all' or Enter to continue:

The following PEAR packages are bundled with PHP: PEAR_Frontend_Web-beta,
PEAR_Frontend_Gtk2, MDB2.
Would you like to install these as well? [Y/n] : Y

Loading zlib: ok

Bootstrapping Installer...................
Bootstrapping PEAR.php............PHP Warning:  fsockopen(): unable to connect to proxy.intranet.mycompany.fr:0 (Failed to parse address "proxy.intranet.mycompany.fr") in /tmp/go-pear.php on line 1042
download of http://cvs.php.net/viewvc.cgi/pear-c...threv=PEAR_1_4 failed: Failed to parse address "proxy.intranet.mycompany
.fr" (0)
I guess the problem comes from my proxy, but I just don't know how to solve it :/
I verified in typing http://login:password@proxy.intranet...proxy.pac:8081 in my web explorer (as I'm connected to the server through SSH), and it works fine.
(please keep in mind my computer is running on Windows XP, and the server I'm connected to through SSH runs on RHEL5)

--> I re-tried what knudfl ask me to do, but same result:
Code:
root@server: yum install php-pear
Loaded plugins: security
rpmforge                                                                                                               | 1.1 kB     00:00
Setting up Install Process
Parsing package install arguments
No package php-pear available.
Nothing to do
--> Still on the knudfl post, I typed again "rpm -ivh php-pear-1.4.9-6.el5.src.rpm", went to /usr/src/redhat/BUILD, but the folder is empty!
Is there anything I'm missing? Or misunderstanding?
(which is totally possible regarding my Linux skill)



Agin, thanks for your help.
Once php-pear will be installed, i'll be able to get all the rpm's needed and I won't have any dependencies problems anymore
(sorry about the grammar, I did my best )

Regards,
victor.W
 
Old 09-10-2009, 09:23 AM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Failed to parse address "proxy.intranet.mycompany.fr" (0)

this error message is returned when PHP's "parse_ip_address_ex" C function can't find a colon to separate IP and port number in the textual address it is passed.
 
Old 09-10-2009, 10:31 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Sorry , /usr/src/redhat/SOURCES is where the source is
unpacked to. The idea was to tell you, it wasn't an rpm
package. The source is only used for rebuilding, and
no reason to do that, when you can get everything as
genuine rpm packages, ref. post # 3 , 5.

.....

Last edited by knudfl; 09-10-2009 at 10:34 AM.
 
  


Reply

Tags
el5


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
Installing PEAR on a system which is configured '--without pear' swiftguy121 Linux - Software 1 07-10-2007 08:45 PM
install Pear Net/SMTP, Pear Log and Pear DB modules cccc Debian 0 02-26-2007 09:33 AM
newbie trying to install Pear boardtc Mandriva 2 08-23-2005 11:51 PM
can't install anything with pear maltune Linux - Software 0 01-19-2005 05:00 PM
PEAR will not install Moebius01 Mandriva 1 11-27-2003 04:07 AM


All times are GMT -5. The time now is 12:52 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration