DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Ports and Packages

FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 9th June 2008
jedispy jedispy is offline
New User
 
Join Date: Jun 2008
Posts: 3
Default Need to update my FreeBSD...help

My system specs:
  • FreeBSD: 4.8
  • PHP: 4.4.2
  • Apache: 1.3
  • MySQL: 3.23.55
  • CPU: P2 300mhz
  • HDD: 300GB
  • Host: Me. This is a hobby server hosted in my home
Plain and simple I'm GROSSLY outdated on things. I built this server back in 2006, and since then I got horribly lazy. Recently the need has arisen for me to update things. I would like to update the server (install newer version of FreeBSD, so on and so forth). I HAVE read the tutorial at freebsd.org, and even read freebsddiary.org. However neither one seems to address the issue I'm running into.

My issue:
The issue is that I can't install cvsup. According to http://www.freebsd.org/doc/en_US.ISO...ook/cvsup.html & http://www.freebsddiary.org/cvsup.php it should be pretty simple to install it. However when I follow the methods provided at either site I get the following:
Attempting to install cvsup-without-gui:
Code:
"/usr/ports/Mk/bsd.port.mk", line 2303: warning: String comparison operator should be either == or !=
"/usr/ports/Mk/bsd.port.mk", line 2303: warning: String comparison operator should be either == or !=
"/usr/ports/Mk/bsd.port.mk", line 2303: Malformed conditional (((${OSVERSION} < 504105 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600103) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_install") || exists(${LOCALBASE}/sbin/pkg_info))
"/usr/ports/Mk/bsd.port.mk", line 2304: warning: String comparison operator should be either == or !=
"/usr/ports/Mk/bsd.port.mk", line 2304: warning: String comparison operator should be either == or !=
"/usr/ports/Mk/bsd.port.mk", line 2304: Malformed conditional ((${OSVERSION} < 504105 || (${OSVERSION} >= 600000 && ${OSVERSION} < 600103) || (${OSVERSION} >= 700000 && ${OSVERSION} < 700012)) && ${PKGORIGIN} != "ports-mgmt/pkg_install")
"/usr/ports/Mk/bsd.port.mk", line 6122: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6122: Need an operator
"/usr/ports/Mk/bsd.port.mk", line 6125: if-less endif
"/usr/ports/Mk/bsd.port.mk", line 6125: Need an operator
make: fatal errors encountered -- cannot continue
I'm betting there's a problem with bsd.port.mk (hrm....ya THINK?!?!?!?!)

I downloaded ports.tar.gz from ftp.freebsd.org and unpacked it. With a brand new bsd.port.mk in /usr/ports/Mk/, the issue is exactly the same (see "code" segment above).

Any suggestions on what I might be doing wrong?
__________________
Jedispy

Rather new to FreeBSD, but willing to learn.
Reply With Quote
  #2   (View Single Post)  
Old 9th June 2008
corey_james corey_james is offline
Uber Geek
 
Join Date: Apr 2008
Location: Brisbane, Australia
Posts: 238
Default

I would just start clean and install a 'recent' version of freebsd!

on another note, I'd use csup over cvsup
__________________
"No, that's wrong, Cartman. But don't worry, there are no stupid answers, just stupid people." -- Mr. Garrison

Forum Netiquette
Reply With Quote
  #3   (View Single Post)  
Old 9th June 2008
cajunman4life cajunman4life is offline
Real Name: Aaron Graves
Package Pilot
 
Join Date: May 2008
Location: Coolidge, Arizona
Posts: 203
Default

Unfortunately I think your best bet at this point would be a clean re-install. Back up everything (data, configuration files, etc), and do a fresh install of the latest version of FreeBSD you wish to use (I'd go with 7.0 but others may recommend 6.3), install everything you had before (but with the latest version) and "port" your configuration files where necessary. I don't think there'll be an easy way.
__________________
I just saved a bunch of money on my car insurance by fleeing the scene of the accident!
Reply With Quote
  #4   (View Single Post)  
Old 9th June 2008
jedispy jedispy is offline
New User
 
Join Date: Jun 2008
Posts: 3
Default

Ha ha ha....I was afraid of that. Curse me for being so lazy these past years. So what are we talking this all entails? Essentially reformatting and starting from scratch?
__________________
Jedispy

Rather new to FreeBSD, but willing to learn.
Reply With Quote
  #5   (View Single Post)  
Old 9th June 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I'm pretty sure 4.x ports and binary package support is a tad KIA by now ^_^.


If I had to *try* to update such a system manually, I would probably try either of the following methods to upgrade incrementally by major release until I found one that worked or was forced to reinstall before reaching my target:


fetch csup source code and compile it manually (preferably installing it into a private location: note csup has been in the base since like 6.2R or 6.1R).


Fetch system source code manually via Anonymous CVS


if rsync is installed, try fetching FreeBSD from an rsync mirror (I think it's possible, not hat I've ever tried it)


once system is up to date (e.g. 7-Stable or whatever rocks your boat). And assuming the level of mergemastering hasn't kille dyou yet, note down what services are installed packages, save a copy of what you have, delete all, install all.


Code:
vi /root/services.notes
pkg_info > /root/pkg_info.old
# back up your apache, php, and mysql setup first
pkg_delete -fx *

... install software as needed via ports/packages ...


For doing a reinstall, you can just dump every thing important (like your webroot and mysqldumping mysql). Install the new FreeBSD using a total reformat, then setup & restore files as needed and get the services reinstalled.



*just my two cents: I am not employed as a system administrator, follow any advice at own risk*
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.

Last edited by TerryP; 9th June 2008 at 05:37 PM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot update with CVS guitarscn OpenBSD Installation and Upgrading 3 7th September 2009 11:12 PM
freebsd-update bsdperson FreeBSD Installation and Upgrading 10 16th January 2009 10:14 AM
Update FreeBSD /usr/src tommytom FreeBSD General 10 31st July 2008 02:48 PM
Update from 6.1 to 6.3 did nothing? alanthing FreeBSD Installation and Upgrading 4 8th June 2008 02:28 PM
FreeBSD supported branches update corey_james FreeBSD Security 0 3rd June 2008 03:55 AM


All times are GMT. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick