記事のページ

How to install MT4 on OS X 10.5

Libjpeg2.jpg
I would like to show you my way to install some libraries for installing MovableType4 on Mac OS X (Server) 10.5 Leopard. I'm sure this will be some help to some beginners, but I'm afraid my broken-English doesn't help much,(?).
Now, let us go!
phpini-GD.jpg
1. Installing MySQL on Mac OS X (Server) 10.5 Leopard
Download "Mac OS X (package format)" from MySQL Download Links.
Download "Mac OS X 10.5 (x86) package" for your Intel Macs, and "Mac OS X 10.5 (PowerPC, 32-bit) package" for your Power PC Macs.
(Never download 64bit packages if you want to install "MySQL" on your 64bit Macs, because you will be failed to install "DBD::MySQL".)
Install MySQL packege.

2. Installing libjpeg on Mac OS X (Server) 10.5 Leopard
The GD Graphics Library depends upon other libraries, such as zlib, libpng, and libjpeg. If you have installed "X11" and "Xcode", your Mac includes current versions for all but libjpeg. To add the GD Graphics Library Extension (gd.so) to PHP5 on Mac OS X (Server) 10.5 Leopard, we must install libjpeg.
Open Terminal.
Type,
sudo mkdir -p /usr/local/include
sudo mkdir -p /usr/local/bin
sudo mkdir -p /usr/local/lib
sudo mkdir -p /usr/local/share/man/man1
Download libjpeg , and unzip the file to your Desktop.
Open Terminal,again.
Type,
cd Desktop/jpeg-6b
cp /usr/share/libtool/config.sub .
cp /usr/share/libtool/config.guess .
Lines wrapping without line spacing are a single command.
For 32-bit use: Type,
./configure --enable-shared
For 64-bit use: Type,
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --enable-shared
And Type,
make
Please look at the first picture.(My Mac Pro's name is "STEALTH",and My UserName is "FOXBAT".)
And then, find "makefile" in "jpeg-6b"folder on your Desktop, and open "makefile", and change,
mandir = $(prefix)/man/man$(manext)
to
mandir = $(prefix)/share/man/man$(manext)
Save.
Return Terminal, Type,
make test
sudo make install

3. Installing the GD Graphics Library to PHP on Mac OS X (Server) 10.5 Leopard
Download "apache_mod_php-44.1(.tar.gz.)" from Apple-Darwin-Releases 10.5.5 , and unzip the file to your Desktop.
Open Terminal.
Type,
cd Desktop/php-5.2.6/ext/gd
phpize
Lines wrapping without line spacing are a single command.
For 32-bit use: Type,
./configure --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6
For 64-bit use: Type,
MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch ppc -arch ppc64 -arch i386 -arch x86_64 -bind_at_load" ./configure --with-zlib-dir=/usr --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/X11R6 --with-freetype-dir=/usr/X11R6 --with-xpm-dir=/usr/X11R6
And type,
make
make test
sudo make install

4. Creating the "php.ini"file to PHP on Mac OS X (Server) 10.5 Leopard
Please look at the second picture.
Open Terminal.
Type,
sudo cp /etc/php.ini.default /etc/php.ini
And change the permission of the "php.ini"file.
Open the "php.ini"file.
Add "2 lines"
extension_dir = "/usr/lib/php/extensions/no-debug-non-zts-20060613"
extension=gd.so
And change
mysql.default_socket = 
to
mysql.default_socket = /tmp/mysql.sock
Save.

5. Installing DBI and DBD::MySQL on Mac OS X (Server) 10.5 Leopard
If you install "X11" and "Xcode" , your Mac will include "DBI (1.5.X)". But we want to use current versions for "DBI".
Download "DBI (1.607) " from cpan ,and unzip the file to your Desktop.
Open Terminal.
Type,
cd Desktop/DBI-1.607
perl Makefile.PL
make
make test
sudo make install
Now, "DBD::MySQL" !
Download "DBD::MySQL (4.008)" from cpan ,and unzip the file to your Desktop.
We need the MySQL client libraries and headers for installing "DBD::MySQL"
Open Terminal.
Type,
sudo mkdir /tmp/mysql-lib
cd /usr/local/mysql/lib
sudo cp *.a /tmp/mysql-lib
Now we made a directory and copied the needed files of mysql for installing "DBD::MySQL".
Let's install "DBD::MySQL".
Open your Terminal !
Type,
cd Desktop/DBD-mysql-4.008
Lines wrapping without line spacing are a single command.
Type as one line,
perl Makefile.PL --libs="-L/tmp/mysql-lib -lmysqlclient" --mysql_config=/usr/local/mysql/bin/mysql_config --testhost=localhost -testuser=XXX -testpassword=XXXXX
We must prepare the line ( --testhost=localhost -testuser=XXX -testpassword=XXXXX) for "make test", so "XXX" is your user name and "XXXXX" is your password of your "MySQL".
And type,
make
make test
sudo make install
That's all!

6. Installing ImageMagick on Mac OS X (Server) 10.5 Leopard
Download "ImageMagick 6.4.3" from ImageMagick download link ,and unzip the file to your Desktop.
Open Terminal.
Type step by step,
cd Desktop/ImageMagick-6.4.3
./configure
make
make test
sudo make install
We want to use "PerlMagick" for "MovableType",
so,continue to type,
cd PerlMagick
perl Makefile.PL
make
sudo make install

"./configure" and "make" needs VERY LONG TIME, so you should open your "iTunes" and play "Bon Jovi", while compiling.

This ain't a song for the broken-hearted
No silent prayer for the faith-departed

I ain't gonna live forever
I just want to live while I'm alive
My heart is like an open highway
Like Frankie said "I did it my way"

Great! "It's my life".

Now, "ImageMagick" and "PerlMagick" were installed for "MovableType".

That's all. "It's my work"

この記事について

この記事は著者が2008年11月 1日に書いたものです。

コメントおよびツッコミ大歓迎です。
すべてのコメントに目をとおさせていただいておりますが、そのうちのいくつかを選んで公開しておりますので、ご了承いただけたら幸いです。

この記事は "マックの道具箱" カテゴリ内の記事です。

カテゴリ内の前の記事は
Mac OS X 10.5 と ImageMagick」です。

カテゴリ内の次の記事は
Mac OS X 10.5 と MovableType4」です。

最近の記事はメインページで見られます。過去に書かれた記事はアーカイブで見られます。著者自身の撮影した写真は、写真集でご覧になれます。

Made on a Mac