make buildkernel KERNEL or KERNCONF?

2004-12-22 Thread Zachary Huang
in the usr/src/UPDATING file with FreeBSD 4.2:

we have:

   To update from 4.0-RELEASE or later to the most current
4.x-STABLE
--
make buildworld
make buildkernel KERNEL=YOUR_KERNEL_HERE
make installkernel KERNEL=YOUR_KERNEL_HERE
reboot  (in single user) [1]
make installworld
mergemaster
reboot

whereas in the 4.10 I am getting through cvsup: (notice it is
kernCONF, not KerNEL anymore).

To update from 4.0-RELEASE or later to the most current
4.x-STABLE
--
make buildworld
make buildkernel KERNCONF=YOUR_KERNEL_HERE
make installkernel KERNCONF=YOUR_KERNEL_HERE
reboot  (in single user) [1]
make installworld
mergemaster [2]
reboot

I guess I still follow the first one since that is what came with the
4.2. and I am trying to upgrade from 4.2 to 4.10.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


help with installing Java

2004-12-22 Thread Zachary Huang
I am still trying to install Java (to FreeBSD 4.8), which is needed
for Tomcat.  Are the instructions at
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/x60.html
outdated?

If you follow the instructions, you cannot find the file
j2sdk-1_3_1_10-linux-i386.bin at sun.com.

so 1). where can I find this file? or

2). are there other instructions on the web to go a different route? thanks.

Zachary
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


upgrading from 4.2 to 4.10, succeeded, but still boots 4.2! Help!!!

2004-12-21 Thread Zachary Huang
OK, my old questions might be too simple and I did not get much help from here. 
My old system was 4.2 and I was trying to upgrade to 4.10.  (hardware:
K2-6 350 MHz with 384 meg and 20 gig)

here is what I managed to do:

1). cvsup to RELENG_4_10
here is the supfile

*default host=ftp5.FreeBSD.org
*default base=/usr
*default prefix=/home/ncvs
*default release=cvs tag=RELENG_4_10
*default delete use-rel-suffix
src-all
ports-all

which seemed to be successful (did not see the final message because
too many spams filling on my screen, but it was going for a good 30
min -- could it have stopped in the middle?)  -- how do I stop the
rejected spams showing on the console? very annoying.

2). then I proceeded to  follow the book:
make buildworld 
(config MYKERNEL --this was not in the book)**this should not
mess things up?
make buildkernel KERNEL=MYkernel
make installkernel KERNEL=MYkernel
reboot  (in single user) [1]
make installworld
mergemaster
reboot

no error messages doing all the above steps.

3). I noticed that after reboot the machine was still showing:

cyber# dmesg
Copyright (c) 1992-2000 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the Uni
versity of California. All rights reserved.
FreeBSD 4.2-RELEASE #1: Thu Dec 16 08:53:22 EST 2004

4). So I recompiled the kernel by doing:
 cd /usr/src/sys/i386/conf
 /usr/sbin/config Mykernel
/cd ../../compile/Mykernel
make depend
make
make install

5). after reboot, I still see the same 4.2. RELEASE! 

6). indeed. all the files in /usr/src seems to be the same as before updating...

-rw-r--r--1 root  wheel   4735 Sep  5  1999 COPYRIGHT
drwxr-xr-x2 root  wheel512 Sep 11  2001 CVS
-rw-r--r--1 root  wheel   7257 Nov  7  2000 Makefile
-rw-r--r--1 root  wheel  24600 Nov 11  2000 Makefile.inc1
-rw-r--r--1 root  wheel   9761 Aug 27  1999 Makefile.upgrade
-rw-r--r--1 root  wheel   2642 Oct 27  2000 README
-rw-r--r--1 root  wheel  30679 Nov 16  2000 UPDATING
drwxr-xr-x   32 root  wheel512 Sep 11  2001 bin
drwxr-xr-x   40 root  wheel   1024 Sep 11  2001 contrib
drwxr-xr-x7 root  wheel512 Dec 19 05:05 crypto
drwxr-xr-x   14 root  wheel   1536 Sep 11  2001 etc
drwxr-xr-x   41 root  wheel   1024 Sep 11  2001 games
drwxr-xr-x7 root  wheel512 Sep 11  2001 gnu
drwxr-xr-x6 root  wheel   1536 Sep 11  2001 include
drwxr-xr-x7 root  wheel512 Dec 19 05:05 kerberos5
drwxr-xr-x8 root  wheel512 Dec 19 05:05 kerberosIV
drwxr-xr-x   55 root  wheel   1024 Sep 11  2001 lib
drwxr-xr-x   33 root  wheel   1024 Sep 11  2001 libexec
drwxr-xr-x8 root  wheel512 Sep 11  2001 release
drwxr-xr-x   74 root  wheel   1536 Sep 11  2001 sbin
drwxr-xr-x6 root  wheel512 Dec 19 05:05 secure
drwxr-xr-x   20 root  wheel512 Sep 11  2001 share
drwxr-xr-x   46 root  wheel   1024 Sep 11  2001 sys
drwxr-xr-x8 root  wheel512 Sep 11  2001 tools
drwxr-xr-x  211 root  wheel   3584 Sep 11  2001 usr.bin
drwxr-xr-x  153 root  wheel   3072 Sep 11  2001 usr.sbin

7). Can someone here tell me what I did wrong?  I was not sure if
cvsup grabbed the right source or not, but usually when I was playing
the tag before, it would give me error messages if the tag was not
correct.

Thanks so much and happy holidays!

Zach
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


unsuccessful upgrade from 4.2 to 4.10 through cvsup+make world

2004-12-21 Thread Zachary Huang
the CVSUP must have worked since  the directory /usr/home/ncvs has these files:
325587  bytes:

cyber# ls -l
-rw-r--r--1 root  user   6355 Apr 30  2004 COPYRIGHT
-rw-r--r--1 root  user   8480 Apr 16  2003 Makefile
-rw-r--r--1 root  user  24190 May 25  2004 Makefile.inc1
-rw-r--r--1 root  user   9761 Aug 27  1999 Makefile.upgrade
-rw-r--r--1 root  user   2699 Apr 26  2002 README
-rw-r--r--1 root  user  44963 Dec  1 16:35 UPDATING
drwxr-xr-x   32 root  user512 Dec 21 20:32 bin
drwxr-xr-x   46 root  user   1024 Dec 21 20:44 contrib
drwxr-xr-x7 root  user512 Dec 21 20:48 crypto
drwxr-xr-x   14 root  user   2048 Dec 21 20:48 etc
drwxr-xr-x   41 root  user   1024 Dec 21 20:49 games
drwxr-xr-x6 root  user512 Dec 21 20:51 gnu
drwxr-xr-x6 root  user   1536 Dec 21 20:51 include
drwxr-xr-x7 root  user512 Dec 21 20:51 kerberos5
drwxr-xr-x8 root  user512 Dec 21 20:51 kerberosIV
drwxr-xr-x   57 root  user   1536 Dec 21 20:54 lib
drwxr-xr-x   35 root  user   1024 Dec 21 20:54 libexec
drwxr-xr-x   10 root  user512 Dec 21 20:55 release
drwxr-xr-x   82 root  user   1536 Dec 21 20:55 sbin
drwxr-xr-x6 root  user512 Dec 21 20:55 secure
drwxr-xr-x   23 root  user512 Dec 21 20:57 share
drwxr-xr-x   49 root  user   1024 Dec 21 21:06 sys
drwxr-xr-x8 root  user512 Dec 21 21:06 tools
drwxr-xr-x  221 root  user   3584 Dec 21 21:08 usr.bin
drwxr-xr-x  157 root  user   3072 Dec 21 21:10 usr.sbin

so why were not the binary files updated?

Zach
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


upgrading from 4.2 to 4.10

2004-12-19 Thread Zachary Huang
So my system seems to be messed up (see previous messages).  I tried
cvsup to the old system 4.2 and it did not fix the problem.  Today I
tried upgrading using my old 4.2 CD (sysinstall again) but still get
many sendmail error messages (but seems to be sending and receiving
mails file).

1). what is the best way to fix this? I plan to buy the 4.10 Release
CDs, but then what? I boot the system with CD and do upgrade, but
/usr/src will not be changed. is it safe to remove /usr/src first?

2). I do not quite understand if one need to boot into the new system
(4.10) or not, after cvsup to a new source (say 4.10), before doing
the make buildworld. The book does not say so , so I assume not.

3). the FreeBSD book says I need to make sure all the ports are up to
date before installing JAVA but when I got the ports from 4.10 on a
4.8 system (a differen machine), I had trouble installing Linux
Runtime Lib.  So I am confused when the book says up to date, does it
mean to the same release? (i.e. I should have got ports from 4.8 since
my system is 4.8).

Thanks, 

Zach
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: freebsd-questions Digest, Vol 83, Issue 24

2004-12-19 Thread Zachary Huang
Joshua, 

