Advertisement
Guest User

Untitled

a guest
Nov 18th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. rpm -i MySQL-server-5.5.14-1.linux2.6.x86_64.rpm
  2. rpm -i MySQL-client-5.5.14-1.linux2.6.x86_64.rpm
  3. rpm -i MySQL-devel-5.5.14-1.linux2.6.x86_64.rpm
  4.  
  5. perl: symbol lookup error: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/auto/DBD/mysql/mysql.so: undefined symbol: mysql_init
  6.  
  7. use DBI;
  8.  
  9. $dsn="db";
  10. $host="my.host.ip";
  11. $user="anonymous";
  12. $password="";
  13. # Connect to the database.
  14. $dbh= DBI->connect("DBI:mysql:host=$host;database=$dsn",$user, $password,{'RaiseError' => 1});
  15.  
  16. $ make test
  17. PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
  18. t/00base....................ok 1/6
  19. # Failed test 'use DBD::mysql;'
  20. # in t/00base.t at line 21.
  21. # Tried to use 'DBD::mysql'.
  22. # Error: Can't load '/usr/local/package/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.so' for module DBD::mysql: /usr/local/package/DBD-mysql-4.019/blib/arch/auto/DBD/mysql/mysql.so: undefined symbol: mysql_get_server_version at /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi/DynaLoader.pm line 230.
  23. # at (eval 6) line 2
  24. # Compilation failed in require at (eval 6) line 2.
  25. # BEGIN failed--compilation aborted at t/00base.t line 21.
  26. t/00base....................NOK 2FAILED--Further testing stopped: Unable to load DBD::mysql
  27. make: *** [test_dynamic] Error 9
  28.  
  29. mkdir /tmp/mysql-static
  30. cp /usr/lib64/mysql/*.a /tmp/mysql-static
  31. perl Makefile.PL --libs="-L/tmp/mysql-static -lmysqlclient"
  32. make
  33. make test
  34. make install
  35. rm -rf /tmp/mysql-static
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement