LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices



Reply
 
Search this Thread
Old 07-24-2004, 07:32 AM   #1
cccc
Senior Member
 
Registered: Sep 2003
Distribution: Debian Squeeze / Wheezy
Posts: 1,618

Rep: Reputation: 48
howto update KDE by freeBSD 5.2.1 without errors ?


hi

knows someone howto update KDE 3.1 to 3.2 by freeBSD 5.2.1 without any errors ?

I did ports tree update and have tried to update:

# cd /us/ports/x11/kde3
# make deinstall clean && make reinstall

but get following errors:

/usr/ports/x11/kdelibs3
Error Code 1

/usr/ports/x11/kdebase3
Error Code 1

KDE isn't working now.

greetings
cccc

Last edited by cccc; 07-24-2004 at 07:47 AM.
 
Old 07-24-2004, 07:47 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
You are going to want to use portupgrade to do this. I believe it is under ports/sysutils.

But either way, install it and read the man page (seriously it will help you understand exactly what you need to be doing).

Then it will upgrade kde and all the libraries and everything for you.

The standard ports tree is not the best for upgrading programs that are heavily dependant on other things. It does a wonderful job installing them but it won't deinstall dependancies.
 
Old 07-25-2004, 09:40 AM   #3
rehab junkie
Member
 
Registered: Nov 2003
Location: /var/local/pub/bar
Distribution: OSX 10.4.9
Posts: 259

Rep: Reputation: 30
Have a read of http://freebsd.kde.org/ and of /usr/ports/UPDATING. There are issues with upgrading from kde 3.1.x to 3.2.x - simply portupgrading will break your installation.
 
Old 07-25-2004, 09:53 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: Ubuntu, FreeBSD, NetBSD
Posts: 1,449

Rep: Reputation: 47
Well, simply port upgrading won't work.

But there are fixes which can be done to make portupgrade work (which is still the recommended way of doing it). Thanks for the directions... I don't use KDE but they will be a huge help to the original poster as it describes exactly what needs to be done to make his upgrade work.

 
Old 07-27-2004, 05:31 AM   #5
partom
Member
 
Registered: May 2004
Distribution: FreeBSD 5.2.1
Posts: 30

Rep: Reputation: 15
Angry i have the same error

I was folowing the instructions on:
http://www.bsdnews.org/03/bsd_update.php
and crashed my server twice.
Is there a nother way to update FreeBSD insted of CVSup?
Can someone post here another guide for me, please?
i cant use any new software last version because of that!
*GGGGGRRRRR*
 
Old 08-01-2004, 02:33 PM   #6
partom
Member
 
Registered: May 2004
Distribution: FreeBSD 5.2.1
Posts: 30

Rep: Reputation: 15
Well my update was okay when i followed the handbook instructions.
I was trying to upgrade kde 3.1.4 to kde 3.2.3
with #portupgrade -rR kde
I get this errors and i don't know what to do in order to resolve them:

** The following packages were not installed or upgraded (*:skipped / !:failed)
! audio/lame (lame-3.93.1) (unknown build error)
! audio/arts (arts-1.1.4,1) (linker error)
* x11/kdelibs3 (kdelibs-3.1.4_1)
* misc/kdeedu3 (kdeedu-3.1.4)
* editors/koffice-kde3 (koffice-1.2.1_1,1)
* x11-clocks/kdetoys3 (kdetoys-3.1.4)
* deskutils/kdepim3 (kdepim-3.1.4)
* multimedia/kdemultimedia3 (kdemultimedia-3.1.4)
* graphics/kdegraphics3 (kdegraphics-3.1.4)
* www/quanta (quanta-3.1.4,2)
* sysutils/kdeadmin3 (kdeadmin-3.1.4_1)
* net/kdenetwork3 (kdenetwork-3.1.4)
* games/kdegames3 (kdegames-3.1.4)
* x11/kdebase3 (kdebase-3.1.4)
* misc/kdeaddons3 (kdeaddons-3.1.4)
* x11-wm/kdeartwork3 (kdeartwork-3.1.4_1)
* devel/kdesdk3 (kdesdk-3.1.4)
* devel/kdevelop (kdevelop-2.1.5)
* misc/kdeutils3 (kdeutils-3.1.4)
* x11/kde3 (kde-3.1.4)

any help will be appreciated.
 
Old 08-19-2004, 01:06 PM   #7
gorilla
LQ Newbie
 
Registered: Jul 2004
Location: Texas
Distribution: Debian Sarge
Posts: 20

