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

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.
  • Comment on Re^5: (Never Ending) Module Installation Issues

Replies are listed 'Best First'.
Re^6: (Never Ending) Module Installation Issues
by listanand (Sexton) on Jun 10, 2010 at 00:59 UTC
    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.

      You did use PREFIX=~ LIB=~/lib/perl5, right? It's normal to be in a "random" directory. It's actually the "arch" directory. A module (e.g. Foo::Bar) may install itself into
      $LIB/Foo/Bar.*
      and/or
      $LIB/$ARCH/Foo/Bar.*

      where $LIB is the value passed to LIB=, and $ARCH is some system-specific string.

      In DBD::mysql's case, most if not all the files will be installed in the arch dir.

      As long as PERL5LIB include $LIB, Perl will look into both directories.

      $ echo $PERL5LIB /home/ikegami/lib/perl5 $ perl -V ... @INC: /home/ikegami/lib/perl5/x86_64-linux-gnu-thread-multi /home/ikegami/lib/perl5 ...

      Don't move files around, you're introducing problems!

        I did specify PREFIX=~ but not LIB. Probably that's why..

        Are there any places where I could read up about module installation in detail? I seem to step into a land mine at every step :)