Tip:
Highlight text to annotate it
X
Okay so today we're gonna be compiling Apace 2.4.6
MySQL 5.7.1 and PHP 5.5.1
from source on Mac running OS 10.8.4
So right now
I'm doing a fresh install of Mountain Lion and once I get that setup I'll go ahead and
do a few configurations and installations to get ready to install
my AMP stack.
Okay, so the first thing I'm going to do is install Xcode on this Mac
because we'll be needing the C compilers to do most of our installations
so I'm at the Mac App Store here
I'll do a search for Xcode
and it will likely be the first option that presents itself
sign in with my iTunes username and password
and that'll take a few minutes to download its almost two gigs
so once that's done I'll launch Xcode
installed the Device Support
and then go to Xcode Preferences
and install
the command line tools
we're also going to need a Java Runtime
I'm gonna go to the Oracle Web site
on loans
select Java for your computer
If you're a Java developer you can use the Java For Developers link
That shouldn't be a problem
I'm just going to download this one
you can skip this step
if your Java Environment is inside a VMWare Fusion virtual machine
if you follow the steps for the dependencies, at some point you'll be
prompted to install the Java Runtime through the Apple Software Update system so
I would just go ahead and let that happen
that should be just fine
I'm going to go ahead and enable the root user on this computer
We'll mostly be using the
Terminal application so you could choose to initiate a
superuser session by typing "sudo su"
or by typing "sudo" before very command
But I'm going to do it this way
so I'll log in as root
and bear with me while I make a few changes to my working environment
just make my screen a little more "video friendly"
now I should probably mention that there are many easier ways of getting
an AMP stack on your Mac
You could install XAMPP
or MAMP
or you could use a package manager like
MacPorts or Fink or Homebrew
I prefer to do it this way
because it gives me better control of the features that are installed
Now the default installation directory for all
these packages is usr/local/bin
but if you look at my $PATH variable, use/local/bin is at the end, so in order for the command line
to default the newer versions of the packages we're installing
I'm going to change that.
I'll type "nano etc/paths" and I'll copy this "use/local/bin" at the bottom
and move it up to the up
get rid of the duplicate line down here
now it hasn't updated yet so if I type "echo $PATH" /usr/local/bin
is still at the end
but if I quit Terminal and open it back up again
and type "echo $PATH" you'll see that it's updated
The command line uses a program called make to install everything
and we have a version make but the
only thing I'm going to use it for is to upgrade to the latest version
So I'll go to the GNU website here
copy the download link for make 3.82
open Terminal, change directory into my temp directory
and type "curl -0" and I'll paste the link
and here's the sequence that we use for almost everything we'll install
gunzip -d and the name of the file we just downloaded
tar xvf and the name of the tar file we just decompressed
change directory to the directory just untarred
type ./configure
make
make install
change directory back up to the tmp directory
and remove the configuration directory we just created
In the next movie I'm going to run through all the dependencies