trying to install linux-brave

Trying to install linux-brave I get:

pkg install linux-brave-1.85.111
:
[ 1/88] Installing linux_base-rl9-9.7...
Cannot install package: kernel missing 64-bit Linux support
pkg: PRE-INSTALL script failed

Check for kernel support:
# uname -m
amd64

which seems to say linux kernel support is installed.

/boot/loader.conf
# cat /boot/loader.conf
security.bsd.allow_destructive_dtrace=0
kern.vty=vt
linux_load="YES"


In doing a kldstat it also seems the necessary module are there.
 
/etc/rc.d/linux seems to be a bit more complex.
doug@loki:~ % cd /usr/local/etc/rc.d/
doug@loki:/usr/local/etc/rc.d % ls -l
total 56
-r-xr-xr-x 1 root wheel 945 Jun 13 21:42 avahi-daemon
-r-xr-xr-x 1 root wheel 1197 Jun 13 21:42 avahi-dnsconfd
-rwxr-xr-x 1 root wheel 447 Jun 13 21:44 cupsd
-rwxr-xr-x 1 root wheel 592 Jun 10 21:37 dbus
-rwxr-xr-x 1 root wheel 593 Jun 13 21:30 git_daemon
-rwxr-xr-x 1 root wheel 1528 Jul 8 22:35 jackd
-rwxr-xr-x 1 root wheel 535 Jun 13 21:50 lightdm
-rwxr-xr-x 1 root wheel 8433 Jun 13 22:16 samba_server
-rwxr-xr-x 1 root wheel 1071 Jun 14 16:56 slim
-rwxr-xr-x 1 root wheel 258 Jul 1 21:09 sndiod
-rwxr-xr-x 1 root wheel 797 Jun 20 06:45 vmware-guestd
-rwxr-xr-x 1 root wheel 1387 Jun 20 06:45 vmware-kmod
doug@loki:/usr/local/etc/rc.d %

Not very complex, unless you mean its not there and I have to figure out what to put in it
 
I'd like to be sure that linux service is running before installing any linux-* packages.

# service linux enable
# service linux start
or
# service linux onestart

It's also located in /etc/rc.d, not in /usr/local/etc/rc.d since it's a part of the base system.
 
Doug41 the Linux rc scripts live in root prefix as FreeBSD components, not /usr/local prefix where 3rd party packages live.

Delete the line from your loader.conf.

As root, enter


sysrc linux_enable="YES"


This will put linux_enable="YES" into rc.conf. Reboot, or service linux start, and install linux-brave.

Read this -> https://docs.freebsd.org/en/books/handbook/linuxemu/
Because the loader.conf stuff is old ways, you might want to brush up.
Reason why it moved, because each driver has to be manually put in loader.conf, and rc script is singular - thus one script can load linux.ko and linux64.ko, and more if we need.
 
kldload linux64
Thanks. That worked. Although my situation was slightly different. The code is below.
$ doas pkg upgrade

Code:
Installed packages to be REINSTALLED:
        freerdp3-3.32.1 [FreeBSD-ports] (required shared library changed: libavcodec.so.62 (removed), libavcodec.so.63 (added), libavdevice.so.62 (removed), libavdevice.so.63 (added), libavfilter.so.11 (removed), libavfilter.so.12 (added), libavformat.so.62 (removed), libavformat.so.63 (added), libavutil.so.60 (removed), libavutil.so.61 (added), libswresample.so.6 (removed), libswresample.so.7 (added), libswscale.so.10 (added), libswscale.so.9 (removed))
        gvfs-1.58.4_1 [FreeBSD-ports] (required shared library changed: libbluray.so.3 (removed), libbluray.so.4 (added))
        openbox-3.6_14 [FreeBSD-ports] (option changed: IMLIB (removed), IMLIB2 (added))
        samba416-4.16.11_12 [FreeBSD-ports] (direct dependency changed: openldap26-client (origin changed))
        xorg-docs-1.7.3,1 [FreeBSD-ports] (ABI changed: 'FreeBSD:15:amd64' -> 'FreeBSD:15:*')
        xorg-drivers-7.7_7 [FreeBSD-ports] (option changed: MGA (added), QXL (added))

Installed packages to be REMOVED:
        libslang2: 2.3.3_2

Number of packages to be removed: 1
Number of packages to be installed: 2
Number of packages to be upgraded: 151
Number of packages to be reinstalled: 6

The process will require 610 MiB more space.

Proceed with this action? [y/N]: y
[  1/160] Installing linux_base-rl9-9.8...
Cannot install package: kernel missing 64-bit Linux support
pkg: PRE-INSTALL script failed
 
Any port/package that has USES= linux want to have the kernel module loaded or will fail to install. It's a bit annoying but I'm happy it doesn't "automagically" load the kernel module during the installation of a port/package. And I'm honestly not entirely sure why it needs to be loaded if all the package does is extract some files to a specific location.
 
Back
Top