Category: ‘MySQL’

CentOS5.8にMySQL5.5をインストールする

2012年11月9日 Posted by PURGE

久しぶりにサーバ構築することとなり、CentOS5.8にMySQL5.5をインストールしようとする。

以前の記事から、既に1年以上が経って、もはやその通りに動作していないことに気付く。

再度覚え書きとする。

■yum レポジトリの追加

wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1.0-10.ius.el5.noarch.rpm
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-5-4.noarch.rpm

rpm -Uvh epel-release-5-4.noarch.rpm
警告: epel-release-5-4.noarch.rpm: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
準備中...                ########################################### [100%]
   1:epel-release           ########################################### [100%]
rpm -Uvh ius-release-1.0-10.ius.el5.noarch.rpm
警告: ius-release-1.0-10.ius.el5.noarch.rpm: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
準備中...                ########################################### [100%]
   1:ius-release            ########################################### [100%]

■ius,epelからのインストール。

yum --enablerepo=ius,epel install mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
epel                                                                          | 3.7 kB     00:00
epel/primary_db                                                               | 3.8 MB     00:00
ius                                                                           | 2.2 kB     00:00
ius/primary_db                                                                | 166 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i386 0:5.0.95-1.el5_7.1 set to be updated
---> Package mysql.x86_64 0:5.0.95-1.el5_7.1 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package             Arch                 Version                        Repository             Size
=====================================================================================================
Installing:
 mysql               i386                 5.0.95-1.el5_7.1               updates               4.9 M
 mysql               x86_64               5.0.95-1.el5_7.1               updates               4.9 M

Transaction Summary
=====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 9.8 M

残念ながら、5.0のままなので、No!!

Is this ok [y/N]: N
Exiting on user Command
Complete!

■再度バージョン指定して実行。

yum --enablerepo=ius,epel install mysql55
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55.x86_64 0:5.5.28-2.ius.el5 set to be updated
--> Processing Dependency: mysql55-libs = 5.5.28-2.ius.el5 for package: mysql55
--> Processing Dependency: mysqlclient15 for package: mysql55
--> Running transaction check
---> Package mysql55-libs.x86_64 0:5.5.28-2.ius.el5 set to be updated
---> Package mysqlclient15.x86_64 0:5.0.92-3.ius.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package                    Arch                Version                       Repository        Size
=====================================================================================================
Installing:
 mysql55                    x86_64              5.5.28-2.ius.el5              ius               11 M
Installing for dependencies:
 mysql55-libs               x86_64              5.5.28-2.ius.el5              ius              1.1 M
 mysqlclient15              x86_64              5.0.92-3.ius.el5              ius              1.7 M

Transaction Summary
=====================================================================================================
Install       3 Package(s)
Upgrade       0 Package(s)

Total download size: 14 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): mysql55-libs-5.5.28-2.ius.el5.x86_64.rpm                               | 1.1 MB     00:01
(2/3): mysqlclient15-5.0.92-3.ius.el5.x86_64.rpm                              | 1.7 MB     00:00
(3/3): mysql55-5.5.28-2.ius.el5.x86_64.rpm                                    |  11 MB     00:02
-----------------------------------------------------------------------------------------------------
Total                                                                2.4 MB/s |  14 MB     00:05
警告: rpmts_HdrFromFdno: ヘッダ V4 DSA signature: NOKEY, key ID 9cd4953f
ius/gpgkey                                                                    | 1.3 kB     00:00
Importing GPG key 0x9CD4953F "IUS Community Project <coredev@iuscommunity.org>" from /etc/pki/rpm-gpg/IUS-COMMUNITY-GPG-KEY
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : mysqlclient15                                                                 1/3
  Installing     : mysql55-libs                                                                  2/3
  Installing     : mysql55                                                                       3/3

Installed:
  mysql55.x86_64 0:5.5.28-2.ius.el5

Dependency Installed:
  mysql55-libs.x86_64 0:5.5.28-2.ius.el5           mysqlclient15.x86_64 0:5.0.92-3.ius.el5

Complete!

mysql-server55 が足りなかったようだ。

yum --enablerepo=ius,epel install mysql55-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.oss.eznetsols.org
 * epel: ftp.iij.ad.jp
 * extras: ftp.oss.eznetsols.org
 * ius: archive.linux.duke.edu
 * updates: ftp.oss.eznetsols.org
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql55-server.x86_64 0:5.5.28-2.ius.el5 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql55-server
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:3.0007-2.el5 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================================
 Package                    Arch               Version                        Repository        Size
=====================================================================================================
Installing:
 mysql55-server             x86_64             5.5.28-2.ius.el5               ius               12 M
Installing for dependencies:
 perl-DBD-MySQL             x86_64             3.0007-2.el5                   base             148 k

Transaction Summary
=====================================================================================================
Install       2 Package(s)
Upgrade       0 Package(s)

Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): perl-DBD-MySQL-3.0007-2.el5.x86_64.rpm                                 | 148 kB     00:00
(2/2): mysql55-server-5.5.28-2.ius.el5.x86_64.rpm                             |  12 MB     00:03
-----------------------------------------------------------------------------------------------------
Total                                                                2.9 MB/s |  12 MB     00:04
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : perl-DBD-MySQL                                                                1/2
  Installing     : mysql55-server                                                                2/2

Installed:
  mysql55-server.x86_64 0:5.5.28-2.ius.el5

Dependency Installed:
  perl-DBD-MySQL.x86_64 0:3.0007-2.el5

Complete!

上手くいったようだ。結果として /usr/bin/以下にインストールされているようだ。

■MySQL Serverの起動

# /etc/rc.d/init.d/mysqld start
MySQL データベースを初期化中:  Installing MySQL system tables...
OK
Filling help tables...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:

/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h 127.0.0.1 password 'new-password'

Alternatively you can run:
/usr/bin/mysql_secure_installation

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the manual for more instructions.

You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &

You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl

Please report any problems with the /usr/bin/mysqlbug script!

                                                           [  OK  ]
mysqld を起動中:                                           [  OK  ]

■MySQL Serverの自動起動設定

chkconfig mysqld on
chkconfig --list mysqld
mysqld   0:off   1:off   2:on    3:on    4:on    5:on    6:off

Spring Batch JobRepository使用時のシーケンスエラー

2012年10月23日 Posted by PURGE

MySQL では動作するのだが、Oracleに移行した途端にエラー。
シーケンスが無いとのこと。

どうやら、MySQLの場合は、下記をテーブルとして実装しても動作するのだが、Oracleだとシーケンスとして作成する必要があるようだ。

MySQLだと下記でも動作する。

CREATE TABLE BATCH_STEP_EXECUTION_SEQ (
	ID BIGINT NOT NULL
);

CREATE TABLE BATCH_JOB_EXECUTION_SEQ (
	ID BIGINT NOT NULL
);

CREATE TABLE BATCH_JOB_SEQ (
	ID BIGINT NOT NULL
);

INSERT INTO BATCH_STEP_EXECUTION_SEQ VALUES(0);
INSERT INTO BATCH_JOB_EXECUTION_SEQ VALUES(0);
INSERT INTO BATCH_JOB_SEQ VALUES(0);

Oracleでは、Tableではなく、Sequenceを定義。

CREATE SEQUENCE BATCH_STEP_EXECUTION_SEQ MAXVALUE 9223372036854775807 CYCLE;
CREATE SEQUENCE BATCH_JOB_EXECUTION_SEQ MAXVALUE 9223372036854775807 CYCLE;
CREATE SEQUENCE BATCH_JOB_SEQ MAXVALUE 9223372036854775807 CYCLE;

こちらを参考にした。

Please install the mysql adapter: `gem install activerecord-mysql-adapter`

2012年7月24日 Posted by PURGE

RedmineがRuby1.9では動作しなかったので、放っておいて早1年。やはり、Redmineは必要なので、Redmine2.0バージョンをインストールしてみることとした。

いろいろエラーに悩まされ、表題のエラー。

adapter を単純にmysql ⇒ mysql2 と書き直せばよい。

Gemfileの修正(ほぼコメントアウト)と、database.yml の修正で何とかなった。

herokuでMysqlを使う

2012年7月19日 Posted by PURGE

herokuでは、デフォルトのストレージとして、共有データベースというPostgreSQLのデータベースを5MB無料で用意している。

開発はMysqlを利用しているので、ぜひherokuでもMysqlを使用したい。そんな時は、herokuのAdd-onsの一つであるClearDBというアドオンを利用できる。これもまた5MBまで無償で利用できる。

ClearDBは、herokuのWeb画面からもアドオン追加できる。
設定方法は、サイト上のドキュメントを見れば記載されているが英語である。

とりあえず、手順の覚書。

まずはherokuログイン。

C:\HerokuTest>heroku login
Enter your Heroku credentials.
Email: xxxx@whoocus.com
Password (typing will be hidden):
Authentication successful.

grepで設定されているDATABASE_URLを調べてみる。
すると、現在のデータベースDATABASE_URL(PostgreSQL)とアドオンしたClLEARDB_DATABASE_URL(Mysql)と共有データベースSHARED_DATABASE_URL(PostgreSQL)のURLをが見ることができる。

C:\HerokuTest>heroku config | grep DATABASE_URL
CLEARDB_DATABASE_URL: mysql://xxxxx:xxxx@us-xx-east.cleardb.com/heroku_1234?reconnect=true
DATABASE_URL:postgres://xxx@xxx.compute-1.amazonaws.com/xxx
SHARED_DATABASE_URL:postgres://xxx:xxx@1234.comput
e-1.amazonaws.com/xxx

そこで、DATABASE_URLをClearDBのURLで書き換える。
気を付けるのは、URLの’mysql://’ → ‘mysql2://’ のように、対応しているgemのバージョンに合わせる。

C:\HerokuTest>heroku config:add DATABASE_URL='mysql2://xxxxx:xxxx@us-xx-east.cleardb.com/heroku_1234?reconnect=true'
Setting config vars and restarting heroku-test... done, v9
DATABASE_URL: mysql2://xxxxx:xxxx@us-xx-east.cleardb.com/heroku_1234?reconnect=true

そこで、herokuでDBのマイグレーション。

C:\HerokuTest>heroku run rake db:migrate
Running `rake db:migrate` attached to terminal... up, run.1

おそらく以上で、Mysqlを認識することでしょう。

Aptana Stadio 3 でのRails開発環境

2012年5月2日 Posted by PURGE

Railsの開発を、eclipse(Aptana Studio 3 plugin)上で環境を整えたい為、下記をインストールした。
前にも記述したが、Ruby 1.9.3 for Windowsで、デバッグ(ruby-debug19)がインストールがうまくできない。

WindowsXP SP3
eclipse3.7
Aptana Stadio 3
Ruby 1.9.2-p290
Rails 3.2.3
Mysql5.5

Railsのバージョンもどんどん上がって、とにかくバージョンの依存関係が面倒くさい。
とりあえず現時点での最新バージョンで動作するGemfileを記載する。

おそらく動作するはず。

source 'http://rubygems.org'

gem 'rails', '3.2.3'
gem 'railties', '3.2.3'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

gem 'mysql2', '0.3.10'
gem 'rake', '0.9.2.2'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'execjs'
  gem 'therubyracer', :platforms => :ruby
  gem 'sass-rails',   '~> 3.2.5'
  gem 'coffee-rails', '~> 3.2.2'
  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'twitter'
gem 'configatron'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', '0.8.2', :require => false
end

uninitialized constant Rake::DSL エラー

2011年11月28日 Posted by PURGE

