Linux - NewbieThis 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.
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)
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
# 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 10:09 AM.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,291
Rep:
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".
.....
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.
--> 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 )
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.
Distribution: pclos2010.12, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 9,291
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.