From owner-freebsd-java@FreeBSD.ORG Thu Jun 20 18:54:07 2013 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 27D10835 for ; Thu, 20 Jun 2013 18:54:07 +0000 (UTC) (envelope-from rainer@ultra-secure.de) Received: from mail.ultra-secure.de (mail.ultra-secure.de [78.47.114.122]) by mx1.freebsd.org (Postfix) with ESMTP id 496361D36 for ; Thu, 20 Jun 2013 18:54:05 +0000 (UTC) Received: (qmail 29221 invoked by uid 89); 20 Jun 2013 18:54:04 -0000 Received: from unknown (HELO ?192.168.1.201?) (rainer@ultra-secure.de@217.71.83.52) by mail.ultra-secure.de with ESMTPA; 20 Jun 2013 18:54:04 -0000 Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: FreeBSD java installation help! From: Rainer Duffner In-Reply-To: Date: Thu, 20 Jun 2013 20:54:03 +0200 Message-Id: <82B55BD8-245C-4003-A274-E7A04EF49C96@ultra-secure.de> References: <8F694237-917D-4E7F-9502-CBD676242E3C@ultra-secure.de> To: Kavitha H Yogaraj X-Mailer: Apple Mail (2.1508) Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: freebsd-java@freebsd.org X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jun 2013 18:54:07 -0000 Am 20.06.2013 um 20:28 schrieb Kavitha H Yogaraj : > In my second step, when I run, I get couldn't find package, How to = install all these packages individually ? is there a way to install all = of them manually? >=20 >=20 > # pkg_add = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/o= penjdk-7.9.05_1.tbz >=20 > I get ---- >=20 > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/o= penjdk-7.9.05_1.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/xe= xtproto-7.2.0.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/re= nderproto-0.11.1.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/re= cordproto-1.14.1.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/kb= proto-1.0.5.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/in= putproto-2.0.2.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/ja= vavmwrapper-2.4_2.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/ja= va-zoneinfo-2012.h.tbz... Done. > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/pk= gconf-0.8.9.tbz... Done. > pkg_add: package 'pkgconf-0.8.9' conflicts with pkg-config-0.25_1 > pkg_add: please use pkg_delete first to remove conflicting package(s) = or -f to force installation > pkg_add: pkg_add of dependency 'pkgconf-0.8.9' failed! > Fetching = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/xp= roto-7.0.22.tbz... Done. That's a problem. You already have some packages installed, but the latest openjdk7 = package (which was compiled for a newer version but should in theory run = on 9.0) requires newer versions of some of the packages you have = installed. My suggestion would be to remove all packages, update to 9.1 and use = pkgng. Make a list of the packages that you actually want to have installed. Then: pkg_delete -fa freebsd-update -r 9.1-RELEASE upgrade (it will then most likely try to merge some configuration-files - it's = usually best to just go with the suggestions) then freebsd-update install reboot freebsd-update install reboot pkg_add = ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//ports-= mgmt/pkg-1.0.2.tbz run pkg2ng echo "WITH_PKGNG=3Dyes" >> /etc/make.conf and then follow the instructions here: = http://wiki.pcbsd.org/index.php/Convert_a_FreeBSD_System_to_PC-BSD=AE#Swit= ching_to_the_PC-BSD.C2.AE_pkgng_Repository (you don't need to run pkg upgrade -fa, when you don't have any packages = installed) Then, after you have configured the PCBSD pkgng-repository you can = install stuff by pkg search "your stuff" pkg install "exact name as returned by search" see here: = http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pkgng-intro.html= For further instructions. It works close enough to apt-get that most people should be able to use = it... I admit I've never used the PCBSD repository. But as it has been = suggested previously, I assume it's sufficiently useful. I looked and they seem to have an OpenJDK7 package=85. Regards, Rainer