Skip to content

Instantly share code, notes, and snippets.

@namakesugi
Created December 31, 2011 17:39
Show Gist options
  • Save namakesugi/1544677 to your computer and use it in GitHub Desktop.
Save namakesugi/1544677 to your computer and use it in GitHub Desktop.
STF `cpanm --installdeps .` failed on perl 5.14
# perlbrew install perl-5.14.2
Fetching perl-5.14.2 as /root/perl5/perlbrew/dists/perl-5.14.2.tar.gz
Installing /root/perl5/perlbrew/build/perl-5.14.2 into ~/perl5/perlbrew/perls/perl-5.14.2
This could take a while. You can run the following command on another shell to track the status:
tail -f ~/perl5/perlbrew/build.log
Installed /root/perl5/perlbrew/build/perl-5.14.2 as perl-5.14.2 successfully. Run the following command to switch to it.
perlbrew switch perl-5.14.2
# perlbrew use perl-5.14.2
# perlbrew install-cpanm
/root/perl5/perlbrew/bin/cpanm already exists, are you sure to override ? [y/N] [N] y
cpanm is installed to
/root/perl5/perlbrew/bin/cpanm
# cpanm --installdeps .
...
--> Working on Test::mysqld
Fetching http://search.cpan.org/CPAN/authors/id/K/KA/KAZUHO/Test-mysqld-0.14.tar.gz ... OK
Configuring Test-mysqld-0.14 ... OK
==> Found dependencies: DBD::mysql, DBI
--> Working on DBD::mysql
Fetching http://search.cpan.org/CPAN/authors/id/C/CA/CAPTTOFU/DBD-mysql-4.020.tar.gz ... OK
==> Found dependencies: DBI
--> Working on DBI
Fetching http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.616.tar.gz ... OK
Configuring DBI-1.616 ... OK
Building and testing DBI-1.616 ... OK
Successfully installed DBI-1.616
Configuring DBD-mysql-4.020 ... OK
Building and testing DBD-mysql-4.020 ... FAIL
! Installing DBD::mysql failed. See /root/.cpanm/build.log for details.
! Bailing out the installation for Test-mysqld-0.14. Retry with --prompt or --force.
...
! Bailing out the installation for STF-1.00. Retry with --prompt or --force.
@namakesugi
Copy link
Author

DBD-mysql-4.018/mysql.xs

- using_322=is_prefix(mysql_get_server_info(imp_dbh->pmysql),"3.22");
+ using_322=((strncmp(mysql_get_server_info(imp_dbh->pmysql),"3.22",4) == 0) ? 1 : 0 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment