Re: How to install Tomcat 7

2011-02-22 Thread Andreas Junius

Thanks to you all for your help! That hint below worked fine.

Cheers,
Andy

On 21/02/2011 9:06 PM, Michael Powell wrote:

Repair the damage you've done to /usr/ports/www/tomcat7. You can just rm -rf
the entire directory and a ports tree refresh will fix it for you. Then
change into /usr/ports/www/tomcat6 and do make deinstall. This removes
Tomcat 6. Then cd to /usr/ports/www/tomcat7 and do make install clean. You
do not need to be concerned with downloading the tarball, the port will
fetch it for you.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


How to install Tomcat 7

2011-02-21 Thread Andreas Junius

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.


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-unsubscr...@freebsd.org


Re: How to install Tomcat 7

2011-02-21 Thread Christer Solskogen
On Mon, Feb 21, 2011 at 9:48 AM, Andreas Junius
andreas.jun...@gmail.com wrote:

 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?


Could you post your /etc/make.conf, please? All of it. I suspect there
is something terribly wrong there.

-- 
chs,
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to install Tomcat 7

2011-02-21 Thread Michael Powell
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.

Sorry but this is not the way this works. Maybe study the sections in the 
Handbook which explain how to install software on FreeBSD. This is just 
totally a wrong procedure.
 
 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?

The distinfo file contains a checksum hash and file size for the expected 
tarball.  The message means the tarball isn't a match.

When you try to make a port, it will fetch the source tarball and place it 
into /usr/ports/distfiles. 

What seems so totally bizarre about this is you indicated you installed Java 
and Tomcat 6 successfully? Why not just remove Tomcat 6 and install Tomcat 7 
using a method which already worked to install Tomcat 6?

Repair the damage you've done to /usr/ports/www/tomcat7. You can just rm -rf 
the entire directory and a ports tree refresh will fix it for you. Then 
change into /usr/ports/www/tomcat6 and do make deinstall. This removes 
Tomcat 6. Then cd to /usr/ports/www/tomcat7 and do make install clean. You 
do not need to be concerned with downloading the tarball, the port will 
fetch it for you.

If you aren't clear on how to update the ports tree prior to installing or 
updating software this is covered in the Handbook. Dependency tracking 
depends on the ports tree. I suspect that you tried to 'add' the tomcat7 
port to a stale ports tree, but the proper thing is to update the entire 
ports tree, as there is already a tomcat7 port present. Trying to add just 
one port to an old, out of date ports tree is asking for dependency issues.

-Mike


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: How to install Tomcat 7

2011-02-21 Thread Jerry McAllister
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-unsubscr...@freebsd.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org