From owner-freebsd-questions@FreeBSD.ORG Mon Feb 21 15:45:45 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C8EC7106564A for ; Mon, 21 Feb 2011 15:45:45 +0000 (UTC) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: from gizmo.acns.msu.edu (gizmo.acns.msu.edu [35.8.1.43]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5818FC15 for ; Mon, 21 Feb 2011 15:45:44 +0000 (UTC) Received: from gizmo.acns.msu.edu (localhost [127.0.0.1]) by gizmo.acns.msu.edu (8.13.6/8.13.6) with ESMTP id p1LFd8dD032484; Mon, 21 Feb 2011 10:39:08 -0500 (EST) (envelope-from jerrymc@gizmo.acns.msu.edu) Received: (from jerrymc@localhost) by gizmo.acns.msu.edu (8.13.6/8.13.6/Submit) id p1LFd8la032483; Mon, 21 Feb 2011 10:39:08 -0500 (EST) (envelope-from jerrymc) Date: Mon, 21 Feb 2011 10:39:08 -0500 From: Jerry McAllister To: andreas.junius@googlemail.com Message-ID: <20110221153908.GC32318@gizmo.acns.msu.edu> References: <4D6226DC.6020604@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4D6226DC.6020604@googlemail.com> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@freebsd.org Subject: Re: How to install Tomcat 7 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Feb 2011 15:45:45 -0000 On Mon, Feb 21, 2011 at 07:18:28PM +1030, Andreas Junius wrote: > Hi All, > > This is my first post to this list, so I hope I get it right. I'm new to > both Unix and freeBSD and I've been doing my first steps for three days > now. I was able to install Java and Tomcat 6, because these products are > part of the ports directory. However I'd prefer Tomcat 7, so I got the > tomcat7.tar.gz and extracted the files to /usr/ports/www/tomcat7. I am not sure I understand all of what you say and I have never installed Tomcat separately. But,,, If I install something from source that is not in ports, I generally put the ...tar.gz file of its source in /usr/local/src and then un-gz/untar it (tar xzvf...) there. Normally, a well made open source product will make a directory for the product and put everything in there. Just cd to that and start building. That usually starts with running configure from within that directory, ge. NOTE here: Do not confuse this pre-build configure that sets up compiler and loader and system options with the post-build configure mentioned below that sets up running options for the utility. # ./configure --prefix=/usr/local/product_name \ / more_configure_options_if_necessary # make # make install Then do what it takes to configure it to run - there may be a config file typically in /usr/local/product_name/conf/... In FreeBSD some of the configuration items can be set in /etc/rc.conf If it is to run as a daemon, set up its startup in the rc.d Nowdays, most reasonable open source products that are set up with a good layout, conprehensive prebuild configure and well built make files to be installed on a UNIX or Lunix system follow this basic pattern with a few small variations. ////jerry > > The I tried the following and got the message: > > # pwd > /usr/ports/www/tomcat7 > # make install clean > ===> Vulnerability check disabled, database not found > ===> License accepted by the user > => apache-tomcat-7.0.6.tar.gz is not in /usr/ports/www/tomcat7/distinfo. > => Either /usr/ports/www/tomcat7/distinfo is out of date, or > => apache-tomcat-7.0.6.tar.gz is spelled incorrectly. > *** Error code 1 > > Stop in /usr/ports/www/tomcat7. > > > To be honest, I don't understand that message. That file > apache-tomcat-7.0.6.tar.gz can't be in /usr/ports/www/tomcat7/distinfo, > because distinfo is a file and not a directory. What went wrong? I got > the missing file, however where is it supposed to be? > > Thanks for help, > > AndyJ > _______________________________________________ > 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"