in reply to Re^2: (Never Ending) Module Installation Issues
in thread (Never Ending) Module Installation Issues

The INSTALLBASE wasn't used if you got that error. Maybe you're using an old version of the build tools. (I thought that gave a warning?) Try

o conf makepl_arg 'PREFIX=~ LIB=~/lib/perl5'

Replies are listed 'Best First'.
Re^4: (Never Ending) Module Installation Issues
by listanand (Sexton) on Jun 09, 2010 at 18:53 UTC
    I set the INSTALLBASE, LIB and PREFIX, and after that tried to install Bundle::DBD::mysql from CPAN shell. What I noticed is that it is trying to connect to mysql using my username and password. It obviously does not have my password, and so is trying to login using blank password.

    I then try to install it manually using:

    perl Makefile.PL --testuser=andy --testpassword=password PREFIX=/home/ +andy
    After that it said:

    Note (probably harmless): No library found for -lmysqlclient

    After that when I try to "make" it, I get plenty of errors, first few lines of which are:

    dbdimp.h:22:49: error: mysql.h: No such file or directory + + dbdimp.h:23:45: error: mysqld_error.h: No such file or directory + + dbdimp.h:25:49: error: errmsg.h: No such file or directory
    Any suggestions?

    Thanks.

    Andy

      Remember when I said in the CB you needed to install the MySQL client developer's package if you're installing the client from your distro's repo? Well, that hasn't changed.
        Well actually I just managed to resolve this issue.

        I do already have MySQL installed. I had to specify some flags while doing running the Makefile.PL, to specify the location of some MySQL header files that it was complaining about. I obtained the value of the flags by using the mysql_config.

        After that I did make and make install and everything went well.

        One thing again though. DBI once again got installed in some random directory inside ~/perl5/lib/perl5 and I had to manually drag it to ~/perl5/lib/perl5. I had in fact specified PREFIX also while running the Makefile.PL and it seems to have only partly heeded to it (it went inside ~/perl5/lib/perl5). Any ideas what's going on?

        Thanks so much for your help.