LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 03-13-2006, 03:42 PM   #1
tuananhbirm
Member
 
Registered: Apr 2004
Posts: 40

Rep: Reputation: 15
Installing Java in a dedicated server


Hi,

i've been struggling to install Java in a dedicated server, but it keeps throwing error that i have absolutely no idea how to fix.

The server:
FreeBSD ds2200.dedicated.turbodns.co.uk 4.11-STABLE FreeBSD 4.11-STABLE #6: Fri Aug 26 17:01:22 BST 2005 root@unixbuild.host.donhost.co.uk:/usr/obj/usr/src/sys/DEDICATED i386


And the java i tried is in /usr/ports/java/linux-sun-jdk14. And i always have a Command not found exception when running kldload



The error:





root@ds2200# make install
======================================================================
Warning: This JDK may be unstable. You are advised to use the native
FreeBSD JDK, in ports/java/jdk14.

This Java VM will attempt to obtain some system information by
accessing files in linux's procfs. You must install the Linux
emulation procfs filesystem for this to work correctly. The JVM
will exhibit various problems otherwise. This can be accomplished
by adding the following line to your /etc/fstab file:

linprocfs /compat/linux/proc linprocfs rw 0 0

and then, as root, executing the commands:

kldload linprocfs
mount /compat/linux/proc

======================================================================
===> Vulnerability check disabled, database not found
===> Extracting for linux-sun-jdk-1.4.2.10
=> MD5 Checksum OK for j2sdk-1_4_2_10-linux-i586.bin.
===> linux-sun-jdk-1.4.2.10 depends on file: /compat/linux/etc/redhat-release - not found
===> Verifying install for /compat/linux/etc/redhat-release in /usr/ports/emulators/linux_base-8
===> linux_base-8-8.0_14 depends on executable: rpm - not found
===> Verifying install for rpm in /usr/ports/archivers/rpm
===> Building for rpm-3.0.6_13
gmake all-recursive
gmake[1]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6'
Making all in intl
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/intl'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/intl'
Making all in po
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/po'
PATH=../intl:$PATH : --default-domain=rpm --directory=.. \
--add-comments --keyword=_ --keyword=N_ \
--files-from=./POTFILES.in \
&& test ! -f rpm.po \
|| ( rm -f ./rpm.pot \
&& mv rpm.po ./rpm.pot )
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/po'
Making all in lib
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/lib'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/lib'
Making all in build
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/build'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/build'
Making all in misc
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/misc'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/misc'
Making all in tools
gmake[2]: Entering directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/tools'
/bin/sh /usr/local/bin/libtool --mode=link cc -O -pipe -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -L../build -L../lib -o dump dump.o ../build/librpmbuild.la ../lib/librpm.la -lpopt ../misc/libmisc.a -L/usr/local/lib -lintl -liconv -L/usr/local/lib -lz
cc -O -pipe -D_GNU_SOURCE -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts -o .libs/dump dump.o -L/usr/ports/archivers/rpm/work/rpm-3.0.6/build -L/usr/ports/archivers/rpm/work/rpm-3.0.6/lib ../build/.libs/librpmbuild.so -L/usr/local/lib ../lib/.libs/librpm.so /usr/local/lib/libpopt.so ../misc/libmisc.a -lintl -liconv -lz -Wl,--rpath -Wl,/usr/local/lib
../lib/.libs/librpm.so: warning: tempnam() possibly used unsafely; consider using mkstemp()
../lib/.libs/librpm.so: warning: mktemp() possibly used unsafely; consider using mkstemp()
../lib/.libs/librpm.so: undefined reference to `bzdopen'
../lib/.libs/librpm.so: undefined reference to `bzerror'
../lib/.libs/librpm.so: undefined reference to `bzwrite'
../lib/.libs/librpm.so: undefined reference to `bzclose'
../lib/.libs/librpm.so: undefined reference to `bzread'
../lib/.libs/librpm.so: undefined reference to `bzflush'
../lib/.libs/librpm.so: undefined reference to `bzopen'
gmake[2]: *** [dump] Error 1
gmake[2]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6/tools'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/archivers/rpm/work/rpm-3.0.6'
gmake: *** [all-recursive-am] Error 2
*** Error code 2

Stop in /usr/ports/archivers/rpm.
*** Error code 1

Stop in /usr/ports/emulators/linux_base-8.
*** Error code 1

Stop in /usr/ports/java/linux-sun-jdk14.





Could anyone help me fix this please !!!!

THanks
Edit/Delete Message
 
Old 03-14-2006, 07:47 AM   #2
cnjohnson
Member
 
Registered: Nov 2002
Location: Nashville
Distribution: FreeBSD, Linux, OS-X
Posts: 544

Rep: Reputation: 30
Two things: 1) is kldload on your system and are you running that command as root; and 2) should you perhaps heed the advice of the port: "Warning: This JDK may be unstable. You are advised to use the native FreeBSD JDK, in ports/java/jdk14"?

Cheers--
Charles
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help ! How to launch/install Java on a dedicated server under Linux antares7364 Linux - Software 4 11-14-2005 12:45 PM
Dedicated Server Distros (SME server and Censornet) Sugga Linux - General 2 09-22-2005 03:15 AM
Installing RealVNC on a dedicated server mystic crunk Linux - Networking 1 06-30-2004 08:46 PM
Installing a Half Life Dedicated Server Bill Hope Linux - Newbie 12 09-24-2003 10:50 PM
where to get UT dedicated server dkc_ace Linux - General 2 12-19-2002 07:11 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 09:19 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration