Re: perl and berkeley
* Len Conrad <[EMAIL PROTECTED]> [2004-05-28 09:17 -0800]: > >my first try would probably be to remove all CPAN modules installed > >under the old perl, and reinstall them. Then try installing that DB. > >However, wiser heads may have a better clue. > > Sounds like a good plan, but MCPAN doesn't seem to support uninstall > of modules. "find" does show where modules are installed to uninstall > them manually. > > I see MCPANPLUS supports uninstall. Dammit, this "simple" project of > getting PERL to talk to db3 is like the ball of string. Well, good luck with that. I wish I knew more about perl/db3. And remember, most projects are like that. ;] Regards, -- dave [ please don't CC me ] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
> perl -MCPAN -e 'install BerkeleyDB' > > ... still gives: > > BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least > Berkeley DB 2.6.4 > *** Error code 1 > > I've deleted and re-installed that db3 pkg, but still get the same error. my first try would probably be to remove all CPAN modules installed under the old perl, and reinstall them. Then try installing that DB. However, wiser heads may have a better clue. Sounds like a good plan, but MCPAN doesn't seem to support uninstall of modules. "find" does show where modules are installed to uninstall them manually. I see MCPANPLUS supports uninstall. Dammit, this "simple" project of getting PERL to talk to db3 is like the ball of string. thanks Len ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
* Len Conrad <[EMAIL PROTECTED]> [2004-05-27 01:53 -0800]: > This is perl, v5.8.4 built for i386-freebsd > > so the 5.8 is now the default version, good, 1 of 2 problems solved. > > It sure looks like the db3 pkg install is screwing up since > > perl -MCPAN -e 'install BerkeleyDB' > > ... still gives: > > BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least > Berkeley DB 2.6.4 > *** Error code 1 > > I've deleted and re-installed that db3 pkg, but still get the same error. I'm not sure what to do about that since I've never worked with CPAN or BerkelyDB. However (this is said from a point of ignorance, understand) my first try would probably be to remove all CPAN modules installed under the old perl, and reinstall them. Then try installing that DB. However, wiser heads may have a better clue. HTH, -- dave [ please don't CC me ] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
$ls -alT perl* lrwxr-xr-x 1 root wheel 19 Mar 20 15:25:53 2004 perl@ -> /usr/local/bin/perl ... lrwxr-xr-x 1 root wheel 19 Mar 20 15:25:53 2004 perl5.8.2@ -> /usr/local/bin/perl ... I have the same: # ll /usr/bin/perl* lrwxr-xr-x 1 root wheel 19 May 26 20:49 /usr/bin/perl@ -> /usr/local/bin/perl -r-xr-xr-x 2 root wheel 10200 Apr 11 15:48 /usr/bin/perl5* -r-xr-xr-x 2 root wheel 10200 Apr 11 15:48 /usr/bin/perl5.00503* lrwxr-xr-x 1 root wheel 19 May 26 20:49 /usr/bin/perl5.8.0@ -> /usr/local/bin/perl -r-xr-xr-x 1 root wheel 31723 Apr 11 15:48 /usr/bin/perlbug* -r-xr-xr-x 1 root wheel 26305 Apr 11 15:48 /usr/bin/perlcc* -r-xr-xr-x 1 root wheel 16807 Apr 11 15:48 /usr/bin/perldoc* # /usr/local/bin/perl -v This is perl, v5.8.4 built for i386-freebsd so the 5.8 is now the default version, good, 1 of 2 problems solved. It sure looks like the db3 pkg install is screwing up since perl -MCPAN -e 'install BerkeleyDB' ... still gives: BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 *** Error code 1 I've deleted and re-installed that db3 pkg, but still get the same error. thanks Len ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
* Len Conrad <[EMAIL PROTECTED]> [2004-05-26 20:42 -0800]: > # use.perl port > # which perl > /usr/bin/perl > > >Check out the rest of that file for more information. > > ports are not installed, just specific pkgs > > # pkg_info > ... > db3-3.3.11,1The Berkeley DB package, revision 3 > ... > perl-5.8.0_4Practical Extraction and Report Language Hrmm... Sorry about that, I'd assumed that you'd installed from ports, not packages. On my box, in the /usr/bin directory: $ls -alT perl* lrwxr-xr-x 1 root wheel 19 Mar 20 15:25:53 2004 perl@ -> /usr/local/bin/perl ... lrwxr-xr-x 1 root wheel 19 Mar 20 15:25:53 2004 perl5.8.2@ -> /usr/local/bin/perl ... So, you should be able to check your /usr/bin directory for the perl and perl5.8.0 files. If they are links to the system's perl, then simply link them to the new location (which should be /usr/local/bin/perl). That should allow the newer perl to be used by default. HTH, -- dave [ please don't CC me ] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
#v+ If you want this version of Perl to be used by default, please type use.perl port #v- # use.perl port # which perl /usr/bin/perl Check out the rest of that file for more information. ports are not installed, just specific pkgs # pkg_info ... db3-3.3.11,1The Berkeley DB package, revision 3 ... perl-5.8.0_4Practical Extraction and Report Language and /usr/local/bin/perl -MCPAN -e 'install BerkeleyDB' end also with: /usr/local/bin/perl5.8.4 /usr/local/lib/perl5/5.8.4/ExtUtils/xsubpp -noprototypes -typemap /usr/local/lib/perl5/5.8.4/ExtUtils/typemap -typemap typemap BerkeleyDB.xs > BerkeleyDB.xsc && mv BerkeleyDB.xsc BerkeleyDB.c cc -c -I./libraries/4.2.41/include -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -I/usr/local/include -O-DVERSION=\"0.25\" -DXS_VERSION=\"0.25\" -DPIC -fPIC "-I/usr/local/lib/perl5/5.8.4/i386-freebsd/CORE" BerkeleyDB.c BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 *** Error code 1 Len ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
which perl This will show which perl executable you are actually calling. the system perl: # which perl /usr/bin/perl I guess typing: /usr/local/bin/perl -MCPAN -e 'install BerkeleyDB' that fails, too, same error Len ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
* Len Conrad <[EMAIL PROTECTED]> [2004-05-26 14:18 -0800]: > 1. installed a perl mod that decided it needed Perl 5.8. that went > ok, but now I've got > > /usr/bin/perl 5.0 > /usr/local/bin/perl 5.8 > > What is the command to get the sytstem to switch to defaulting to 5.8? According to /usr/ports/lang/perl5.8/pkg-message: #v+ If you want this version of Perl to be used by default, please type use.perl port #v- Check out the rest of that file for more information. > 2. "pkg_add -r db3" also went ok, but No idea on this one. ;] HTH, -- dave [ please don't CC me ] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: perl and berkeley
Please try: which perl This will show which perl executable you are actually calling. I guess typing: /usr/local/bin/perl -MCPAN -e 'install BerkeleyDB' will fix the problem. I guess /usr/bin/perl is in front of /usr/local/bin/perl in your $PATH. Peter - Original Message - From: "Len Conrad" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 27, 2004 12:18 AM Subject: perl and berkeley > Freebsd 4.8 > > 1. installed a perl mod that decided it needed Perl 5.8. that went ok, but > now I've got > > /usr/bin/perl 5.0 > /usr/local/bin/perl 5.8 > > What is the command to get the sytstem to switch to defaulting to 5.8? > > > 2. "pkg_add -r db3" also went ok, but > > perl -MCPAN -e 'install BerkeleyDB' > > bombs out with: > > /usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 > /usr/libdata/perl/5.00503/ExtUtils/xsubpp -noprototypes -typemap > /usr/libdata/perl/5.00503/ExtUtils/typemap -typemap typemap > BerkeleyDB.xs >xstmp.c && mv xstmp.c BerkeleyDB.c > cc -c > -I./libraries/4.2.41/include -DVERSION=\"0.25\" > -DXS_VERSION=\"0.25\" -DPIC -fpic > -I/usr/libdata/perl/5.00503/mach/CORE BerkeleyDB.c > BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least > Berkeley DB 2.6.4 > *** Error code 1 > > thanks > Len > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
perl and berkeley
Freebsd 4.8 1. installed a perl mod that decided it needed Perl 5.8. that went ok, but now I've got /usr/bin/perl 5.0 /usr/local/bin/perl 5.8 What is the command to get the sytstem to switch to defaulting to 5.8? 2. "pkg_add -r db3" also went ok, but perl -MCPAN -e 'install BerkeleyDB' bombs out with: /usr/bin/perl -I/usr/libdata/perl/5.00503/mach -I/usr/libdata/perl/5.00503 /usr/libdata/perl/5.00503/ExtUtils/xsubpp -noprototypes -typemap /usr/libdata/perl/5.00503/ExtUtils/typemap -typemap typemap BerkeleyDB.xs >xstmp.c && mv xstmp.c BerkeleyDB.c cc -c -I./libraries/4.2.41/include -DVERSION=\"0.25\" -DXS_VERSION=\"0.25\" -DPIC -fpic -I/usr/libdata/perl/5.00503/mach/CORE BerkeleyDB.c BerkeleyDB.xs:74: #error db.h is from Berkeley DB 1.x - need at least Berkeley DB 2.6.4 *** Error code 1 thanks Len ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"