Re: unabe to install linux compatibility on freebsd 8.0-R
Hi, thanks for replying On Sun, Feb 21, 2010 at 03:10:05AM +0100, Pieter de Goeje wrote: Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= in /etc/src.conf or /etc/make.conf? I have no src.conf make.conf looks like this: $ cat /etc/make.conf | less CPUTYPE?=athlon64 WITH_MUTT_IMAP_HEADER_CACHE=yes WITH_MUTT_SMTP=yes WITH_MUTT_CYRUS_SASL2=yes # added by use.perl 2009-11-27 15:44:59 PERL_VERSION=5.10.1 Check the last modification date of /boot/kernel/linux.ko, does it correspond (roughly) to the one from /boot/kernel/kernel? Yes, it does: $ ls -la /boot/kernel/linux.ko -r-xr-xr-x 1 root wheel 240K Feb 20 21:50 /boot/kernel/linux.ko* $ ls -la /boot/kernel/kernel -r-xr-xr-x 1 root wheel 6.8M Feb 20 21:08 /boot/kernel/kernel* About the kernel option, try COMPAT_LINUX32. It's a documentation bug. OK I'll try that now, thanks edit: I got this error: ../../../amd64/linux32/linux32_sysvec.c:38:2: error: #error Unable to compile Linux-emulator due to missing COMPAT_IA32 option! mkdep: compile failed *** Error code 1 so I'll add that one, too - seems to be building now cheers -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: unabe to install linux compatibility on freebsd 8.0-R
On Sun, Feb 21, 2010 at 08:47:01AM +, John wrote: Hi, thanks for replying On Sun, Feb 21, 2010 at 03:10:05AM +0100, Pieter de Goeje wrote: Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= in /etc/src.conf or /etc/make.conf? I have no src.conf make.conf looks like this: $ cat /etc/make.conf | less CPUTYPE?=athlon64 WITH_MUTT_IMAP_HEADER_CACHE=yes WITH_MUTT_SMTP=yes WITH_MUTT_CYRUS_SASL2=yes # added by use.perl 2009-11-27 15:44:59 PERL_VERSION=5.10.1 Check the last modification date of /boot/kernel/linux.ko, does it correspond (roughly) to the one from /boot/kernel/kernel? Yes, it does: $ ls -la /boot/kernel/linux.ko -r-xr-xr-x 1 root wheel 240K Feb 20 21:50 /boot/kernel/linux.ko* $ ls -la /boot/kernel/kernel -r-xr-xr-x 1 root wheel 6.8M Feb 20 21:08 /boot/kernel/kernel* About the kernel option, try COMPAT_LINUX32. It's a documentation bug. OK I'll try that now, thanks edit: I got this error: ../../../amd64/linux32/linux32_sysvec.c:38:2: error: #error Unable to compile Linux-emulator due to missing COMPAT_IA32 option! mkdep: compile failed *** Error code 1 so I'll add that one, too - seems to be building now That didn't fix it, and I should have mentioned at the start that I was using a custom kernel. I was also having a problem with rar out of the ports - it gave a similar error to the kldstat. So I did this: /usr/local/bin/rar: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), statically linked, for FreeBSD 7.0 (700055), stripped and then remembered I'd stripped out the compatibility 4 5 6 and 7 from the kernel. So put them back in, recompiled and now everything works. Sorry for the noise. -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
unabe to install linux compatibility on freebsd 8.0-R
Hello list, I'm following the instructions at http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html I tried to kldload the module: # kldload linux kldload: can't load /boot/kernel/linux.ko: Exec format error # kldstat Id Refs AddressSize Name 1 22 0x8010 846698 kernel 21 0x80947000 74a8 geom_concat.ko 31 0x8094f000 8308 ng_ubt.ko 43 0x80958000 154a0netgraph.ko 52 0x8096e000 12ff8ng_hci.ko 62 0x80981000 2d40 ng_bluetooth.ko 71 0x80a22000 a24 pflog.ko 81 0x80a23000 2bd2dpf.ko 91 0x80a4f000 a8ca fuse.ko 101 0x80a5a000 7d6 accf_http.ko 111 0x80a5b000 1ce accf_data.ko If I try to install the linux port: # cd /usr/ports/emulators/linux_base-f10 # make === linux_base-f10-10_2 linuxulator is not (kld)loaded. *** Error code 1 Stop in /usr/ports/emulators/linux_base-f10. Finally, if I try to install compatibility in the kernel, I get the error unknown option COMPAT_LINUX at the config phase. Can anyone help me please? # uname -p -r 8.0-RELEASE-p2 amd64 The system was built today. -- John - comp dot john at googlemail dot com OpenBSD firewall | FreeBSD desktop | Ubuntu Karmic laptop GPG: 0xF08A33C5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: unabe to install linux compatibility on freebsd 8.0-R
On Sunday 21 February 2010 00:54:54 John wrote: Hello list, I'm following the instructions at http://www.freebsd.org/doc/handbook/linuxemu-lbc-install.html I tried to kldload the module: # kldload linux kldload: can't load /boot/kernel/linux.ko: Exec format error # kldstat Id Refs AddressSize Name 1 22 0x8010 846698 kernel 21 0x80947000 74a8 geom_concat.ko 31 0x8094f000 8308 ng_ubt.ko 43 0x80958000 154a0netgraph.ko 52 0x8096e000 12ff8ng_hci.ko 62 0x80981000 2d40 ng_bluetooth.ko 71 0x80a22000 a24 pflog.ko 81 0x80a23000 2bd2dpf.ko 91 0x80a4f000 a8ca fuse.ko 101 0x80a5a000 7d6 accf_http.ko 111 0x80a5b000 1ce accf_data.ko If I try to install the linux port: # cd /usr/ports/emulators/linux_base-f10 # make === linux_base-f10-10_2 linuxulator is not (kld)loaded. *** Error code 1 Stop in /usr/ports/emulators/linux_base-f10. Finally, if I try to install compatibility in the kernel, I get the error unknown option COMPAT_LINUX at the config phase. Can anyone help me please? # uname -p -r 8.0-RELEASE-p2 amd64 The system was built today. Somehow your linux.ko is broken, do you perhaps have WITHOUT_LINUX= in /etc/src.conf or /etc/make.conf? Check the last modification date of /boot/kernel/linux.ko, does it correspond (roughly) to the one from /boot/kernel/kernel? About the kernel option, try COMPAT_LINUX32. It's a documentation bug. -- Pieter de Goeje ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Linux compatibility in FreeBSD
Dears, Does anyone know or already configured the linux compatibility in FreeBSD to install rpm packages and so on. Actually I'm running the i386 7.2 FreeBSD and the following package. %pkg_info |grep linu linux_base-fc-4_14 Base set of packages needed in Linux mode (for i386/amd64) I already saw the linux compatibility in the hand book of FreeBSD, but I didn't find too much information regarding rpm packages. Is there any way to do it ? any help is really welcome ! Thank you all in advance. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Linux compatibility in FreeBSD
On Wed, 14 Oct 2009 10:57:58 -0300 Leandro F Silva wrote: Does anyone know or already configured the linux compatibility in FreeBSD to install rpm packages and so on. hm, actually (almost) all linux applications are installed using RPM packages. Did you mean using linux RPM database? Actually I'm running the i386 7.2 FreeBSD and the following package. %pkg_info |grep linu linux_base-fc-4_14 Base set of packages needed in Linux mode (for i386/amd64) FYI: You may use `pkg_info -Ix linux_base` for this. I already saw the linux compatibility in the hand book of FreeBSD, but I didn't find too much information regarding rpm packages. Is there any way to do it ? any help is really welcome ! Using RPM database is not supported since FreeBSD has its own package database for all applications including linux ones. Said that I don't mean it doesn't work. If you need to use RPM database to register applications that does not exist at ports you may give it a try. But the best way is to create ports for those applications and install them from ports. BTW, they really don't need to exist at the official portstree. You may place them, say, to /usr/ports/local. A PR with them will be a good thing though. -- WBR, Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone Internet SP FreeBSD Committer, http://www.FreeBSD.org The Power To Serve ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org