473,569 Members | 2,688 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Should I yum install php or compile it?


For those of you with red hat or fedora, do you yum install php or do
you compile it?

Jul 11 '07 #1
12 3427
On Jul 11, 3:45 pm, mrbog <dterr...@hotma il.comwrote:
For those of you with red hat or fedora, do you yum install php or do
you compile it?
Compile it.

Jul 11 '07 #2
mrbog wrote:
For those of you with red hat or fedora, do you yum install php or do
you compile it?
Installing it from a package gives you a fairly standard PHP
installation. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself. Compiling PHP is fairly
easy, but takes several minutes. Installing all the libraries for the
extensions can be hard.

In some cases, it is a good idea to make your own package, so that the
packaging system knows PHP is installed and does not bug you with
dependencies.

Sjoerd
Jul 11 '07 #3
Sjoerd wrote:
Installing it from a package gives you a fairly standard PHP
installation. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself.
Installing PHP using your package manager shouldn't preclude you from
compiling additional modules yourself.

My main development machine has PHP installed via Mandriva's URPMI tool,
but I've compiled the pdo and pdo_pgsql extensions myself.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 21 days, 13:34.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
Jul 12 '07 #4
On Jul 12, 5:58 am, Toby A Inkster <usenet200...@t obyinkster.co.u k>
wrote:
Sjoerd wrote:
Installing it from a package gives you a fairly standard PHP
installation. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself.

Installing PHP using your package manager shouldn't preclude you from
compiling additional modules yourself.

My main development machine has PHP installed via Mandriva's URPMI tool,
but I've compiled the pdo and pdo_pgsql extensions myself.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 21 days, 13:34.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/

But what if I want to add ming or curl or ftp or dom? Could I do the
equivalent of this with yum:

../configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/
usr/bin/mysql_config --prefix=/usr/local/php521 --with-gd --with-zlib-
dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --
with-config-file-path=/usr/local/apache2/conf --with-curl --with-dom --
with-pgsql=/usr/local/pgsql821 --enable-ftp --with-ming


Jul 12 '07 #5
mrbog wrote:
On Jul 12, 5:58 am, Toby A Inkster <usenet200...@t obyinkster.co.u k>
wrote:
>Sjoerd wrote:
>>Installing it from a package gives you a fairly standard PHP
installatio n. For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself.
Installing PHP using your package manager shouldn't preclude you from
compiling additional modules yourself.

My main development machine has PHP installed via Mandriva's URPMI tool,
but I've compiled the pdo and pdo_pgsql extensions myself.

--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 21 days, 13:34.]

demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/


But what if I want to add ming or curl or ftp or dom? Could I do the
equivalent of this with yum:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/
usr/bin/mysql_config --prefix=/usr/local/php521 --with-gd --with-zlib-
dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --
with-config-file-path=/usr/local/apache2/conf --with-curl --with-dom --
with-pgsql=/usr/local/pgsql821 --enable-ftp --with-ming

Just do ./configure --help filename

Capture the output to a file - there are a LOT of options! :-)

That will give you all of the options for configuring PHP. Note you'll
have to add the appropriate directories where necessary.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 12 '07 #6
On Jul 12, 5:36 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
mrbog wrote:
On Jul 12, 5:58 am, Toby A Inkster <usenet200...@t obyinkster.co.u k>
wrote:
Sjoerd wrote:
Installing it from a package gives you a fairly standard PHP
installation . For my distribution, it is even possible to add extensions
using packages. However, if you want the latest version, extension for
which no packages exists, or some other option which does not come with
the package, you have to compile PHP yourself.
Installing PHP using your package manager shouldn't preclude you from
compiling additional modules yourself.
My main development machine has PHP installed via Mandriva's URPMI tool,
but I've compiled the pdo and pdo_pgsql extensions myself.
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 21 days, 13:34.]
demiblog 0.2.0 Released
http://tobyinkster.co.uk/blog/2007/0...emiblog-0.2.0/
But what if I want to add ming or curl or ftp or dom? Could I do the
equivalent of this with yum:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/
usr/bin/mysql_config --prefix=/usr/local/php521 --with-gd --with-zlib-
dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --
with-config-file-path=/usr/local/apache2/conf --with-curl --with-dom --
with-pgsql=/usr/local/pgsql821 --enable-ftp --with-ming

Just do ./configure --help filename

Capture the output to a file - there are a LOT of options! :-)

That will give you all of the options for configuring PHP. Note you'll
have to add the appropriate directories where necessary.

--

I think you should read the rest of the thread. Maybe your local
newserver dropped it.


Jul 12 '07 #7
mrbog wrote:
On Jul 12, 5:36 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>>But what if I want to add ming or curl or ftp or dom? Could I do the
equivalent of this with yum:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/
usr/bin/mysql_config --prefix=/usr/local/php521 --with-gd --with-zlib-
dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --
with-config-file-path=/usr/local/apache2/conf --with-curl --with-dom --
with-pgsql=/usr/local/pgsql821 --enable-ftp --with-ming
Just do ./configure --help filename