Thanks for your answers.

 It sounds like your src tree needs to be cleaned up (# rm -rf /usr/src/*)

is this safe to do? do I clean up it before 'upgrading' to my 4.2 CD?
perhaps safer to rename it first?

 and that you should read the Handbook chapter on using cvsup, write
 yourself a src-supfile, or use one of the examples, and then follow the
 well-documented procedure for upgrading your system from source.

I read the book, did  a cvsup to 4.2 (hoping to overwite the 'new'
stuff with the original stuff), tried make buildworld, same error. 
Today I rebooted with a 4.2 CD, did 'upgrade', but it refuses to
upgrade /usr/src (as usual), now I can ssh to the host, but ftp does
not work, I got:

Remote system type is UNIX.
Using binary mode to transfer files.
ftp ls
229 Entering Extended Passive Mode (|||49153|)

I now know how to get cvsup to work, but still I do not understand the
difference between cvsup vs. buying a CD.  Is buying a CD easier to
upgrade to a new release?

happy holidays,

Zach
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make buildworld dies

2004-12-18 Thread Zachary Huang
Sorry for so many questions. On yet another FreeBSD (4.2), I  first
did a sysinstall to upgrade to 5.10, it messed up everything because
the source (/usr/src) did not match all the config files, so sendmail
complains a lot and cannot ssh or telnet to the system.  I then did a
cvsup (without specify which release, simply cvs) successfully (took
like 10 hrs),  then today I tried to

cd /usr/src
make buildworld

after about 8 min,  it stopped with the following error:
cc -O -pipe -DSHELL -I .I/usr/src/bin/sh -Wall -Wfont (? cannot see my
own writing) -c /usr/src/bin/sh
/usr/src/bin/sh/mknodes.c:101.
initializer element is not constant
***error code 1
Stop in /usr/src/bin/sh
*** error code 1
stop in /usr/src.

now I am sort of stuck.  I made a new kernel the day before the
sysinstall, but now I cannot even try compile a new kernel because it
compains the config file is newer than what it wants.

is my system totally messed up?  right now apache still works, but I
can telnet or ssh out but to the host

do not mess upgrades before Christmas, as it gets you in bad mood..:( :(
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


missing sdk1.3.1.10-linux-i386 at sun.com

2004-12-17 Thread Zachary Huang
I am trying to install Tomcat on my FreeBSD (4.8), but got stuck on
JDK. anyone know why one link to sun.com is not working?

according to the freeBSD directions:

3. Next get out your web browser and head on over to
http://java.sun.com/j2se/1.3/download-linux.html and find SDK
downloads...

I can not find this file: j2sdk-1_3_1_10-linux-i386.bin at the above
link, nor can I find in the sun archive.

I found one file that is for 586: j2sdk-1_3_1_10-linux-i586.bin and
this file did not work for me.

I am not sure if I can install java1.4?

thanks for any help!

Zach
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


installing linux lib in FreeBSD

2004-12-17 Thread Zachary Huang
I tried to install the JDK 1.4.6 to FreeBSD (release 4.8), but the got
following messages:

Unpacking...
Checksumming...
0
0
Extracting...
ELF interpreter /compat/linux/lib/ld-linux.so.2 not found
Abort trap
Done.

This is the same message I got when trying to install
j2sdk-1_3_1_10-linux-i586.bin.

how do I install the linux lib in FreeBSD?

I can not find j2sdk-1_3_1_10-linux-i386.bin at sun.com

Thanks,

Zachary
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


stuck at gettext....

2004-12-17 Thread Zachary Huang
I found the link to install Linux Runtime Libraries
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/linuxemu-lbc-install.html)

but still I got stuck here when installing the
/usr/ports/emulators/linux_base.  It appears that the patch for
freebsd did not work for gettext... now what do I do?

cell# make install
===  Vulnerability check disabled
===  Found saved configuration for gettext-0.13.1_1
 gettext-0.13.1.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
 Attempting to fetch from http://ftp.gnu.org/gnu/gettext/.
Receiving gettext-0.13.1.tar.gz (6458256 bytes): 100% (ETA 00:00)  
6458256 bytes transferred in 44.3 seconds (142.33 kBps)
===  Extracting for gettext-0.13.1_1
 Checksum OK for gettext-0.13.1.tar.gz.
===  Patching for gettext-0.13.1_1
===  Applying FreeBSD patches for gettext-0.13.1_1
1 out of 1 hunks failed--saving rejects to Makefile.in.rej
 Patch patch-Makefile.in failed to apply cleanly.
*** Error code 1

Stop in /usr/ports/devel/gettext.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]