Date: Thu, 20 Jun 2013 20:54:03 +0200 From: Rainer Duffner <rainer@ultra-secure.de> To: Kavitha H Yogaraj <ykavitha@uw.edu> Cc: freebsd-java@freebsd.org Subject: Re: FreeBSD java installation help! Message-ID: <82B55BD8-245C-4003-A274-E7A04EF49C96@ultra-secure.de> In-Reply-To: <CAEhp90d3=n0Ywf7o=1NLwdG0sqrkuERGj0ZiqCgDkX_Tpm9s2A@mail.gmail.com> References: <CAEhp90dB%2BxM4%2B39Hz7Ed_m=BqixZzbgZkewv3vDqAVD-9eLoPg@mail.gmail.com> <F8A86A46-6B12-4B41-981C-3DB21787F72C@yahoo.de> <CAEhp90dFDaZ7q4dQFaMWQXNodbWn6ehwSpaXFTR65bp7PnYbxQ@mail.gmail.com> <8F694237-917D-4E7F-9502-CBD676242E3C@ultra-secure.de> <CAEhp90e%2BD4Jdt-KWuuwH%2BDy_3Q7ikXrVkwMqckWzPc72DW8PJA@mail.gmail.com> <CAEhp90d3=n0Ywf7o=1NLwdG0sqrkuERGj0ZiqCgDkX_Tpm9s2A@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
Am 20.06.2013 um 20:28 schrieb Kavitha H Yogaraj <ykavitha@uw.edu>: > 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? > > > # pkg_add ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/openjdk-7.9.05_1.tbz > > I get ---- > > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//java/openjdk-7.9.05_1.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/xextproto-7.2.0.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/renderproto-0.11.1.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/recordproto-1.14.1.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/kbproto-1.0.5.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/inputproto-2.0.2.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/javavmwrapper-2.4_2.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/java-zoneinfo-2012.h.tbz... Done. > Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.1-release//All/pkgconf-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/xproto-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=yes" >> /etc/make.conf and then follow the instructions here: http://wiki.pcbsd.org/index.php/Convert_a_FreeBSD_System_to_PC-BSD®#Switching_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…. Regards, Rainerhelp
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82B55BD8-245C-4003-A274-E7A04EF49C96>
