Форум русскоязычного сообщества Ubuntu


Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?
Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!

Автор Тема: Установка Mysql модуля для Perl  (Прочитано 1056 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн CraZZZy

  • Автор темы
  • Любитель
  • *
  • Сообщений: 75
    • Просмотр профиля
Установка Mysql модуля для Perl
« : 08 Сентября 2014, 01:32:31 »
Ставлю через CPAN модуль для работу Perl с Mysql (сам Mysql-сервер уже стоит). Выводит кучу ошибок, связанных с dbdimp.c:

cpan[1]> install Mysql
Reading '/home/user/.cpan/Metadata'
  Database was generated on Sun, 07 Sep 2014 16:29:02 GMT
Running install for module 'Mysql'
Checksum for /home/user/.cpan/sources/authors/id/C/CA/CAPTTOFU/DBD-mysql-3.0008.tar.gz ok
Scanning cache /home/user/.cpan/build for sizes
............................................................................DONE
Configuring C/CA/CAPTTOFU/DBD-mysql-3.0008.tar.gz with Makefile.PL
I will use the following settings for compiling and testing:

  cflags        (mysql_config) = -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing  -g
  embedded      (mysql_config) =
  libs          (mysql_config) = -L/usr/lib/x86_64-linux-gnu -lmysqlclient -lpthread -lz -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      (default     ) =

To change these settings, see 'perl Makefile.PL --help' and
'perldoc INSTALL'.

Checking if your kit is complete...
Looks good
Multiple copies of Driver.xst found in: /usr/local/lib/perl/5.14.2/auto/DBI/ /usr/lib/perl5/auto/DBI/ at Makefile.PL line 727
Using DBI 1.631 (for perl 5.014002 on x86_64-linux-gnu-thread-multi) installed in /usr/local/lib/perl/5.14.2/auto/DBI/
Generating a Unix-style Makefile
Writing Makefile for DBD::mysql
Writing MYMETA.yml and MYMETA.json
  CAPTTOFU/DBD-mysql-3.0008.tar.gz
  /usr/bin/perl Makefile.PL INSTALLDIRS=site -- OK
Running make for C/CA/CAPTTOFU/DBD-mysql-3.0008.tar.gz
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
Running Mkbootstrap for DBD::mysql ()
chmod 644 mysql.bs
cc -c  -I/usr/local/lib/perl/5.14.2/auto/DBI -I/usr/include/mysql -DBIG_JOINS=1  -fno-strict-aliasing  -g -DDBD_MYSQL_INSERT_ID_IS_GOOD -g  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g   -DVERSION=\"3.0008\" -DXS_VERSION=\"3.0008\" -fPIC "-I/usr/lib/perl/5.14/CORE"   dbdimp.c
dbdimp.c: In function ‘parse_params’:
dbdimp.c:521:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘char *’ [-Wformat]
dbdimp.c:521:21: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘char *’ [-Wformat]
dbdimp.c: In function ‘mysql_dr_connect’:
dbdimp.c:1293:7: error: ‘sv_yes’ undeclared (first use in this function)
dbdimp.c:1293:7: note: each undeclared identifier is reported only once for each function it appears in
dbdimp.c: In function ‘dbd_discon_all’:
dbdimp.c:1758:10: error: ‘dirty’ undeclared (first use in this function)
dbdimp.c:1766:5: error: ‘perl_destruct_level’ undeclared (first use in this function)
dbdimp.c: In function ‘mysql_db_FETCH_attrib’:
dbdimp.c:1960:17: error: ‘sv_yes’ undeclared (first use in this function)
dbdimp.c:2019:60: error: ‘sv_undef’ undeclared (first use in this function)
dbdimp.c: In function ‘mysql_describe’:
dbdimp.c:2762:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘long unsigned int’ [-Wformat]
dbdimp.c:2762:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 6 has type ‘long unsigned int’ [-Wformat]
dbdimp.c: In function ‘mysql_st_fetch’:
dbdimp.c:2958:13: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat]
dbdimp.c: In function ‘mysql_st_FETCH_internal’:
dbdimp.c:3404:14: error: ‘sv_undef’ undeclared (first use in this function)
dbdimp.c: In function ‘mysql_st_FETCH_attrib’:
dbdimp.c:3525:11: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘my_ulonglong’ [-Wformat]
dbdimp.c: In function ‘mysql_bind_ph’:
dbdimp.c:3692:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘IV’ [-Wformat]
dbdimp.c:3710:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘IV’ [-Wformat]
dbdimp.c:3737:25: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘IV’ [-Wformat]
dbdimp.c: In function ‘mysql_db_type_info_all’:
dbdimp.c:3903:5: error: ‘sv_undef’ undeclared (first use in this function)
make: *** [dbdimp.o] Error 1
  CAPTTOFU/DBD-mysql-3.0008.tar.gz
  make -- NOT OK
Failed during this command:
 CAPTTOFU/DBD-mysql-3.0008.tar.gz             : make NO

                                                                                cpan[2]>
sudo apt-get remove windows && sudo apt-get install linux

 

Страница сгенерирована за 0.022 секунд. Запросов: 22.