LinuxQuestions.org
Review your favorite Linux distribution.
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 03-12-2010, 08:39 AM   #16
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 385

Rep: Reputation: 61

yum install php5-devel

Job done
 
Old 03-12-2010, 08:40 AM   #17
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Do you have aptitude in /usr/bin?.

Edit:Just seen that the OP is not running Debian!!.

Last edited by the trooper; 03-12-2010 at 08:42 AM.
 
Old 03-12-2010, 08:41 AM   #18
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 385

Rep: Reputation: 61
It's a RedHat-based system. It won't have apt-get installed. Use yum instead.
 
Old 03-12-2010, 08:42 AM   #19
dunix
Member
 
Registered: Nov 2009
Location: Vermont
Distribution: Slackware, RHEL/CentOS, Fedora
Posts: 40

Rep: Reputation: 18
Pretty funny it took almost a whole page for someone to realize that the OP is using CentOS and not a Debian based distro.

Apt or Aptitude does not exist in CentOS (or RH based). Yum is what you use.
 
Old 03-12-2010, 08:43 AM   #20
amanacare
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
[root@XXX-XX-XXX-XX ~]# yum install php5-dev
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.intergenia.de
* base: centos.intergenia.de
* extras: centos.intergenia.de
* updates: centos.intergenia.de
Setting up Install Process
No package php5-dev available.
Nothing to do
lol nothing is working here :P
 
Old 03-12-2010, 08:45 AM   #21
the trooper
Senior Member
 
Registered: Jun 2006
Location: England
Distribution: Debian Testing/Unstable Amd64
Posts: 1,476

Rep: Reputation: Disabled
Quote:
Originally Posted by dunix View Post
Pretty funny it took almost a whole page for someone to realize that the OP is using CentOS and not a Debian based distro.

Apt or Aptitude does not exist in CentOS (or RH based). Yum is what you use.
Thanks for clearing that up,i didn't know that.....
 
Old 03-12-2010, 08:46 AM   #22
amanacare
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by dunix View Post
Pretty funny it took almost a whole page for someone to realize that the OP is using CentOS and not a Debian based distro.

Apt or Aptitude does not exist in CentOS (or RH based). Yum is what you use.
lol it's my hosting fault, they provided me with something other then what i requested.

Code:
]# yum install php5-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * addons: centos.intergenia.de
 * base: centos.intergenia.de
 * extras: centos.intergenia.de
 * updates: centos.intergenia.de
Setting up Install Process
No package php5-devel available.
Nothing to do
 
Old 03-12-2010, 08:49 AM   #23
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 385

Rep: Reputation: 61
Quote:
Originally Posted by amanacare View Post
lol nothing is working here :P
EDIT: Ah, okay use "yum install php-devel"
 
Old 03-12-2010, 08:52 AM   #24
amanacare
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
i did that just above you :S
 
Old 03-12-2010, 08:55 AM   #25
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 385

Rep: Reputation: 61
Quote:
Originally Posted by amanacare View Post
i did that just above you :S
No, you did "yum install php5-devel".

Use "yum install php-devel".
 
Old 03-12-2010, 08:57 AM   #26
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Somewhere, I'm sure there is a list of CentOS packages. Or--doesn't YUM have a search option?
 
Old 03-12-2010, 08:59 AM   #27
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 385

Rep: Reputation: 61
Quote:
Originally Posted by pixellany View Post
Somewhere, I'm sure there is a list of CentOS packages. Or--doesn't YUM have a search option?
It does:- "yum search <package name>"

But the OP needs to omit the "5" from the package name and it'll work.
 
1 members found this post helpful.
Old 03-12-2010, 09:13 AM   #28
amanacare
LQ Newbie
 
Registered: Mar 2010
Posts: 24

Original Poster
Rep: Reputation: 0
thanks every thing worked fine! thanks to all of you as you have really helped me.
 
Old 10-23-2012, 10:26 AM   #29
bobv
LQ Newbie
 
Registered: Aug 2008
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by arashi256 View Post
It does:- "yum search <package name>"

But the OP needs to omit the "5" from the package name and it'll work.
Yes, this is very correct! I am using CentOS 6.3 and using the command: yum install php-devel, and it was breeze!!! thanks!!!
 
  


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
Will apt-get installs 32bit debain package on 64bit debian/ubuntu machine ?? narendra1310 Linux - Software 1 03-09-2010 07:43 AM
[SOLVED] Thanks a lot , Debian lenny - apt sources and Grub loader problem maj.anwar Linux - Newbie 5 08-25-2009 09:31 PM
clamav kills apt update procedure on Debian Lenny (stable, vanilla) x84 meowing Linux - Server 1 07-22-2009 05:28 PM
Whats your stable /etc/apt/sources.list for testing/lenny debian ? frenchn00b Debian 6 11-03-2008 11:17 AM
apt-get install build-essentials // doesn't work on debian Lenny bucovaina78 Linux - Software 3 10-27-2008 02:05 PM


All times are GMT -5. The time now is 09:55 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