Two things in this message: (1) how I solved a problem with 'make install' for DBI - is there a better way to do this? (2) a problem with installing DBD-mysql - I need some help with this one.
1. INSTALLING DBI I am installing DBI on a "virtual server". This means that I share the server with other users. I need to install DBI in my own virtual directory. It is offset from the root by /usr/home/$my-user-name - under this path, I have everything that you would normally have under root, for example my perl is installed at /usr/home/$my-user-name/usr/local/lib/perl5. Don't ask me why I am doig it this way, this is the way that verio sets it up for "virtual hostig" customers. By the way I am on FreeBSD 4.4, and perl, v5.6.1 built for i386-freebsd 'perl Makefile.PL' ran ok, 'make' ran ok, 'make test' ran more or less ok, but there was a problem with 'make install.' The Makefile was trying to put everything at the root level. I couldn't find a way to specify the relative location other than to manually edit Makefile and change all the path specifications in the file. When I did this 'make install' worked and DBI installed into my own private directory. Is there a cleaner way to do this, i.e. specifying the relative path as a flag at the 'perl Makefile' comand? I know this might seem obvious, but I ahve not been able to find anything on this... 2. INSTALLING DBD-mysql The real big problem comes when I try to install DBD-mysql. First, the 'make Makefile.PL' couldn't find mysql_config, so I edited the Makefile.PL to specify the absolute path to mysql_config. After I do this, 'make Makefile.PL' rpoduces the error below - basically you'll see that the Makefile.PL is not able to find the installed DBI modules in my private directory - it is looking for them starting at the top-level root path. How do I get around this? Also, how do I make sure that perl scripts find my private modules later when I run scripts with 'use DBI;' thanks in advance > perl Makefile.PL I will use the following settings for compiling and testing: cflags (mysql_config) = -I'/usr/home/adventu9/usr/local/mysql/include/m ysql' libs (mysql_config) = -L/usr/home/adventu9/usr/local/mysql/lib/mysql -lmysqlclient -lz -lcrypt -lm nocatchstderr (default ) = 0 ssl (guessed ) = 0 testdb (default ) = test testhost (default ) = testpassword (default ) = testuser (default ) = To change these settings, see 'perl Makefile.PL --help' and 'perldoc INSTALL'. Checking if your kit is complete... Looks good Warning: prerequisite DBI failed to load: Can't locate DBI.pm in @INC (@INC cont ains: /usr/local/lib/perl5/5.6.1/i386-freebsd /usr/local/lib/perl5/5.6.1 /usr/lo cal/lib/perl5/site_perl/5.6.1/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl /5.005 /usr/local/lib/perl5/site_perl .) at (eval 4) line 3. Can't locate DBI/DBD.pm in @INC (@INC contains: /usr/local/lib/perl5/5.6.1/i386- freebsd /usr/local/lib/perl5/5.6.1 /usr/local/lib/perl5/site_perl/5.6.1/i386-fre ebsd /usr/local/lib/perl5/site_perl/5.6.1 /usr/local/lib/perl5/site_perl/5.005/i 386-freebsd /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl .) at Makefile.PL line 286. >
