Attempt to get linux emulation going on AMD64 5.3-RC1

Lars Tunkrans lars.tunkrans at
Sat Oct 23 04:55:51 PDT 2004


  I attemted to get linux emulation going in AMD64 5.3-RC1

  I put the varaiables in the Kernel config file, rebuild and reloaded.

   options 	LINPROCFS
   options 	COMPAT_43
   options 	COMPAT_LINUX32

  I edited /etc/fstab  for linprocfs   and set linux_enabled="YES" in rc.conf

  I used  Francois Tigeot's patch for emulators/linux_base
  And Installed linux_base without problems.

-------------- next part --------------
--- Makefile.orig	Wed Oct  6 15:13:33 2004
+++ Makefile	Wed Oct  6 16:05:51 2004
@@ -110,6 +110,9 @@
  RPM=			LC_ALL=C rpm
  RPMFLAGS=		--root ${LINUXBASE} --dbpath ${DBPATH} --nodeps \
  			--replacepkgs --ignoreos --ignorearch
+.if (${ARCH} == "amd64")
+RPMFLAGS+=	--noscripts

  REMOVE_DIRS=		boot dev home root tmp var/tmp usr/local usr/tmp
@@ -118,7 +121,7 @@
  BRAND_FILES=		bin/rpm sbin/ldconfig sbin/sln

-FALLBACK_ELF_MIB=	kern.fallback_elf_brand
+FALLBACK_ELF_MIB=	kern.elf32.fallback_brand
  PREVIOUS_ELF!=		/sbin/sysctl -n ${FALLBACK_ELF_MIB}

After a second Reboot  all seems well and boot_messages reports
"additional ABI support: Linux "

Then I used Tim Robbins instructions for installing linux acrobat.

  When trying to start acrobat  it says:

acroread: error while loading shared libraries: cannot open shared objectfile : No such file or directory.

That is not true since /usr/compat/linux/usr/X11R6/lib/  does exist.
Therefore I assume something is not right with the library searchpath.
Where or How do I edit the library searchpath for the linux emulator ?


More information about the freebsd-amd64 mailing list