*BSDThis forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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 ...
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 .
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.