Re: Problem with Mysql - Perl 5.8
Joey, thanks for the input, I went ahead and restored from backup and everything is back to normal. I guess I jumped the gun installing that, oh well that's what we have backups for :). I guess I need to learn more about how to install Perl 5.8 in it's own directories, but at this point I am still really new to how Perl works on the system. I will take your advice and wait for the stable package. With all the Deb packages that depend on Perl, I am not too sure about putting a unstable package on the system at this point, since I would have to upgrade half the system to unstable to get just the perl unstable in there. Well, it works and I see no need for 5.8 other than my Perl Programmer friends tell me you got to have it. Thanks -DU Joey Hess wrote: Debian User wrote: Need some advice here, I installed Perl 5.8.0 on my Debian box, on top of the Debian Perl package 5.6.1 Perl seems to work, but I tried to install the DBD::mysql bundle and am running into errors telling me mysql_config cannot be found. It's really not a good idea to try to build your own perl if you're going to put it in PATH like this. If you do it, you have to be very careful to match the @INC of debian's perl, which is different from default. Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Feb 17 2003 12:38:57 @INC: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl . If your @INC doesn't match, you're SOL. In particular, debian packages will often install files into /usr/share/perl5, which is a debian-specific directory. If you don't know how to build a perl with a proper @INC, you should use the precompiled packages (which are available in unstable for perl 5.8.0). Even if you get your @INC right, you will run into all kind of trouble with a locally built perl since binary perl modules shipped in packages will not work on it, and you have essentially bypassed the whole dependency system there. I'm not too sure what to do now, did I mess up in trying to install a Non Debian package on top of the system? You should have at least told it to install in /usr/local/bin.. Should I just restore from backup and go back to 5.6.1? Or should I just attempt the Mysql install from Source? Your easiest fix may be to rename your local perl build to /usr/local/bin/ perl-5.8 and use that in whatever programs you want to use it, leaving /usr/bin/perl for the debian perl. Which I think you will have to tell apt to reinstall to get back. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Problem with Mysql - Perl 5.8
Debian User wrote: > Need some advice here, I installed Perl 5.8.0 on my Debian box, on top > of the Debian Perl package 5.6.1 > > Perl seems to work, but I tried to install the DBD::mysql bundle and am > running into errors telling me mysql_config cannot be found. It's really not a good idea to try to build your own perl if you're going to put it in PATH like this. If you do it, you have to be very careful to match the @INC of debian's perl, which is different from default. Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT Built under linux Compiled at Feb 17 2003 12:38:57 @INC: /etc/perl /usr/local/lib/perl/5.8.0 /usr/local/share/perl/5.8.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8.0 /usr/share/perl/5.8.0 /usr/local/lib/site_perl . If your @INC doesn't match, you're SOL. In particular, debian packages will often install files into /usr/share/perl5, which is a debian-specific directory. If you don't know how to build a perl with a proper @INC, you should use the precompiled packages (which are available in unstable for perl 5.8.0). Even if you get your @INC right, you will run into all kind of trouble with a locally built perl since binary perl modules shipped in packages will not work on it, and you have essentially bypassed the whole dependency system there. > I'm not too sure what to do now, did I mess up in trying to install a > Non Debian package on top of the system? You should have at least told it to install in /usr/local/bin.. > Should I just restore from backup and go back to 5.6.1? Or should I just > attempt the Mysql install from Source? Your easiest fix may be to rename your local perl build to /usr/local/bin/ perl-5.8 and use that in whatever programs you want to use it, leaving /usr/bin/perl for the debian perl. Which I think you will have to tell apt to reinstall to get back. -- see shy jo pgp0.pgp Description: PGP signature
Problem with Mysql - Perl 5.8
Need some advice here, I installed Perl 5.8.0 on my Debian box, on top of the Debian Perl package 5.6.1 Perl seems to work, but I tried to install the DBD::mysql bundle and am running into errors telling me mysql_config cannot be found. So I figured something was wrong with Mysql and I upgraded the Debian Mysql package to the newest version but it fails with the following error. ### debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at (eval 1) line 4. BEGIN failed--compilation aborted at (eval 1) line 4. And , ### Preparing to replace mysql-server 3.23.49-8 (using .../mysql-server_3.23.49-8.2_i386.deb) ... Can't locate Debconf/Db.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at /usr/share/debconf/frontend line 22. BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 22. dpkg: warning - old pre-removal script returned error exit status 2 dpkg - trying script from the new package instead ... Can't locate Debconf/Db.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.0/i686-linux /usr/local/lib/perl5/5.8.0 /usr/local/lib/perl5/site_perl/5.8.0/i686-linux /usr/local/lib/perl5/site_perl/5.8.0 /usr/local/lib/perl5/site_perl .) at /usr/share/debconf/frontend line 22. BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 22. ### I'm not too sure what to do now, did I mess up in trying to install a Non Debian package on top of the system? Should I just restore from backup and go back to 5.6.1? Or should I just attempt the Mysql install from Source? Thank you guys. -DU -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]