Rep: Reputation: 0
I found these instructions on the freebsd.kde.org website.

portupgrade -rR kde will upgrade all of KDE, its dependencies (including XFree86 and qt) and those ports depending on KDE by fetching and compiling from source.
portupgrade -PR kde will upgrade from KDE packages if available, and will compile from source for those applications and dependencies that have no packages available.
portupgrade -PPR kde will install from KDE packages only, and will cease upgrading at the point it finds an application or dependency that has no package available, so use this command only if you are sure that the package site contains all packages required.
portupgrade -FR kde will only fetch the port(s) tarballs or packages (depending on the other flags chosen, see above) for a later upgrade.

Maybe they will help.
 
Old 08-19-2004, 04:06 PM   #8
partom
Member
 
Registered: May 2004
Distribution: FreeBSD 5.2.1
Posts: 30

Rep: Reputation: 15
Unhappy I am stummped (Gggrrrrrr)

I have tried all of these options an still i get this error.
I need a painless way to update KDE
Does someone knows?
 
Old 08-24-2004, 01:10 AM   #9
TJandE
LQ Newbie
 
Registered: Mar 2004
Location: Washington State, USA
Distribution: FreeBSD, RedHat, & AIX
Posts: 22

Rep: Reputation: 15
If I remember correctly I had similar errors when portupgrading KDE from whatever version ships with FreeBSD 5.2.1 to KDE 3.2.3. I think I went to the ports that had errors and did a make deinstall reinstall on them, and then did the portupgrade -rR on KDE. And then I repeated this process several times (portupgrade would get farther and then run into another problem). Also, and you've probably already done this, make sure your ports collection is up to date.

Micah
 
Old 08-24-2004, 02:47 AM   #10
partom
Member
 
Registered: May 2004
Distribution: FreeBSD 5.2.1
Posts: 30

Rep: Reputation: 15
Question my ports are uptodate

and i have tried this several times and still nothing.
I get the errors.
What else can i do?
 
Old 08-24-2004, 12:48 PM   #11
TJandE
LQ Newbie
 
Registered: Mar 2004
Location: Washington State, USA
Distribution: FreeBSD, RedHat, & AIX
Posts: 22

Rep: Reputation: 15
If you scroll back through the compiler messages (use the scroll lock button + cursor keys to do that) you should be able to see what the specific error message is for the audio/lame port (the unknown build error is a generic messge) Post that message and maybe we can figure out what's broken.

Micah

Last edited by TJandE; 08-24-2004 at 01:11 PM.
 
Old 08-24-2004, 01:45 PM   #12
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
I just did this last night flawlessly... Really folks it is rather simple and a question of having an up-to-date ports tree and an up-to-date pkgdb.

Step-by-Step guide to sucessfully updating your system with ports...
Quote:
enter the following line at a command prompt as root

# pkg_add -r cvsup-without-gui
# pkg_add -r portupgrade

OR

# cd /usr/ports/net/cvsup-without-gui && make install clean
# cd /usr/ports/sysutils/portupgrade && make install clean

# mkdir -p /usr/local/etc/cvsup/sup

# vi /usr/local/etc/cvsup/supfile.ports
-- copy below --
*default host=cvsup4.freebsd.org compress
*default release=cvs tag=.
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default delete use-rel-suffix
ports-all
-- copy above --

# vi /usr/local/etc/cvsup/supfile.os
-- copy below --
*default host=cvsup4.freebsd.org compress
*default release=cvs
*default base=/usr/local/etc/cvsup
*default prefix=/usr
*default delete use-rel-suffix
*default tag=RELENG_5_2
src-all
-- copy above --

# vi /usr/local/etc/cvsup/sup/refuse
-- copy below --
ports/arabic
ports/chinese
ports/french
ports/german
ports/hebrew
ports/hungarian
ports/japanese
ports/korean
ports/portuguese
ports/russian
ports/ukrainian
ports/vietnamese
doc/da*
doc/de*
doc/el*
doc/es*
doc/fr*
doc/it*
doc/ja*
doc/nl*
doc/no*
doc/pl*
doc/pt*
doc/ru*
doc/sr*
doc/zh*
-- copy above --

# mkdir /root/scripts
# vi /root/scripts/update-os
-- copy below --
#!/bin/sh
echo "Updating OS sources with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.os
-- copy above --
# chmod +x /root/scripts/update-os