C:project>rake db:migrate
(in C:/project)
rake aborted!
uninitialized constant Rake::DSL

どうやらrake のバージョンが良ろしくないらしい。
gem list rake でバージョンを調べる。

C:worksWhoocus_R>gem list rake
*** LOCAL GEMS ***
rake (0.9.2.2, 0.8.7)

で、プロジェクトのGemfile に下記を追記して、bundle install

gem "rake", "0.8.7"
C:project>bundle install
Fetching source index for http://rubygems.org/
You have requested:
  rake = 0.8.7
The bundle currently has rake locked at 0.9.2.2.
Try running `bundle update rake`

また怒られたので、bundle update rake

C:worksWhoocus_R>bundle update rake
Fetching source index for http://rubygems.org/
Using rake (0.8.7)
Using multi_json (1.0.3)
Using activesupport (3.1.3)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.3)
Using erubis (2.7.0)
Using rack (1.3.5)
Using rack-cache (1.1)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.3)
Using actionpack (3.1.3)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.3)
Using arel (2.2.1)
Using tzinfo (0.3.31)
Using activerecord (3.1.3)
Using activeresource (3.1.3)
Using ansi (1.4.1)
Using bundler (1.0.21)
Using coffee-script-source (1.1.3)
Using execjs (1.2.9)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.2)
Using rdoc (3.11)
Using thor (0.14.6)
Using railties (3.1.3)
Using coffee-rails (3.1.1)
Using jquery-rails (1.0.19)
Using mysql2 (0.3.10)
Using rails (3.1.3)
Using sass (3.1.10)
Using sass-rails (3.1.5)
Using turn (0.8.2)
Using uglifier (1.1.0)
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
C:project>rake db:migrate
==  CreateMembers: migrating ==================================================
-- create_table(:members)
   -> 0.3906s
==  CreateMembers: migrated (0.3906s) =========================================

うまく行ったようです。

gem install mysql2 でエラー on WindowsXP

2011年11月26日 Posted by PURGE

先日のMac版でのエラーと同様に、gem install mysql2 でエラー発生。
Mac版と同様の現象であると思ったのだが、どうやら原因が別のようだ。

そもそも、mysql5.0 で試したのだが、とりあえず、mysql5.5にアップグレード。
その間、mysql5.5のインストーラが .NetFrameWork4 以上でしか動作しないとか、WindowsXP SP3 上でしか動作しないとかで、OSレベルでアップグレード。

で、ようやくスタート地点に立てたのだが、gem install mysql2 がうまく行かない。

結論としては、オプション引数の書き方がよろしくなかったようだ。
引数を渡す場合は、シングルクウォートとダブルクウォートとエスケープ(円)とスラッシュ(/)を、正しく記述すること。

C:RailsTest>gem install mysql2 -v '0.3.10' -- --with-mysql-dir="C:/usr/local/mysql
5.5/MySQL Server 5.5" 
--with-mysql-include="C:/usr/local/mysql5.5/MySQL Server 5.5/inclu
de" 
--with-mysql-lib="C:/usr/local/mysql5.5/MySQL Server 5.5/lib"

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.10
1 gem installed
Installing ri documentation for mysql2-0.3.10...
Installing RDoc documentation for mysql2-0.3.10...

ちなみに、-v ‘0.3.10’ というバージョン指定しないと別のエラーになる。
原因はよく分からないのだが・・・。

gem install mysql2 でエラー on Mac

2011年11月23日 Posted by PURGE

gem install mysql2 でエラーが発生し、どうしてもインストールできない。エラーはどうやらインストールされている mysql のヘッダ等が読み込めないとのことなので、gem install オプションを付けた。
しかし、どうしてもうまくいかない。

$ gem install mysql2 -- --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib/ --with-mysqlclientlib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include/
Building native extensions.  This could take a while...
ERROR:  Error installing mysql2:
	ERROR: Failed to build gem native extension.

        /Users/username/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb --with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib/ --with-mysqlclientlib=/usr/local/mysql/lib --with-mysql-include=/usr/local/mysql/include/
