From owner-freebsd-questions@FreeBSD.ORG Fri Jul 30 04:40:29 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D1B0716A4CE for ; Fri, 30 Jul 2004 04:40:29 +0000 (GMT) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1A0B43D6D for ; Fri, 30 Jul 2004 04:40:28 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp55-219.lns1.adl2.internode.on.net [150.101.55.219])i6U4eE4Y001466; Fri, 30 Jul 2004 14:10:15 +0930 (CST) From: Malcolm Kay Organization: at home To: pryan@singnet.com.sg, FreeBSD Date: Fri, 30 Jul 2004 14:10:14 +0930 User-Agent: KMail/1.5.4 References: <1091156423.4109b9c733864@flounder.singnet.com.sg> In-Reply-To: <1091156423.4109b9c733864@flounder.singnet.com.sg> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200407301410.14110.malcolm.kay@internode.on.net> Subject: Re: java jdk14 install - cannot find file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Jul 2004 04:40:29 -0000 On Friday 30 July 2004 12:30, Peter Ryan wrote: > Hi, > > as part of the jdk14 install, i have to > download the file j2sdk-1_4_2_04-linux-i586.bin > from the sun web site and put it into the > /usr/ports/distfiles folder. > I did that - no problem. > I can see the file listed in the right place. > > When i do the "Make", it aborts with an error. > It cannot find the file I just downloaded. > > I highlight and copy the file name in the error > message. > > Using KDE find files, i paste the filename into > the search field, and the file is found in the > distfiles folder !! > > If I do a whereis on the Konsole and it is not > found. I cd'd to /usr/ports/distfiles and typed > whereis j2sdk-1_4_2_04-linux-i586.bin > and i get j2sdk-1_4_2_04-linux-i586.bin: back. > I assume this means it is not found. > whereis does not find files in the general sense; just executables in PATH and man pages in manpath and sources in some ?standard place?. The j2sdk-1_4_2_04-linux-i586.bin: response is just the header declaring what you asked - any results follow this with complete paths. The usual command for finding files is 'locate' but this depends on a data base that is only updated once a week by default and then only if your machine in running at the appropriate time. You could use $ find / -name j2sdk-1_4_2_04-linux-i586.bin but with the search directed to the entire system you can expect that this might take almost forever. Much quicker would be $ find /usr/ports/distfiles -name j2sdk-1_4_2_04-linux-i586.bin > I looked at the permissions of the file. > they were rw-r--r--. I changed it to > rwxr-xr-x. Didnt make any difference. > > The only other thing i noticed was that the > file is a .bin, and the file type is listed > as a shell script. What file type? You mean $ file j2sdk-1_4_2_04-linux-i586.bin responds with script? It probably is and should be a Bourne shell script; take a look inside and make sure it is the required file and not just a URL of the true file. This sometimes happens. Failing that check very-very carefully that the file name in distfiles is exactly the same as that asked for by make. Malcolm > i am really stuck. I am very new to this and > cant see what is wrong. > > Can anyone help. > > Thanks > Peter > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"