# vi /root/scripts/update-ports
-- copy below --
#!/bin/sh
echo "Cleaning ports tree..."
/usr/local/sbin/portsclean -CD
echo "Updating ports tree with cvsup..."
/usr/local/bin/cvsup /usr/local/etc/cvsup/supfile.ports
echo "Updating INDEX and databases..."
/usr/local/sbin/portsdb -Uu
-- copy above --
# chmod +x /root/scripts/update-ports

Now that we have this done...

# cd /root/scripts
# ./update-ports

Grab a drink this might take a LONG time...

When this is done it is time to fix the pkgdb.

# pkgdb -F

Fix any problems before you portupgrade...

Following this you really should update all your installed ports if you have not updated in a long time.

# portupgrade -aRr

If your ports are fairly recent a simple

# portupgrade -Rr kde3

will do just fine...

Now once again grab a drink this is going to take a while.

Now if you have any errors when portupgrade finishes do the following.(You only need to care about the ones with a "!" in front)

# portupgrade <port name that has the !>

Read the errors that are spewed out and deal with them. Sometimes if it just a problem about an older version being installed cd to the directory and "make deinstall clean" then "make install clean".
Questions? The scripts and files pasted above are from bsdforums.org the comments and most commands are mine.

PS: http://www.bsdnews.org/03/bsd_update.php is insanely out of date and will cause you nothing but grief.

Last edited by Stack; 08-24-2004 at 02:01 PM.
 
Old 10-01-2004, 10:23 AM   #13
B3D_Sage
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
Exclamation

help! I tried this exactly as you said and it DOWNGRADED me to KDE version 3.1! I tried both all ports and just kde. i dont know what's been buggared up but i really want it to work
 
Old 10-01-2004, 02:13 PM   #14
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
First, you should start another thread.
Second, your ports are not up to date.
Drill down to the kde3 folder and read the pkg_desc.
It works like Stack said.
 
Old 10-01-2004, 02:45 PM   #15
B3D_Sage
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
first, I assumed the logical place to post a problem with someones advice would be the same place they gave the advice.

second, yes I know my ports are out of date. I'm trying to update them... that's the whole reason I'm posting. and, I've read the pkg-desc and it is useless- basically says "this is a 'metaport'. this package is merely a list of dependencies so that you only have to install once package to get kde-everything." And, obviously *for me* it did not work exactly like Stack said. Otherwise, I wouldnt be here in the first place. (and yes, I have gone through and followed his instructions to the letter.)

but, it *may* be fixed now. it's currently trying to install KDE again.... which will take until tomorrow most likely and I don't work weekends so i won't get to find out if it worked or not until monday (cant telnet in 'cause the bloody bastard that used to be the netadmin STILL hasn't given me the pword to the firewall!)



oh yeah and it wasnt actually downgraded to 3.1, it's still 3.1.4 just that some things got twisted wierdly and i thought it was 3.1... and it was giving me some problem with openldap-client not liking something about my OpenSSL config so i pkg_add'd openssl and then went to portupgrad'd openldap-client but portupgrad started griping about openldap22-client trying to install to the same dir as openldap-client so i had to pkd_delete openldap-client and pkg_add'd openldap22-client. tried portupgrade portupgrade and that didnt work, so i had to pkg_delete portupgrade and the make install clean portupgrade so got the new version of that, then had to pkgdb -F a lot of other things that got buggard somehow (like ruby... had two entries for ruby) and now I'm back to chunking away at portupgrade -rR kde. I read on anotehr forum someone had this same exact problem about OpenSSL (but not ldap) and mentioned he fixed it but keenly forgot to mention HOW he fixed it. Google won't work unless someone posts a fix!


oh did I mention that, aside from reading a big fat unix book 3 years ago and a few failed attempts at installing FBSD 4.2 and using (not configuring, just used it) Red Hat Linux 5.1 like 6 or 7 years ago I really have not had any UNIX contact until last week? at least I'm a fast learner....

Last edited by B3D_Sage; 10-01-2004 at 02:49 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i update Freebsd 6? SlipAway172 *BSD 4 11-30-2005 04:42 AM
freebsd 4.7 howto upgrate stable kernelvn *BSD 0 06-20-2005 11:32 AM
freebsd-update ubuntu-addict *BSD 8 12-19-2004 12:19 PM
howto install shockwave plugin on freeBSD ? cccc *BSD 4 08-25-2004 04:58 AM
Howto update KDE and howto switch off kdm/gdm Canaris Linux - Software 1 06-15-2003 09:40 PM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration