1cookie
October 29th, 2012, 08:57 AM
hi
I'm trying to install DBD::mysql - Perl5 Database Interface driver for the MySQL database.
In other words: DBD::mysql is an interface between the Perl programming language and MySQL - from Google.
cpan[2]> install DBD:mysql
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
Checksum for /home/cookie/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz ok
Scanning cache /home/cookie/.cpan/build for sizes
.................................................. ..........................DONE
CPAN.pm: Building C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
PLEASE NOTE:
For 'make test' to run properly, you must ensure that the
database user 'cookie' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.
mysql> grant all privileges on test.* to 'cookie'@'localhost' identified by 's3kr1t';
You can also optionally set the user to run 'make test' with:
perl Makefile.PL --testuser=username
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
embedded (mysql_config) =
ldflags (mysql_config) =
libs (mysql_config) = -L/usr/lib -lmysqlclient -lpthread -lm -lrt -ldl
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (guessed ) = cookie
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Checking if your kit is complete...
Looks good
Using DBI 1.622 (for perl 5.014002 on i686-linux-gnu-thread-multi-64int) installed in /usr/lib/perl5/auto/DBI/
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/lib/perl5/auto/DBI -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"4.022\" -DXS_VERSION=\"4.022\" -fPIC "-I/usr/lib/perl/5.14/CORE" dbdimp.c
In file included from dbdimp.c:20:0:
dbdimp.h:23:49: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [dbdimp.o] Error 1
CAPTTOFU/DBD-mysql-4.022.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
CAPTTOFU/DBD-mysql-4.022.tar.gz : make NO
cpan[3]>
Done:
mysql> grant all privileges on test.* to 'cookie'@'localhost' identified by 's3kr1t';
cd /usr/include/mysql/mysql.h
no such file or directory
I downloaded MySQL-devel-5.5.28-1.linux2.6.i386.rpm from MySQL
locate mysql.h
/home/cookie/Downloads/usr/include/mysql/mysql.h
From the above then the error reports
dbdimp.h:23:49: fatal error: mysql.h: No such file or directory
Can I use a symlink (from my ~/Downloads dir) or something? Which path do I use?
which mysql
/usr/bin/mysql
Do I point it here?
I'm trying to install DBD::mysql - Perl5 Database Interface driver for the MySQL database.
In other words: DBD::mysql is an interface between the Perl programming language and MySQL - from Google.
cpan[2]> install DBD:mysql
Running install for module 'DBD::mysql'
Running make for C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
Checksum for /home/cookie/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz ok
Scanning cache /home/cookie/.cpan/build for sizes
.................................................. ..........................DONE
CPAN.pm: Building C/CA/CAPTTOFU/DBD-mysql-4.022.tar.gz
PLEASE NOTE:
For 'make test' to run properly, you must ensure that the
database user 'cookie' can connect to your MySQL server
and has the proper privileges that these tests require such
as 'drop table', 'create table', 'drop procedure', 'create procedure'
as well as others.
mysql> grant all privileges on test.* to 'cookie'@'localhost' identified by 's3kr1t';
You can also optionally set the user to run 'make test' with:
perl Makefile.PL --testuser=username
I will use the following settings for compiling and testing:
cflags (mysql_config) = -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1
embedded (mysql_config) =
ldflags (mysql_config) =
libs (mysql_config) = -L/usr/lib -lmysqlclient -lpthread -lm -lrt -ldl
mysql_config (guessed ) = mysql_config
nocatchstderr (default ) = 0
nofoundrows (default ) = 0
ssl (guessed ) = 0
testdb (default ) = test
testhost (default ) =
testpassword (default ) =
testsocket (default ) =
testuser (guessed ) = cookie
To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.
Checking if your kit is complete...
Looks good
Using DBI 1.622 (for perl 5.014002 on i686-linux-gnu-thread-multi-64int) installed in /usr/lib/perl5/auto/DBI/
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/lib/perl5/auto/DBI -I/usr/include/mysql -g -pipe -m32 -fPIC -g -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing -DMY_PTHREAD_FASTMUTEX=1 -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"4.022\" -DXS_VERSION=\"4.022\" -fPIC "-I/usr/lib/perl/5.14/CORE" dbdimp.c
In file included from dbdimp.c:20:0:
dbdimp.h:23:49: fatal error: mysql.h: No such file or directory
compilation terminated.
make: *** [dbdimp.o] Error 1
CAPTTOFU/DBD-mysql-4.022.tar.gz
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
Failed during this command:
CAPTTOFU/DBD-mysql-4.022.tar.gz : make NO
cpan[3]>
Done:
mysql> grant all privileges on test.* to 'cookie'@'localhost' identified by 's3kr1t';
cd /usr/include/mysql/mysql.h
no such file or directory
I downloaded MySQL-devel-5.5.28-1.linux2.6.i386.rpm from MySQL
locate mysql.h
/home/cookie/Downloads/usr/include/mysql/mysql.h
From the above then the error reports
dbdimp.h:23:49: fatal error: mysql.h: No such file or directory
Can I use a symlink (from my ~/Downloads dir) or something? Which path do I use?
which mysql
/usr/bin/mysql
Do I point it here?