java unter BSD 5.4

  • Thread starter Thread starter joneum
  • Start date Start date
J

joneum

Guest
So, mal wieder ein Java Problem.

Ich bin nach folgender anleitung vorgegangen:
http://wiki.bsdforen.de/index.php/FreeBSD_-_Mozilla_mit_Java-_und_Flashsupport

vorher noch brav die ports upgedated, portupgrade ausgeführt, man will ja auf dem neusten Stand sein.

flash habe ich dann mal ausen vor gelassen.

# portinstall java/jdk14
< Die angegebenen Dateien mit dem Webbrowser herunterladen und unter /usr/ports/distfiles ablegen >

Habe ich gemacht, alle dateien brav von sun.com runtergeladen und in das richtige verzeichnic gepackt.

linprocfs /compat/linux/proc linprocfs rw 0 0

Habe ich dann brav in die /etc/fstab geschrieben.

mount /compat/linux/proc

da ging es dann los:
donald# mount /compat/linux/proc
mount: /compat/linux/proc: unknown special file or file system

gut, es steht ja noch ein tipp:

# kldload linprocfs
# mount /compat/linux/proc

gut, # kldload linprocfs macht er brav, meckert nicht.

Dann Probieren wir noch # mount /compat/linux/proc
Ja denkste :

donald# mount /compat/linux/proc
mount: /compat/linux/proc: unknown special file or file system

hm, gut, was steht den noch in der anleitung:

# echo 'linprocfs_load="YES"' >> /boot/loader.conf

gut, lassen wir die fehlermeldung oben mal ausen vor, probieren wir es einfach mal aus. Frisst er auch ohne zu meckern.
Bist einfach mal mutig, und gelst eben noch einen Schritt weiter, den nun kommt ja:

#
portinstall java/jdk14
< Über 6 Stunden warten!!! >

Gut, das ding fängt auch an loszujagen, und du denkst, hey super, läuft ja doch durch.

Tja, mal wieder zu früh gefreut:
ERROR: You have to have LINPROCFS mounted before
starting to build of native JDK 1.4.2.

You may do it by following set of commands:

# kldload linprocfs

and

# mount -t linprocfs linprocfs /compat/linux/proc

*** Error code 1

Stop in /usr/ports/java/jdk14.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall63138.0 make
** Fix the problem and try again.
** Listing the failed packages (*:skipped / !:failed)
! java/jdk14 (unknown build error)
---> Packages processed: 0 done, 0 ignored, 0 skipped and 1 failed

Ja toll, dejavue, das hatten wir schon mal.

Startest die kiste mal neu, und schaust was dann passiert. Toll, die mühle startet gar nicht mehr, meckert irgendwas mit /bin/sh ...
Nach einigen hin und her die Lösung gefunden, es musste
linprocfs /compat/linux/proc linprocfs rw 0 0
wieder rausgenommen werden, und erst dann startet die mühle wieder.




Wo liegt da der (denk???)-fehler?
 
Hallo Enterhaken,

hast Du denn die Linuxbinärkompatibilität installiert?
Ich hatte das schon damals,
als ich FreeBSD das erste mal installierte,
direkt mit sysinstall gemacht, da konnte man das auswählen,
und ich dachte mir, es wäre eine gute Idee. :cool:

Habe auch gerade mal ein bißchen verglichen, so steht es bei mir drin:

/boot/loader.conf:
Code:
########################################
### Linux Emulation
########################################

linux_load="YES"
linprocfs_load="YES"		# Linux compatibility process filesystem

Mein geladenenen Kernelmodule:
Code:
kldstat
Id Refs Address    Size     Name
 1   19 0xc0400000 3f834c   kernel
 2    1 0xc07f9000 412c     fdescfs.ko
 3    1 0xc07fe000 6e28     linprocfs.ko
 4    3 0xc0805000 1c828    linux.ko
 5    2 0xc0822000 1f3bc    sound.ko
 6    1 0xc0842000 3c065c   nvidia.ko
 7    1 0xc0c03000 10938    snd_emu10kx.ko
 8   15 0xc0c14000 5eb70    acpi.ko
 9    1 0xc41bd000 30000    nfsclient.ko
