|
发表于 2005-6-19 14:58:14
|
显示全部楼层
Post by benxiong
我的安装步骤如下:
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
第一,上面所提示的的JAVA包其中是 bsd-jdk14-patches-7.tar.gz这是其一,请注意patches指得是补丁程序!
第二,在make install clean时没有在你的系统中找到gm4、zip 、prtypes.h、libXm.so、javac几个关联库文件。
第三,你必需验证jdk1.4.2和javac在/usr/local/linux-sun-jdk1.4.2/bin/javac目录下。
目前不太清楚你的系统安装情况,如:X11、python、zip等是怎样组织和安装的,并是否已经安装。以上提示显示系统中在安装jdk时缺少一些必要的关联。具目前来看ports中的java-jdk只是一些jdk的补丁程序,虽然ports中有sun-jsdk5或sun-jre1.5但还是建意你还是下载sun-jsdk1.5安装它。目前不太好判断你的问题出现的因素,因为不知你是以什么方法安装或安了些什么没装什么东西,多看看相关FAQ信息。 |
|