Re: Upgrading perl
Jack Stone ja...@sage-american.com writes: uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: You're almost four years past the end-of-life on the release you're running, so it's been left behind in terms of support. In this case it looks (based on a *very* quick look) that you may be running into changes in how make(1) actually works, in which case backporting the ports functionality will be more work than it's worth. If the machine can't be updated, and assuming it's secure (which hard to be sure about with old software on the Internet), you may be best off leaving it alone. Good luck. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 8:27 AM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: You're almost four years past the end-of-life on the release you're running, so it's been left behind in terms of support. In this case it looks (based on a *very* quick look) that you may be running into changes in how make(1) actually works, in which case backporting the ports functionality will be more work than it's worth. If the machine can't be updated, and assuming it's secure (which hard to be sure about with old software on the Internet), you may be best off leaving it alone. Good luck. Thanks for the reply. Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean What do you think? I've got to move up because an important perl program requires a minimum 5.12. -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/12 8:08 AM, Jack Stone wrote: On 8/29/2012 8:27 AM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: You're almost four years past the end-of-life on the release you're running, so it's been left behind in terms of support. In this case it looks (based on a *very* quick look) that you may be running into changes in how make(1) actually works, in which case backporting the ports functionality will be more work than it's worth. If the machine can't be updated, and assuming it's secure (which hard to be sure about with old software on the Internet), you may be best off leaving it alone. Good luck. Thanks for the reply. Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean If you're using portmaster, you should be able to do something like the following from /usr/ports: portmaster -o lang/perl5.16 lang/perl5.10 portmaster p5- and perl automagically will upgrade. This is from /usr/ports/UPDATING. You can also find instructions for portupgrade there. Don't know about dependencies with 7.0, though. dn What do you think? I've got to move up because an important perl program requires a minimum 5.12. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/12 10:59 AM, David Newman wrote: On 8/29/12 8:08 AM, Jack Stone wrote: On 8/29/2012 8:27 AM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: uname -a FreeBSD mail.sagedata.net 7.0-RELEASE-p9 FreeBSD 7.0-RELEASE-p9 #2: Sun Jan 18 19:59:27 CST 2009 Running perl5.10 (yeah, old!) This is a production server. Been playing catchup on ports including perl as UPDATING recommends: portupgrade -o lang/perl5.12 -f perl-5.10.\* That has worked on other servers, but not this one. Anyone know what I need to do to clean this up?? But, can't get past this fatal error: mail# portupgrade -o lang/perl5.12 -f perl-5.10.\* /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ /usr/ports/Mk/bsd.options.mk, line 231: Error in archive specification: WITHOUT_ make: fatal errors encountered -- cannot continue ** Makefile possibly broken: lang/perl5.12: You're almost four years past the end-of-life on the release you're running, so it's been left behind in terms of support. In this case it looks (based on a *very* quick look) that you may be running into changes in how make(1) actually works, in which case backporting the ports functionality will be more work than it's worth. If the machine can't be updated, and assuming it's secure (which hard to be sure about with old software on the Internet), you may be best off leaving it alone. Good luck. Thanks for the reply. Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean If you're using portmaster, you should be able to do something like the following from /usr/ports: portmaster -o lang/perl5.16 lang/perl5.10 portmaster p5- and perl automagically will upgrade. Sorry, I'd missed that you'd tried this and it isn't working. make has changed since the 7.0 days. I agree with Jack that you're better off leaving well enough alone. If you really need perl5.16+ capabilities you're much better off moving your program to a more recent version of FreeBSD. dn This is from /usr/ports/UPDATING. You can also find instructions for portupgrade there. Don't know about dependencies with 7.0, though. dn What do you think? I've got to move up because an important perl program requires a minimum 5.12. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
Jack Stone ja...@sage-american.com writes: Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. You're somewhat on your own, then; I can't test any of my ideas before suggesting them to you. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean I would be surprised if the perl-5.12 port will build for you; I think you'll get the same error. If not, then yes, it should work. What do you think? I've got to move up because an important perl program requires a minimum 5.12. Well, it's also possible that there's a local problem on that machine. You indicated that you used portupgrade for similar updates on similarly-aged machines, but I'll guess that they were only roughly similar. I'll guess that you built your own INDEX file; if not, you probably should (and the associated database for portupgrade). Compare the infrastructure in ports/Mk (and maybe /usr/share/mk) with the similar machines that succeeded, and look at the Makefile in perl5.12 to make sure it sets options properly. Good luck. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 1:32 PM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. You're somewhat on your own, then; I can't test any of my ideas before suggesting them to you. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean I would be surprised if the perl-5.12 port will build for you; I think you'll get the same error. If not, then yes, it should work. What do you think? I've got to move up because an important perl program requires a minimum 5.12. Well, it's also possible that there's a local problem on that machine. You indicated that you used portupgrade for similar updates on similarly-aged machines, but I'll guess that they were only roughly similar. I'll guess that you built your own INDEX file; if not, you probably should (and the associated database for portupgrade). Compare the infrastructure in ports/Mk (and maybe /usr/share/mk) with the similar machines that succeeded, and look at the Makefile in perl5.12 to make sure it sets options properly. Good luck. Hi Lowell and thanks for the good wishes! Yes, on the other servers which upgraded without issue are running the same freebsd-7.x, and the make files are identical for the perl-5.12. I just now ran a test on a test server of same vintage and it did build directly in the port just using make to see if it would work. It did. The trick is to DISABLE_CONFLICTS=YES in the /etc/make.conf. This still doesn't mean the important production server will cooperatebut will have to take a risk and try it. That server has a bootable clone that is run every day so I can rescue the server. I will just to make a fresh clone right before I try the perl upgradeso to minimize any loss of data. -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Upgrading perl
On 8/29/2012 1:32 PM, Lowell Gilbert wrote: Jack Stone ja...@sage-american.com writes: Actually, on other servers with the same upgrading needs, perl-5.12 installed without any issue. My intention is to upgrade perl in increments to get well past EOL. You're somewhat on your own, then; I can't test any of my ideas before suggesting them to you. Wonder if I just deinstalled the old perl5-5.10 and then installed the perl5-12 would work. I can do that right from the port: make perl5-12 first to see if that works, then: # make deinstall (perl-5.10) then: make install clean I would be surprised if the perl-5.12 port will build for you; I think you'll get the same error. If not, then yes, it should work. What do you think? I've got to move up because an important perl program requires a minimum 5.12. Well, it's also possible that there's a local problem on that machine. You indicated that you used portupgrade for similar updates on similarly-aged machines, but I'll guess that they were only roughly similar. I'll guess that you built your own INDEX file; if not, you probably should (and the associated database for portupgrade). Compare the infrastructure in ports/Mk (and maybe /usr/share/mk) with the similar machines that succeeded, and look at the Makefile in perl5.12 to make sure it sets options properly. Good luck. AHAH! This just came out in ports UPDATING and maybe helps: 20120820: AFFECTS: users of ports-mgmt/portupgrade-devel AUTHOR: bdrew...@freebsd.org Due to a bug introduced in 20120601, portupgrade is unable to upgrade itself on FreeBSD 7.x. This has been fixed in 20120820. ports-mgmt/portupgrade is not affected. To upgrade, execute the following: # cd /usr/ports/ports-mgmt/portupgrade-devel make deinstall install clean -- -- All the best, Jack ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: upgrading perl -ports
Zan wrote: uname -m = i386 which -a perl = /usr/local/bin/perl /usr/bin/perl Please show: uname -m which -a perl On Tuesday, August 30, 2005, at 01:30 P:M, Lowell Gilbert wrote: Zan [EMAIL PROTECTED] writes: in my /usr/local/bin I can clearly see that there is a newer version of perl (5.8.0) already there, but when I type 'perl -v' I see that I'm running off of 5.0. Is there anything else I can do besides trying the use.perl port command? Because that doesn't seem to work, and my jail did not come with a ports collection. I would appreciate any help you can give me. Thank you! Please show: uname -m which -a perl Just a little side-note. After performing such an upgrade of Perl it's likely that some applications will not work, since a lot of them expect your old version of Perl. Recompiling those applications does the trick. At least, that's what I noticed when upgrading from 5.8.6 to 5.8.7. And just so you know, there are ALOT of applications dependent of Perl. About your problem, you should really recompile Perl from the ports-tree if you want to upgrade your Perl version. And after you did that, I always rebooted the machine. I don't know how it will function without rebooting the machine, or if it's even possible to upgrade Perl properly without a reboot. Jorn ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
in message [EMAIL PROTECTED], wrote Jorn Argelo thusly... About your problem, you should really recompile Perl from the ports-tree if you want to upgrade your Perl version. And after you did that, I always rebooted the machine. I don't know how it will function without rebooting the machine, or if it's even possible to upgrade Perl properly without a reboot. There is no reason to reboot just to upgrade perl properly. Rebooting does nothing in regard to upgrading perl, rather you just cause inconvenience to yourself. - Parv -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
Parv wrote: in message [EMAIL PROTECTED], wrote Jorn Argelo thusly... About your problem, you should really recompile Perl from the ports-tree if you want to upgrade your Perl version. And after you did that, I always rebooted the machine. I don't know how it will function without rebooting the machine, or if it's even possible to upgrade Perl properly without a reboot. There is no reason to reboot just to upgrade perl properly. Rebooting does nothing in regard to upgrading perl, rather you just cause inconvenience to yourself. - Parv Yes, I stand corrected. Which is why I mentioned that I didn't know for sure ;-) Jorn. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
Please don't top-post. Zan [EMAIL PROTECTED] writes: On Tuesday, August 30, 2005, at 01:30 P:M, Lowell Gilbert wrote: Zan [EMAIL PROTECTED] writes: in my /usr/local/bin I can clearly see that there is a newer version of perl (5.8.0) already there, but when I type 'perl -v' I see that I'm running off of 5.0. Is there anything else I can do besides trying the use.perl port command? Because that doesn't seem to work, and my jail did not come with a ports collection. I would appreciate any help you can give me. Thank you! Please show: uname -m which -a perl uname -m = i386 Oops. I meant uname -a. You're running some 4.x, I guess? which -a perl = /usr/local/bin/perl /usr/bin/perl Okay, explicitly run each of those perl executables to find the version. Something doesn't make sense here, and you may be looking in the wrong direction... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
Zan wrote: Hello, Would you please help me? in my /usr/local/bin I can clearly see that there is a newer version of perl (5.8.0) already there, but when I type 'perl -v' I see that I'm running off of 5.0. 5.8 is from ports. 5.0.6. i think, is system based Is there anything else I can do besides trying the use.perl port command? Because that doesn't seem to work, you need to install the perl from ports before using use.perl port. and my jail did not come with a ports collection. virtual hoster? can you download the ports collection and use it? (check that you can compile first ;) ) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
Zan [EMAIL PROTECTED] writes: in my /usr/local/bin I can clearly see that there is a newer version of perl (5.8.0) already there, but when I type 'perl -v' I see that I'm running off of 5.0. Is there anything else I can do besides trying the use.perl port command? Because that doesn't seem to work, and my jail did not come with a ports collection. I would appreciate any help you can give me. Thank you! Please show: uname -m which -a perl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
uname -m = i386 which -a perl = /usr/local/bin/perl /usr/bin/perl Please show: uname -m which -a perl On Tuesday, August 30, 2005, at 01:30 P:M, Lowell Gilbert wrote: Zan [EMAIL PROTECTED] writes: in my /usr/local/bin I can clearly see that there is a newer version of perl (5.8.0) already there, but when I type 'perl -v' I see that I'm running off of 5.0. Is there anything else I can do besides trying the use.perl port command? Because that doesn't seem to work, and my jail did not come with a ports collection. I would appreciate any help you can give me. Thank you! Please show: uname -m which -a perl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl -ports
Zan wrote: 5.8 is from ports. 5.0.6. i think, is system based In my 'usr/local/BIN' perl5.8.0 already exists. ok you need to install the perl from ports before using use.perl port. What I want to know is how to switch to 5.8.0 WITHOUT using use.perl port because I already tried that, and it does not work! what do you mean / how do you know 'it doesnt work'. It has always worked fine for me, both on a full system and jails. It will add some options to /etc/rc.conf. You will have to rebuild all perl-related ports so it starts using the perl from ports rather than from system virtual hoster? can you download the ports collection and use it? (check that you can compile first ;) ) Yes, I am on a virtual hosting account, and am very enthralled with freebsd. ;-) welcome aboard! B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl 5.8
On Mon, Feb 28, 2005 at 01:34:30PM +0100, Stefan Cars wrote: Hi! I'm upgrading perl 5.8 from the ports on a FreeBSD 5.3 machine, the problem is that alot of my installed modules doesn't work after the update (just a minor update from 5.8.2 to 5.8.6), probably becuase the @INC changed and did not include the mach directory of 5.8.2. Is this right ? Why can't it include the 5.8.2 mach dir ? There's nothing to stop you adding the 5.8.2 directories to @INC. But the cleanest way to solve this is to upgrade everything else on your system that depends on Perl. Portmanager is really good for this sort of task. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ pgpTLd0dUgmHh.pgp Description: PGP signature
Re: Upgrading perl 5.8
Stefan Cars wrote: Hi! I'm upgrading perl 5.8 from the ports on a FreeBSD 5.3 machine, the problem is that alot of my installed modules doesn't work after the update (just a minor update from 5.8.2 to 5.8.6), probably becuase the @INC changed and did not include the mach directory of 5.8.2. Is this right ? Why can't it include the 5.8.2 mach dir ? Please read /usr/ports/UPDATING Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl
Karl Agee wrote: Freebsd 4.11-pre. I am working on learning perl, and have perl 5.00x that is in the base system when I installed 4.10-Release. Since most of the learning materials out there are based on later verisions esp since 5.6.x some of the features arent in this older version. I am considering upgrading to 5.8.5 via ports, but, dont know if that will break anything. It won't break anything. You can have the base install, 5.6.x and 5.8.x installed from ports simultaneously. After installing perl from ports you run /usr/local/bin/use.perl port This will create links to the port install, eg. /usr/bin/perl - /usr/bin/perl5.8.5 And you can go back with /usr/local/bin/use.perl system Which will then replace the link with, eg. /usr/bin/perl - /usr/bin/perl5 These are the limitations: use.perl can only switch between one installed port-version and the system perl. So if you want to use another port-version (ie. for some reason you want both 5.6.x and 5.8.x) you will have to do the linking manually. When you install perl-packages they will be installed into the package path of the currently selected perl. So if you use 5.8.5 and install say p5-DBI then this won't be available for the system perl. However, perl looks backward, so 5.8.5 sees packages installed for the system perl. I haven't found big differences between 5.6 and 5.8, so I'd suggest you use 5.8. The main reason to stick with an older version is that you might develop scripts for platforms where the newer are not available. Note: If/when you upgrade to 5.x there is no system perl, this is partly to avoid the mess with multiple versions of perl. Cheers, Erik -- Ph: +34.666334818 web: www.locolomo.org S/MIME Certificate: http://www.locolomo.org/crt/2004071206.crt Subject ID: A9:76:7A:ED:06:95:2B:8D:48:97:CE:F2:3F:42:C8:F2:22:DE:4C:B9 Fingerprint: 4A:E8:63:38:46:F6:9A:5D:B4:DC:29:41:3F:62:D3:0A:73:25:67:C2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl
--On Thursday, December 30, 2004 7:54 PM -0800 Karl Agee [EMAIL PROTECTED] wrote: Freebsd 4.11-pre. I am working on learning perl, and have perl 5.00x that is in the base system when I installed 4.10-Release. Since most of the learning materials out there are based on later verisions esp since 5.6.x some of the features arent in this older version. I am considering upgrading to 5.8.5 via ports, but, dont know if that will break anything. Just being cautious... It's good to be cautious. :-) If you want to switch to the ports version of perl, then after you run make install clean in the port, you will need to do the following: Type use.perl ports at the commandline. This will switch perl from the system version to the ports version. Until you do this, your system will still be using the system version. Furthermore, you can always revert back to the system version by typing use.perl system at the commandline. After you do that, you will need to run make reinstall in any port that you've installed that uses perl. You can also install all the CPAN modules using the base system, so there's no need to upgrade to the ports version unless you just want to. (I chose to do that on a server I maintain, but it worked fine using the system perl.) Paul Schmehl ([EMAIL PROTECTED]) Adjunct Information Security Officer The University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: upgrading perl
On Fri, Dec 31, 2004 at 12:46:09PM +0100, Erik Norgaard wrote: I haven't found big differences between 5.6 and 5.8, so I'd suggest you use 5.8. The main reason to stick with an older version is that you might develop scripts for platforms where the newer are not available. I've noticed some memory allocation bugs with 5.6, so I'd just go straight for 5.8. -- -- Skylar Thompson ([EMAIL PROTECTED]) -- http://www.cs.earlham.edu/~skylar/ pgpUQ7dHbn1YP.pgp Description: PGP signature
Re: upgrading perl
Karl Agee wrote: Freebsd 4.11-pre. I am working on learning perl, and have perl 5.00x that is in the base system when I installed 4.10-Release. Since most of the learning materials out there are based on later verisions esp since 5.6.x some of the features arent in this older version. I am considering upgrading to 5.8.5 via ports, but, dont know if that will break anything. Just being cautious... --Karl The biggest thing you have to watch out for is to upgrade the modules with the distribution. Look in /usr/ports/UPDATING and search for Perl for more info. -- -- Skylar Thompson ([EMAIL PROTECTED]) -- http://www.cs.earlham.edu/~skylar/ signature.asc Description: OpenPGP digital signature
Re: upgrading perl
Karl Agee wrote: Freebsd 4.11-pre. I am working on learning perl, and have perl 5.00x that is in the base system when I installed 4.10-Release. Since most of the learning materials out there are based on later verisions esp since 5.6.x some of the features arent in this older version. I am considering upgrading to 5.8.5 via ports, but, dont know if that will break anything. Just being cautious... --Karl Hello Karl Unless it's relatively easy to upgrade perl on 4.x I wouldn't bother with it. most everything in perl 5.6 (and 5.8) work in 5. If you want to learn about perl this resource should be very helpful: http://www.ebb.org/PickingUpPerl/ Remember to buy them!, Nikolas http://www.hn.edu.cn/book/Perl/Perl.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading Perl within 5.2
On Thu, Apr 01, 2004 at 10:05:35AM -0500, Jesse Sheidlower wrote: Yesterday I installed FreeBSD 5.2.1, and the active Perl port is /usr/ports/lang/perl, which is v. 5.6.1. I'd like to upgrade to 5.8.2, which is in /usr/ports/lang/perl5.8 and thus I can't just do portupgrade perl. You can tell the portupgrade tools the path relative to /usr/ports -- so to upgrade from perl-5.6.1 to perl-5.8.2 you would do: # pkg_deinstall -f lang/perl5 # portinstall lang/perl5.8 and then all the 'use.perl port' stuff, as well as re-installing any perl modules (ie. anything that installed files under /usr/local/lib/perl5/5.6.1 or /usr/local/lib/perl5/site-perl/5.6.1) Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK pgp0.pgp Description: PGP signature
Re: Upgrading Perl within 5.2
On Thu, 2004-04-01 at 17:05, Jesse Sheidlower wrote: I'm sure this is a silly question, but. I know about use.perl and so forth for the 4.x series. Yesterday I installed FreeBSD 5.2.1, and the active Perl port is /usr/ports/lang/perl, which is v. 5.6.1. I'd like to upgrade to 5.8.2, which is in /usr/ports/lang/perl5.8 and thus I can't just do portupgrade perl. Exactly what do I have to do to accomplish this? portinstall perl5.8 doesn't work (No such installed package nor such port...), nor does portinstall perl-5.8.2_2 (which is said to be the package name in the README file). The PORTNAME given in the 5.8 Makefile is just perl. I assume I could just do a make install from the perl5.8 directory, but how do I do it with portupgrade? And then how do I get rid of the 5.6 version and rebuild things with 5.8? Correct. Just run a make install from perl5.8 directory and it will install it to a new location without interfering with the base install of perl. Is it really necessary to upgrade ? There is nothing in ports that I know of that will not work with perl5.6 There is no need to remove the 5.6 version. The installation will add some information to your /etc/make.conf as well as make other changes when you run use.perl port which will tell any future installations that require perl which version to use. If you have to remove perl then cd into /usr/local/lib/perl5 and remove the 5.6 directory as well as the one under site_perl but not recommended. Cheers, -- Nelis Lamprecht PGP: http://www.8ball.co.za/pgpkey/nelis.asc Unix IS user friendly.. It's just selective about who its friends are. signature.asc Description: This is a digitally signed message part
Re: Upgrading Perl within 5.2
On Thursday 01 April 2004 07:05 am, Jesse Sheidlower wrote: I'm sure this is a silly question, but. I know about use.perl and so forth for the 4.x series. Yesterday I installed FreeBSD 5.2.1, and the active Perl port is /usr/ports/lang/perl, which is v. 5.6.1. I'd like to upgrade to 5.8.2, which is in /usr/ports/lang/perl5.8 and thus I can't just do portupgrade perl. Exactly what do I have to do to accomplish this? portinstall perl5.8 doesn't work (No such installed package nor such port...), nor does portinstall perl-5.8.2_2 (which is said to be the package name in the README file). The PORTNAME given in the 5.8 Makefile is just perl. I assume I could just do a make install from the perl5.8 directory, but how do I do it with portupgrade? And then how do I get rid of the 5.6 version and rebuild things with 5.8? Follow the instructions in /usr/ports/UPDATING. Kent -- Kent Stewart Richland, WA http://users.owt.com/kstewart/index.html ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules
portupgrade :p5- On Mon, Dec 22, 2003 at 05:55:17PM +0700, Roger Merritt wrote: I once saw, and used, a portupgrade command line to upgrade *all* installed perl modules. It went something like: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? -- Roger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- robert t g tan pgp0.pgp Description: PGP signature
Re: Upgrading perl modules
Roger Merritt [EMAIL PROTECTED] writes: I once saw, and used, a portupgrade command line to upgrade *all* installed perl modules. It went something like: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? That one should work. What error message do you get? [My suspicion would be a typo...] -- Lowell Gilbert, embedded/networking software engineer, Boston area: resume/CV at http://be-well.ilk.org:8088/~lowell/resume/ username/password public ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules
At 01:41 AM 12/23/03, you wrote: Roger Merritt [EMAIL PROTECTED] writes: I once saw, and used, a portupgrade command line to upgrade *all* installed perl modules. It went something like: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? That one should work. What error message do you get? [My suspicion would be a typo...] [EMAIL PROTECTED]:~]# portupgrade p5-\* [Updating the pkgdb format:bdb1_btree in /var/db/pkg ... - 193 packages found (-0 +1) . done] /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:310:in `deorigin': failed to convert nil into String (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:903:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:916:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:920:in `sort_build!' from /usr/local/sbin/portupgrade:674:in `main' from /usr/local/sbin/portupgrade:207:in `initialize' from /usr/local/sbin/portupgrade:207:in `new' from /usr/local/sbin/portupgrade:207:in `main' from /usr/local/sbin/portupgrade:1846 -- Roger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules
At 08:48 PM 12/22/03, you wrote: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? #portupgrade p5-* (as root) That gives me: [EMAIL PROTECTED]:~]# portupgrade p5-* portupgrade: No match. [EMAIL PROTECTED]:~]# portupgrade 'p5-*' /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:310:in `deorigin': failed to convert nil into String (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:903:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:916:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:920:in `sort_build!' from /usr/local/sbin/portupgrade:674:in `main' from /usr/local/sbin/portupgrade:207:in `initialize' from /usr/local/sbin/portupgrade:207:in `new' from /usr/local/sbin/portupgrade:207:in `main' from /usr/local/sbin/portupgrade:1846 -- Roger ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules
On Tue, Dec 23, 2003 at 07:42:53AM +0700, Roger Merritt wrote: At 08:48 PM 12/22/03, you wrote: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? #portupgrade p5-* (as root) That gives me: [EMAIL PROTECTED]:~]# portupgrade p5-* portupgrade: No match. You need to execute the command in the package db directory, /var/db/pkg. [3:42:50] [EMAIL PROTECTED] /var/db/pkg# portupgrade p5-* If you still get the errors you list below perhaps try reinstalling portupgrade. [EMAIL PROTECTED]:~]# portupgrade 'p5-*' /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:310:in `deorigin': failed to convert nil into String (PkgDB::DBError) from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:903:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:902:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `each' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:894:in `tsort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:916:in `sort_build' from /usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:920:in `sort_build!' from /usr/local/sbin/portupgrade:674:in `main' from /usr/local/sbin/portupgrade:207:in `initialize' from /usr/local/sbin/portupgrade:207:in `new' from /usr/local/sbin/portupgrade:207:in `main' from /usr/local/sbin/portupgrade:1846 -- Jez Hancock - System Administrator / PHP Developer http://munk.nu/ http://jez.hancock-family.com/ - personal weblog http://ipfwstats.sf.net/- ipfw peruser traffic logging ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules
in message [EMAIL PROTECTED], wrote Jez Hancock thusly... On Tue, Dec 23, 2003 at 07:42:53AM +0700, Roger Merritt wrote: At 08:48 PM 12/22/03, you wrote: $ portupgrade p5-\* However, when I try the command now I just get an error message. Can anyone tell me the proper command? #portupgrade p5-* (as root) That gives me: [EMAIL PROTECTED]:~]# portupgrade p5-* portupgrade: No match. You need to execute the command in the package db directory, /var/db/pkg. [3:42:50] [EMAIL PROTECTED] /var/db/pkg# portupgrade p5-* That is (cd /var/db/pkg) just crude, and should not be necessary according to portupgrade(1)... OPTIONS The following command line arguments are supported: pkgname_glob Specify one of these: a full pkgname, a pkgname without version, a shell glob pattern in which you can use wildcards `*', `?', and `[..]', an extended regular expression preceded by a colon `:', or a date range specification preceded by either `' or `'. See pkg_glob(1) for details and concrete examples. ...so if portupgrade 'p5-*' (keep the single quotes, but not the double in actual usage) does not work, OP should file a problem report (via send-pr(1)). - Parv -- ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl modules (as ports) and already installed problems
On Mon, Nov 17, 2003 at 09:14:31AM -0600, Tillman Hodgson wrote: Whats the best way to ensure that all perl modules are properly and automatically upgrade when perl itself is upgraded? I've since discovered that I can shorten the time somewhat by using `pkg_info -R perl-5.6.1_14` and then portupgrading -f the ports listed. This saves going over already-upgraded ports on every run. -T -- Yield to temptation; it may not pass your way again. - Robert Heinlein ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Upgrading perl 5.6.1 to perl 5.8 via ports
On Sun, Jan 26, 2003 at 12:50:36PM +, Matt wrote: I am currently running freebsd 5.0-current and so do not have the perl installation as core. Perl 5.6.1 was installed as a dependency when I installed irssi from ports and everything has been using this since. I assume because this is the version mentioned in /etc/make.conf: PERL_VER=5.6.1 PERL_VERSION=5.6.1 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo What I would like to do is remove the perl 5.6.1 port and install the perl 5.8 port instead but before I go off and try this and break lots of things I would like to know what I need to do to change all my currently installed ports that have been installed to depend on perl 5.6.1 and the modules in /usr/local/lib/perl5/site_perl/5.6.1/ so that they all work in 5.8. Is it just a case of backing up site_perl and forcing a deinstall of the 5.6.1 port and installing the 5.8 port and copying all the site_perl stuff back but under /usr/local/lib/perl5/site_perl/5.8 instead? Or am I going to need to reinstall all the ports that depend on perl? Plus I guess changing the /etc/make.conf to 5.8 (though I guess the port will do this). Also am I right to assume that the ports use the config in make.conf to decide which version of perl they depend on? Probably the best way to do this is as follows: 0) Get a good backup of everything. Install portupgrade. i) Make a list of all of the perl modules you've installed and check that they all depend on perl-5.6.1. Seeing as you're on 5.0 and so using a ports version of perl rather than the version bundled with 4.x, you should see an explicit dependency on perl-5.6.1. You should therefore find most perl dependent things by doing: pkg_info -r perl-\* If you're on 4.x and using the system perl, you'll have to go about finding the dependencies by other means. Eg. by: pkg_info -I p5-\* but beware of the oddities like MRTG or rrdtool that don't match that naming convention. Similarly make a list of any perl modules you've installed via CPAN. (The 'snapshot' command in a CPAN shell will give you more than enough information for that purpose.) Ideally at the end of this job you should be able to identify all packages that have installed files under /usr/local/lib/perl5/{5.6.1,site_perl/5.6.1} --- it's those packages which will have to be re-installed to use the new perl. ii) Install the perl-5.8.0 port side-by-side with the perl-5.6.1 port, and run the 'use.perl port' command from 5.8.0. That should mean that: PERL_VER=5.8.0 PERL_VERSION=5.8.0 PERL_ARCH=mach NOPERL=yo NO_PERL=yo NO_PERL_WRAPPER=yo appears in /etc/make.conf --- you can delete any old use.perl stuff pointing at perl-5.6.1 iii) Re-install all of the ports that installed files into a perl-5.6.1 specific directory. You won't need to reinstall a port just because it gets its perl dependency just by containing some perl scripts, but you do need to re-install anything that installs .pm files or shared modules. If you're unsure, reinstall it. The easiest way to do this job is by using portupgrade(1): portupgrade -rNfix perl-5.6.1 perl-5.6.1 and select 'y' or 'n' as it prompts you to upgrade each port. The re-installed ports should now depend on perl-5.8.0. iv) Similarly, re-install any perl modules downloaded from CPAN. Nb. if possible use the ports version of a module in preference to the CPAN version --- even with BSDPAN, it's still easier to manage FreeBSD ports/pkgs. v) Forcibly remove the old perl-5.6.1 port: pkg_deinstall -f perl-5.6.1\* You've probably got some ports that are still listed as depending on perl-5.6.1, which you can interactively fix to depend on perl-5.8.0 by running: pkgdb -Fvu vi) Test thoroughly. Clean up any remnant perl-5.6.1 directories under /usr/local/lib/perl5, and make sure that /etc/manpath.config references the right perl man directory. That should get you up and running with 5.8.0. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message