Добрый день, пробую установить старое апи для работы с Mysql, но в результате получаю ошибки:
Checking if your kit is complete...
Looks good
Unrecognized argument in LIBS ignored: '-pthread'
Using DBI 1.628 (for perl 5.014004 on amd64-freebsd-thread-multi) installed in /usr/local/lib/perl5/site_perl/5.14/mach/auto/DBI/
Generating a GNU-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
cp lib/DBD/mysql/GetInfo.pm blib/lib/DBD/mysql/GetInfo.pm
cp lib/DBD/mysql.pm blib/lib/DBD/mysql.pm
cp lib/Mysql.pm blib/lib/Mysql.pm
cp lib/DBD/mysql/INSTALL.pod blib/lib/DBD/mysql/INSTALL.pod
cp lib/Mysql/Statement.pm blib/lib/Mysql/Statement.pm
cp lib/Bundle/DBD/mysql.pm blib/lib/Bundle/DBD/mysql.pm
cc -c -I/usr/local/lib/perl5/site_perl/5.14/mach/auto/DBI -I/usr/local/include/mysql -pipe -fno-strict-aliasing -g -DNDEBUG -DDBD_MYSQL_INSERT_ID_IS_GOOD -g -DAPPLLIB_EXP="/usr/local/lib/perl5/5.14/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -O2 -pipe -fno-strict-aliasing -DVERSION=\"3.0008\" -DXS_VERSION=\"3.0008\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.14/mach/CORE" dbdimp.c
dbdimp.c: In function 'mysql_dr_connect':
dbdimp.c:1293: error: 'sv_yes' undeclared (first use in this function)
dbdimp.c:1293: error: (Each undeclared identifier is reported only once
dbdimp.c:1293: error: for each function it appears in.)
dbdimp.c: In function 'dbd_discon_all':
dbdimp.c:1758: error: 'dirty' undeclared (first use in this function)
dbdimp.c:1766: error: 'perl_destruct_level' undeclared (first use in this function)
dbdimp.c: In function 'mysql_db_FETCH_attrib':
dbdimp.c:1960: error: 'sv_yes' undeclared (first use in this function)
dbdimp.c:2019: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c: In function 'mysql_st_FETCH_internal':
dbdimp.c:3404: error: 'sv_undef' undeclared (first use in this function)
dbdimp.c: In function 'mysql_db_type_info_all':
dbdimp.c:3903: error: 'sv_undef' undeclared (first use in this function)
*** [dbdimp.o] Error code 1Stop in /root/.cpan/build/DBD-mysql-3.0008-dtEAmi.
CAPTTOFU/DBD-mysql-3.0008.tar.gz
/usr/bin/make -- NOT OK
'YAML' not installed, will not store persistent state
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
ставлю через: cpan install Mysql
перехать на DBI не смогу, так как плоховато знаю perl, а судя по количеству запросов (метод query) их слишком много!
почему именно его ставлю, пробую запустить перловский скрипт, получаю следующее:
Can't locate Mysql.pm in @INC (@INC contains: /usr/local/lib/perl5/5.14/BSDPAN /usr/local/lib/perl5/site_perl/5.14/mach /usr/local/lib/perl5/site_perl/5.14 /usr/local/lib/perl5/5.14/mach /usr/local/lib/perl5/5.14 .) at admin/Db_library_SM.pm line 39.
BEGIN failed--compilation aborted at admin/Db_library_SM.pm line 39.
Compilation failed in require at show.pl line 9.
BEGIN failed--compilation aborted at show.pl line 9.