|
我的安装步骤如下:
1-------
bsd-jdk14-patches-7.tar.gz
j2sdk-1_4_2-bin-scsl.zip
j2sdk-1_4_2-src-scsl.zip
j2sdk-1_4_2_08-linux-i586.bin
并且放在了/usr/ports/disfiles/ 下,
2------
#cd /usr/ports/java/jdk14
3------
改/etc/fstab,加上 linprocfs /compat/linux/proc linprocfs rw 0 0
#kldload linprocfs
#mount /compat/linux/proc
4------
#make install clean
可总是提示错误:
[PHP]kaoyan-freebsd# make install clean
===> jdk-1.4.2p7_1 depends on executable: gm4 - found
===> jdk-1.4.2p7_1 depends on executable: zip - found
===> jdk-1.4.2p7_1 depends on file: /usr/local/include/nspr/prtypes.h - found
===> jdk-1.4.2p7_1 depends on file: /usr/X11R6/lib/libXm.so - found
===> jdk-1.4.2p7_1 depends on file: /usr/local/linux-sun-jdk1.4.2/bin/javac - not found
===> Verifying install for /usr/local/linux-sun-jdk1.4.2/bin/javac in /usr/ports/java/linux-sun-jdk14
======================================================================
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
======================================================================
===> linux-sun-jdk-1.4.2.08_1 has known vulnerabilities:
=> jdk -- jar directory traversal vulnerability.
Reference: <http://www.FreeBSD.org/ports/portaudit/18e5428f-ae7c-11d9-837d-000e0c2e438a.html>
=> Please update your ports tree and try again.
*** Error code 1
Stop in /usr/ports/java/linux-sun-jdk14.
*** Error code 1
Stop in /usr/ports/java/jdk14.[/PHP]
我该怎么解决? :ask :help |
|