LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-10-2004, 02:38 PM   #1
Devboy
Member
 
Registered: Jul 2003
Location: IOM
Distribution: Slackware 10.
Posts: 194

Rep: Reputation: 30
When "make install clean" ports fails everytime!


Whats happening is when ever i want to install a program via the ports, i seems to encounter a problem it always spits out somthing like:

patching failed ex:

Code:
/sbin/ldconfig -m /usr/local/lib
===>   Registering installation for libidn-0.5.3
===>   Returning to build of kdelibs-3.2.3_1
===>   kdelibs-3.2.3_1 depends on shared library: jasper - not found
===>    Verifying install for jasper in /usr/ports/graphics/jasper
===>  Vulnerability check disabled
>> jasper-1.701.0.zip doesn't seem to exist in /usr/ports/distfiles/.
>> Attempting to fetch from http://www.ece.uvic.ca/~mdadams/jasper/software/.
Receiving jasper-1.701.0.zip (1361754 bytes): 100% (ETA 00:00)
1361754 bytes transferred in 31.1 seconds (42.73 kBps)
===>  Extracting for jasper-1.701.0
>> Checksum OK for jasper-1.701.0.zip.
===>   jasper-1.701.0 depends on executable: unzip - found
===>  Patching for jasper-1.701.0
===>  Applying FreeBSD patches for jasper-1.701.0
2 out of 2 hunks failed--saving rejects to configure.rej
>> Patch patch-configure failed to apply cleanly.
*** Error code 1
 
Old 08-10-2004, 03:44 PM   #2
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
Did you cvsup your ports after installing FreeBSD? If you are using an out of date ports tree (it gets updated daily), then you will run into lots of errors trying to install via ports.

If you did update your ports tree and still find this error, then check /usr/ports/UPDATING to see if anything about this is noted.

Open your cvsup file (an example can be found in /usr/src/examples/cvsup/ports-supfile - copy that to someplace where you keep your scripts)

Edit the file to designate a cvsup server (cvsup1.FreeBSD.org - for example)
keep ports at ports-all, otherwise you can run into issues. Don't worry about making a refuse file or selecting ports not to install.

Run:
cvsup -g -L 2 /path/to/ports-supfile

Wait...

When it's done:
cd /usr/ports
make index

wait .... (long time)

pkgdb -u

and you should be good to go. Then try installing that port again.

Generally I cvsup my ports tree before I go and install programs. You can always set a cron job to cvsup once a week, or once every other day. You don't need to do it too often as it taxes the cvsup servers. But since I don't install every day I only do it before I install something or any kind of portupgrade ...
 
Old 08-11-2004, 03:11 AM   #3
Devboy
Member
 
Registered: Jul 2003
Location: IOM
Distribution: Slackware 10.
Posts: 194

Original Poster
Rep: Reputation: 30
Aha! i knew i was doing somit wrong, i did downlaad to gzip and used that without luck so i ran the cvsup -g -L 2 ports-supfile and it updated but i never knew about make index and pkgdb -u .

thanks ill give it a try!
 
Old 08-11-2004, 03:25 AM   #4
Devboy
Member
 
Registered: Jul 2003
Location: IOM
Distribution: Slackware 10.
Posts: 194

Original Poster
Rep: Reputation: 30
hey, i tried running

pkgdb - u

and it oputted command not found but make index worked but did output a warning:


Generating INDEX - please wait..Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
Done.

I went to try install kmess none the elss and without luck it came up with a patch-configure error again.
 
Old 08-11-2004, 03:30 AM   #5
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
you need to install portupgrade: /usr/ports/sysutils/portupgrade
 
Old 08-11-2004, 12:42 PM   #6
Devboy
Member
 
Registered: Jul 2003
Location: IOM
Distribution: Slackware 10.
Posts: 194

Original Poster
Rep: Reputation: 30
umm! did that all works updated 98packages i went to install kmess and same problem ocured :S.

suggestions?

Last edited by Devboy; 08-11-2004 at 12:44 PM.
 
Old 08-11-2004, 05:11 PM   #7
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
Research before you start upgrading packages using portupgrade. There are different ways you can do it. Using the -r flag will update dependencies as well, without it doesn't. So if you upgrade a port without paying attention to what is dependent on it, you can create version problems.

Don't know if that is what your problem is specifically, but something to know.
 
Old 08-11-2004, 05:31 PM   #8
Devboy
Member
 
Registered: Jul 2003
Location: IOM
Distribution: Slackware 10.
Posts: 194

Original Poster
Rep: Reputation: 30
damm pain in the ass! i even downloaded the openssl of freebsd ports and installed it manualy into the devel port dir and when to install it but same error it fails when applying freebsd patches.
 
Old 08-11-2004, 06:44 PM   #9
Stack
Member
 
Registered: Oct 2003
Distribution: FreeBSD
Posts: 325

Rep: Reputation: 30
Quote:
Originally posted by Devboy
hey, i tried running

pkgdb - u

and it oputted command not found but make index worked but did output a warning:


Generating INDEX - please wait..Warning: Duplicate INDEX entry: freeciv-gtk2-1.14.1
Done.

I went to try install kmess none the elss and without luck it came up with a patch-configure error again.
You need to run 'pkgdb -F' to fix the pkg data base...
 
Old 08-11-2004, 07:46 PM   #10
Marble
Member
 
Registered: Feb 2003
Distribution: FreeBSD 5.2
Posts: 113

Rep: Reputation: 15
Yes... forgot that one:

cvsup ports tree
cd /usr/ports make index
pkgdb -u
pkgdb -F
 
  


Reply



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
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
Ndiswrapper install failure - LBA-Linux "make" command fails petteril Linux - Wireless Networking 1 04-23-2005 08:22 AM
"make clean" caused system freeze, kernel panic on reboot jwhill2000 Linux - General 3 02-08-2005 07:59 PM
"Can't run C compiled programs" on clean RH9 install smirnoff Linux - Newbie 8 03-16-2004 03:11 PM
how to write a recursive "make clean"? clockworks Programming 2 01-20-2004 11:19 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:37 PM.

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
Open Source Consulting | Domain Registration