Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: qingquan on January 04, 2023, 04:31:17 AM

Title: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 04:31:17 AM
TinyCorePure64-12.0:
compile open iscsi
tce-load -iw compiletc.tcz
tce-load -iw tpm2-tss-dev.tcz
tce-load -iw curl-dev.tcz
tce-load -iw meson.tcz
tce-load -iw cmake.tcz

cd iscsi
meson build

Run-time dependency libkmod found: NO (tried pkgconfig)

meson,build:84:0: ERROR: Dependency "libkmod" not found,tried pkgconfig

ibkmod is not found in the software repository,
What should I do next? thank you!
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 04, 2023, 05:11:46 AM
Is there a meson build option to disable libkmod?

If not, you will need to compile libkmod.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Rich on January 04, 2023, 09:18:49 AM
Hi qingquan
... Run-time dependency libkmod found: NO (tried pkgconfig) ...
According to this:
http://tinycorelinux.net/12.x/x86_64/tcz/kmod.tcz.list
libkmod  is provided by  kmod.tcz.
Based on the run-time error message that should fix the error.
If not, then install  kmod-dev.tcz.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 10:04:57 AM
hi Rich
hi Juanito
Thanks for your reply. “kmod.tcz,kmod-dev.tcz", It works really well,pass
now:
 Run-time dependency mount found:NO (tried pkgconfig)
 meson.build:86.0: ERROR:Dependency "mount" not found,tried pkgconfig
I tried installing pkg-config.tcz ,But it didn't work

Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 04, 2023, 10:15:07 AM
Libmount is provided by util-linux, you’ll also need util-linux-dev.

You can use the apps gui provides functionality to search for which extension provides what.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Rich on January 04, 2023, 10:15:20 AM
Hi qingquan
See if installing  util-linux-dev.tcz  helps.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 10:36:02 AM
hi Rich
hi Juanito
"util-linux-dev.tcz" is ok
Your familiarity with the library is amazing!
now:
 Run-time dependency libsystemd found:NO (tried pkgconfig)
 meson.build:86.0: ERROR:Dependency "libsystemd" not found,tried pkgconfig
thank you!

Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 04, 2023, 10:48:58 AM
From meson_options.txt:
Code: [Select]
option('no_systemd', type: 'boolean', value: false,
  description: 'Do not use systemd')

..so use "CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" meson --prefix=/usr/local --localstatedir=/var --buildtype=plain -Dno_systemd -Dblah -Dblah"
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Rich on January 04, 2023, 10:52:31 AM
Hi qingquan
Tinycore does not use  systemd.  The  elogind-dev.tcz  package includes
a  libsystemd.pc (package config)  but I don't know if that's good enough.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 11:03:15 AM
"elogind-dev.tcx"  pass ...
Very good!
Thank you, Rich.
I'll try Juanito method sometime, thanks.
You are my role model, I will continue to work hard!
I'm going to rest. COVID-19 is bad.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 08:07:58 PM
meson.build:114:2:ERROR:could not execute command /mnt/sdb1/iscsi/open-iscsi-2.1.8/libopeniscsiusr/docs/list-man-pages.sh
/mnt/sdb1/iscsi/open-iscsi-2.1.8/libopeniscsiusr/libopeniscsiusr/libopeniscsiusr.h

These two files are real,
Environment variables were added.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 09:19:24 PM
meson.build:114:2:ERROR:could not execute command /mnt/sdb1/iscsi/open-iscsi-2.1.8/libopeniscsiusr/docs/list-man-pages.sh
/mnt/sdb1/iscsi/open-iscsi-2.1.8/libopeniscsiusr/libopeniscsiusr/libopeniscsiusr.h

These two files are real,
Environment variables were added.

Trying to modify the default shell, find a post:
http://forum.tinycorelinux.net/index.php/topic,11338.msg59504.html#msg59504
"bash.tcz"  pass
new problem:
meson.build:184:0: ERROR: C shared or static library 'isns' not found
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Rich on January 04, 2023, 09:26:53 PM
Hi qingquan
list-man-pages.sh  is a  bash  script. Install  bash.tcz.
You should not need to modify the default shell.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 04, 2023, 10:10:15 PM
Hi Rich
Correct answer:list-man-pages.sh  is a  bash  script. Install  bash.tcz.

new problem:
meson.build:184:0: ERROR: C shared or static library 'isns' not found
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Rich on January 04, 2023, 10:41:57 PM
Hi qingquan
I think you need to build that yourself.
Go here:
https://github.com/open-iscsi/open-iscsi
Read this section:
Quote
3. Installation
===============

NOTE:   You will need to be root to install the Open-iSCSI code, and
   you will also need to be root to run it.

As of today, the Open-iSCSI Initiator requires a host running the
Linux operating system with kernel.

The userspace components iscsid, iscsiadm and iscsistart require the
open-isns library.

If this package is not available for your distribution, you can download
and install it yourself.  To install the open-isns headers and library
required for Open-iSCSI, download the current release from:

   https://github.com/open-iscsi/open-isns
 ...
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 05, 2023, 12:42:16 AM
The first thing you do:
And there are no mistakes

cd open-isns-0.102
sudo./configure
make install
Still appear :meson.build:184:0: ERROR: C shared or static library 'isns' not found


Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 05, 2023, 04:12:32 AM
Did you try building isns with meson instead of autotools (configure, make)?
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 05, 2023, 04:40:28 AM
Start over with the original TinyCorePure64-12.0

tce-load -iw compiletc.tcz
tce-load -iw tpm2-tss-dev.tcz
tce-load -iw curl-dev.tcz
tce-load -iw meson.tcz
tce-load -iw cmake.tcz
tce-load -iw kmod-dev.tcz
tce-load -iw util-linux-dev.tcz
tce-load -iw elogind-dev.tcz
tce-load -iw bash.tcz

tar -xvf open-isns-0.102.tar.gz
cd open-isns-0.102
sudo ./configure
sudo meson.build

Library slp found:NO
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 05, 2023, 05:13:30 AM
You have to either use configure or meson, you should not use both.

Also, only use sudo with make install.

It looks like you might need to compile openslp.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 05, 2023, 05:43:31 AM
Start over with the original TinyCorePure64-12.0

tce-load -iw compiletc.tcz
tce-load -iw tpm2-tss-dev.tcz
tce-load -iw curl-dev.tcz
tce-load -iw meson.tcz
tce-load -iw cmake.tcz
tce-load -iw kmod-dev.tcz
tce-load -iw util-linux-dev.tcz
tce-load -iw elogind-dev.tcz
tce-load -iw bash.tcz

tar -xvf open-isns-0.102.tar.gz
cd open-isns-0.102
sudo ./configure
sudo meson.build

Library slp found:NO
---------------------------------
Start over with the original TinyCorePure64-12.0

tce-load -iw compiletc.tcz
tce-load -iw tpm2-tss-dev.tcz
tce-load -iw curl-dev.tcz
tce-load -iw meson.tcz
tce-load -iw cmake.tcz
tce-load -iw kmod-dev.tcz
tce-load -iw util-linux-dev.tcz
tce-load -iw elogind-dev.tcz
tce-load -iw bash.tcz

tar -xvf open-isns-0.102.tar.gz
cd open-isns-0.102
sudo./configure
sudo make install

no Error ,but "open-iscsi" meson.build:184:0: ERROR: C shared or static library 'isns' not found
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: Juanito on January 05, 2023, 06:29:21 AM
You need to compile this: https://sourceforge.net/projects/openslp/ - openslp-2.0.0

Note that when configuring open-isns with meson, it completes successfully, but does not create a Makefile, so use configure instead.
Title: Re: meson,build:84:0: ERROR: Dependency "libkmod" not found
Post by: qingquan on January 05, 2023, 01:15:15 PM
TinyCorePure64-12.0:
https://github.com/open-iscsi/open-isns/releases
https://github.com/open-iscsi/open-iscsi/releases

tce-load -iw compiletc.tcz
tce-load -iw tpm2-tss-dev.tcz
tce-load -iw curl-dev.tcz
tce-load -iw meson.tcz
tce-load -iw cmake.tcz
tce-load -iw kmod-dev.tcz
tce-load -iw util-linux-dev.tcz
tce-load -iw elogind-dev.tcz
tce-load -iw bash.tcz
tce-load -iw perl5.tcz

compile open-isns-0.102:
tar -xvf open-isns-0.102.tar.gz
cd open-isns-0.102
sudo meson  build
sudo ninja -C build
sudo ninja -C build install

compile open-iscsi-2.1.8:
tar -xvf open-iscsi-2.1.8.tar.gz
cd open-iscsi-2.1.8
sudo meson builddir
sudo ninja -C builddir
sudo ninja -C builddir install
-------------------pass--------------
Thank you very much Rich,Juanito

Hi Rich
ERROR:Library "slp" found:NO
need to install that tcz?