Capture the output to a file - there are a LOT of options! :-)

That will give you all of the options for configuring PHP. Note you'll
have to add the appropriate directories where necessary.

--


I think you should read the rest of the thread. Maybe your local
newserver dropped it.

I read the thread. And you're asking a question you can very well
answer yourself.

All you're doing is arguing to try to win a point. You want to compile
it yourself, do so. You want to use an rpm? Do so.

But when someone gives you an answer, don't keep responding with "What
if's". If they were important you should have said so in the first place!

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Jul 13 '07 #8
On Jul 12, 8:29 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
mrbog wrote:
On Jul 12, 5:36 pm, Jerry Stuckle <jstuck...@attg lobal.netwrote:
>But what if I want to add ming or curl or ftp or dom? Could I do the
equivalent of this with yum:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli=/
usr/bin/mysql_config --prefix=/usr/local/php521 --with-gd --with-zlib-
dir=/usr/local --with-png-dir=/usr/lib --with-jpeg-dir=/usr/local --
with-config-file-path=/usr/local/apache2/conf --with-curl --with-dom --
with-pgsql=/usr/local/pgsql821 --enable-ftp --with-ming
Just do ./configure --help filename
Capture the output to a file - there are a LOT of options! :-)
That will give you all of the options for configuring PHP. Note you'll
have to add the appropriate directories where necessary.
--
I think you should read the rest of the thread. Maybe your local
newserver dropped it.

I read the thread. And you're asking a question you can very well
answer yourself.

All you're doing is arguing to try to win a point. You want to compile
it yourself, do so. You want to use an rpm? Do so.

But when someone gives you an answer, don't keep responding with "What
if's". If they were important you should have said so in the first place!
Please tell me that Jerry Stuckle is your real name so that I can
never hire you.

Oh my god you train people. oh no.
Jul 13 '07 #9
..oO(mrbog)
>Please tell me that Jerry Stuckle is your real name so that I can
never hire you.

Oh my god you train people. oh no.
What's your problem? You want a special configuration - then configure
and compile PHP yourself. No package manager can do that for you!

If you don't know how to do it - ask someone. But don't offend them!

Micha
Jul 13 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
12880
by: Ghislain Benrais | last post by:
Hello, My "problem" : install php's XSLT API. 1)I installed Sablotron (with the rpm) : ok 2) I read every where that the next step was to compile php with option --with-xslt-sablot. Since I have php's rpm, I wonder if I can use it directly and tell the rpm command to use this compilation option. Is it possible ? If not, that's no problem...
0
2741
by: Alexander Skwar | last post by:
Hello! I'm having problems getting PHP 4.3.3RC4 successfully to install on my HP-UX 11.00 server. After a (successfull?) compile, "make install" errors out with this error message: #############################################################################################################
2
1458
by: Earnshaw, Peter J | last post by:
I currently have postgresql-7.3.4-3.rh19 installed and need to compile with options: --enable-multibyte and --enable-unicode. I also need to compile up the JDBC drivers --with-java to create the postgresql.jar. Do I need to un-install the current version and re-install from source? I am currently running Red Hat Linux release 9. Any help...
2
1158
by: jai hanuman | last post by:
somebody please help me install VS .NET with asp.net on XP home edition. I installed cassini but the VS won't install asp.net - it says it needs IIS. i've heard cassini can be used instead of IIS, could anyone post the steps please. thanks
3
2293
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to...
2
1694
by: russell.bevers | last post by:
The install.txt that comes with the manual binary install of PHP4 for Windows states that the ActiveScript engine is included in sapi/php4activescript.dll. This is not true in 4.3.11. It just plain isn't in that folder, or anywhere in the .zip file for that matter. Is there an official binary provided, or do I have to get the source and...
9
9674
by: kotori | last post by:
Hi, i'm looking for a C++ compiler that I can run straight off of a USB Thumbdrive for compiling my applications on-the-go. I currently use both dev-cpp and MSVS8 at home, but I desperately need something I can run on the labs at school. The computers there are all running locked down accounts so its impossible to install anything beyond...
1
2266
by: Thomas | last post by:
Hi there! Installing TurboGears out-of-the-box (egg-based) on Windows doesn't work because I can't compile the extensions needed for the required pysqlite (also egg- based): Installed c:\programme\python24\lib\site-packages\turbogears-1.0.1- py2.4.egg Processing dependencies for TurboGears>=1.0
2
2300
by: Bruza | last post by:
I installed MySQL 5.0.45 on Ubuntu 7.1 and download MySQL_python from Sourceforge (http://sourceforge.net/project/showfiles.php? group_id=22307). Then I untar the package and executed "python setup.py install". But I got compilation errors (see part of the failed messages below). Looks like the installation tried to compile the _mysql...
0
7703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7618
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7926
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8138
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7679
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6287
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5223
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3657
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2117
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.