checking for rb_thread_blocking_region()... yes
checking for rb_wait_for_single_fd()... no
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
creating Makefile

make
/usr/bin/gcc-4.2 -I. -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/x86_64-darwin10.8.0 -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/backward -I/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1 -I. -DHAVE_RB_THREAD_BLOCKING_REGION -DHAVE_MYSQL_H -DHAVE_ERRMSG_H -DHAVE_MYSQLD_ERROR_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -I/usr/local/mysql/include  -Os -g -fno-common -fno-strict-aliasing -arch i386 -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long  -fno-common -pipe -Wall -funroll-loops  -o client.o -c client.c
In file included from /Users/northvan/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby.h:32,
                 from ./mysql2_ext.h:8,
                 from client.c:1:
/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/ruby.h:108: error: size of array ‘ruby_check_sizeof_long’ is negative
/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/ruby.h:112: error: size of array ‘ruby_check_sizeof_voidp’ is negative
In file included from /Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/intern.h:29,
                 from /Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/ruby.h:1327,
                 from /Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby.h:32,
                 from ./mysql2_ext.h:8,
                 from client.c:1:
/Users/username/.rvm/rubies/ruby-1.9.2-p290/include/ruby-1.9.1/ruby/st.h:69: error: size of array ‘st_check_for_sizeof_st_index_t’ is negative
make: *** [client.o] Error 1


Gem files will remain installed in /Users/username/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.10 for inspection.
Results logged to /Users/username/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.10/ext/mysql2/gem_make.out

で3日はまったところで、下記の記事を発見。

http://www.mountposition.co.jp/blog/?p=210

mysql 32bit版から、64bit版へ再インストール。

gem install mysql2 が動きました。

$ gem install mysql2
Building native extensions.  This could take a while...
Successfully installed mysql2-0.3.10
1 gem installed
Installing ri documentation for mysql2-0.3.10...
Installing RDoc documentation for mysql2-0.3.10...

でも、32bit版PCで、64bit版のmysqlが動くのかいな?という感じです。狐につままれた感じ。

/var/mysql/mysql.sock 見つからないエラー

2011年6月16日 Posted by PURGE

phpでPDOを使用するときに出たエラー。

Warning: PDO::__construct(): [2002] No such file or directory 
(trying to connect via unix:///var/mysql/mysql.sock) 
in /Users/xxxx/・・・/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Connection.php on line 470

読んでの如く、パスに mysql.sock が無いというエラー。

php.ini の設定だろうという事で下記のように変更。
MySQLのインストールは自分で行った為、下記のパスに存在していた。
わからない場合は、my.cnf にmysql.sockのロケーションが設定されているようだ。

;pdo_mysql.default_socket=/var/mysql/mysql.sock
    ↓
pdo_mysql.default_socket=/tmp/mysql.sock

php.ini を変更したので、Webサーバを再起動して解決。

php5.3とMySQL5.5 のインストール

2011年6月1日 Posted by PURGE

CentOS 5.5 に最新(2011/05時点)のphp5.3とMySQL5.5をインストールする方法を下記に記す。
yumリポジトリの追加をOSアーキテクチャに合わせないと、ライブラリの依存関係でインストールできても、MySQLが起動しないというような問題にかなりハマった。

■yum レポジトリの追加(CentOS x86_64 の場合)

rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

おそらく下記のライブラリの引数設定で全てが上手くいくはず。
mysql-devel.x86_64の指定がないと、i386がデフォルトインストールとなってしまい上手くいかない。

■MySQL & php のyumでのインストール

yum --enablerepo=remi,epel install php php-pear php-devel php-pdo php-xml php-mbstring php-process php-pecl-apc php-mysql mysql-server mysql-devel.x86_64 mysql-php readline-devel curl-devel httpd-devel