10    1 0xc424e000 4000     logo_saver.ko
Da tauchen dann auch "linux.ko" und "linprocfs.ko" auf.


Der Linux betreffende Teil meiner /etc/fstab:
Code:
linproc         	/compat/linux/proc	linprocfs	rw 		 0	0
Wundert mich nur, das bei mir vorne "linproc" steht, ohne das "fs" dran :confused:
Meine aber, das hat sysinstall so eingetragen,
ich kann mich nicht daran erinnern, das ich das "zu Fuß" so reingeschrieben habe.
Meine Linuxbinärkompatibilität funktioniert,
und java habe ich auch schon ein paar mal darauf gebaut.

Im BSDForen Wiki steht es aber wirklich als:
linprocfs /compat/linux/proc linprocfs rw 0 0
Vielleicht möchte sich ja noch jemand zu Wort melden,
der sich damit auskennt.

Im FreeBSD Handbuch steht auch noch was zu Linux Binärkompatibilität im Kapitel 10.
http://www.freebsd.org/doc/de_DE.ISO8859-1/books/handbook/linuxemu.html (<== in Deutsch)

Viel Erfolg! :)


Gruß, Fusselbär
 
Last edited:
Hallo Fusselbär,

Der Linux betreffende Teil meiner /etc/fstab:
Code:

linproc /compat/linux/proc linprocfs rw 0 0


Wundert mich nur, das bei mir vorne "linproc" steht, ohne das "fs" dran

Es muß linprocfs heissen (man fstab):
The first field, (fs_spec), describes the block special device or remote
file system to be mounted. For file systems of type ufs, the special
file name is the block special file name, and not the character special
file name. If a program needs the character special file name, the pro-
gram must create it by appending a ``r'' after the last ``/'' in the spe-
cial file name.

Aber Du kannst es doch selber überprüfen:
Code:
# mount
Dann bekommst Du die komplette Liste aller "gemounteten" Dateisysteme (Beispiel):
Code:
/dev/da0s1a on / (ufs, local)
devfs on /dev (devfs, local)
procfs on /proc (procfs, local)
/dev/da0s1e on /tmp (ufs, local, nodev, nosuid, soft-updates)
/dev/da0s1f on /usr (ufs, local, soft-updates)
/dev/da0s1g on /usr/ports (ufs, local)
/dev/da0s1h on /usr/src (ufs, local, soft-updates)
/dev/da0s1d on /var (ufs, local, soft-updates)
/dev/da1s1f on /home (ufs, NFS exported, local, soft-updates)
/dev/da1s1e on /jails/www (ufs, local, soft-updates)
/dev/da1s1d on /jails/dns (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)
devfs on /var/named/dev (devfs, local)
devfs on /jails/www/dev (devfs, local)
procfs on /jails/www/proc (procfs, local)
/usr/ports on /jails/www/usr/ports (nullfs, local)
/jails/www/www/juergendankoweit on /home/homepage/office52/user/work (nullfs, local)

Viele Grüße

Jürgen
 
Last edited by a moderator:
Hallo juedan,

ja, wenn ich mit mount abfrage:
Code:
mount | grep compat 
linprocfs on /usr/compat/linux/proc (linprocfs, local)

Habe wohl eine sehr merkwürdige Installation,
aber sie funktioniert,
obwohl in der /etc/fstab bei mir wirklich das vordere "linproc" orginal ohne "fs" drinn steht! :ugly:


Gruß, Fusselbär
 
also ich hab es eben nochmal nach der neuen anleitung versucht, und komme weiterhin auf den gleichen fehler zum schluss..

hmmmmm......
 
Back
Top