New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
The same way you are doing it.
./configure
add missing packages until configure finishes with no errors
make
It's the downside of starting with a minimal system that doesn't have all the needed packages loaded.
How do you guys do this?
apt-get install php
Want to compile - install gentoo.
Ah okay, thanks. is there any reason to choose gentoo then? how about arch?
that is also for compiling right?
so debian -> use apt-get install
gentoo/arch -> compile from source?
apt-get install the missing packages mentioned, or install the latest version (perhaps) from dotdeb
Ahm, ok, you want to compile...
Before that, take a look at the dotdeb.org site if you use a debian one
Second, if you have dependency issues, try installing one by one and doing configure each time. For example, if I need libxml2, in debian I do
apt-get install libxml2-dev
as @cleonard says. Surely your distro has these "-dev" packages somewhere.Generally, dependencies don't change too much, especially between minor versions (x.y.z, where z is the number changing). Enable a source repository in
/etc/apt/sources.list
, thenapt-get update
andapt-get build-dep php5
. That should get most of the dependencies, if not all.you think php is bad? try perl.
manually adding dependencies before apt/yum etc was popular was an experience!
You think compiling PHP on Debian is hard, wait till you see OS X, even with Homebrew its a pain.
Perl modules are a pain in the ass to install, and they ask so many stupid questions.
OS X is shit in general everything is deprecated
Compiling PHP from source is not hard at all. Here is a simple tutorial I made for CentOS (PHP-FPM) V. 5.3.10.
http://derekharget.com/2012/02/35/centos-install-php-5-3-10-php-fpm-from-source
I have other tutorials on how to get APC installed and where to locate php.ini.
Huh? Compared to some Linux Distro's, OS X actually has up to date libraries and softwares, but Homebrew fills in the gaps.
With macports you are required only to do:
@Steve81 And now you've got two copies of PHP installed, and have to now setup the system to use that one.
Homebrew uses /usr/local
You mean that we have the osx copy and the macport copy?
True, but it's the same with homebrew; homebrew install in /usr/local, as you wrote, but osx version of php is in /usr/bin.
Personally I prefer the macports solution to install in /opt/local (for example that's avoid conflicts with manual installed sources).
/usr/local was actually left free by Apple for things like homebrew to use. It also requires the directory to be complacent with POSIX.
MacPorts is slow though, HomeBrew is so much quicker.