MySQL::Sandbox がうまくうごかないよーという時は libaio をイレるといいかも?

以下のようなエラーになってうまくうごかなかったので、libaio をいれた。

tokuhirom@www4071uf:~/tmp/20120709$ make_replication_sandbox  ~/mysql/mysql-5.5.25a-linux2.6-x86_64.tar.gz   
installing and starting master                                                                               
Use of uninitialized value $ENV{"SANDBOX_BINARY"} in concatenation (.) or string at /usr/local/perl/latest/bi
n//make_sandbox line 125.                                                                                    
                                                                                                             
                                                                                                             
                                                                                                             
/home/tokuhirom/mysql/5.5.25/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open share
d object file: No such file or directory                                                                     
error while creating grant tables                                                                            
Installing MySQL system tables...                                                                            
                                                                                                             
Installation of system tables failed!  Examine the logs in                                                   
/home/tokuhirom/sandboxes/rsandbox_mysql-5_5_25/master/data for more information.                            
                                                                                                             
You can try to start the mysqld daemon with:                                                                 
                                                                                                             
    shell> /home/tokuhirom/mysql/5.5.25/bin/mysqld --skip-grant &                                            
                                                                                                             
and use the command line tool /home/tokuhirom/mysql/5.5.25/bin/mysql                                         
to connect to the mysql database and look at the grant tables:                                               
                                                                                                             
    shell> /home/tokuhirom/mysql/5.5.25/bin/mysql -u root mysql                                              
    mysql> show tables                                                                                       
                                                                                                             
Try 'mysqld --help' if you have problems with paths.  Using --log                                            
gives you a log in /home/tokuhirom/sandboxes/rsandbox_mysql-5_5_25/master/data that may be helpful.          
                                                                                                             
Please consult the MySQL manual section                                                                      
'Problems running mysql_install_db', and the manual section that                                             
describes problems on your OS.  Another information source are the                                           
MySQL email archives available at http://lists.mysql.com/.                                                   
                                                                                                             
Please check all of the above before mailing us!  And remember, if                                           
you do mail us, you MUST use the /home/tokuhirom/mysql/5.5.25/scripts/mysqlbug script!                       
                                                                                                             
                                                                                                             
error installing the master                                                                                  
                                                                                                             
(256 )                                                                                                       

↓そこで華麗に!

sudo aptitude install libaio-dev libaio1

Published: 2012-07-09(Mon) 04:38