Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started 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!
-
Is there a meson build option to disable libkmod?
If not, you will need to compile libkmod.
-
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.
-
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
-
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.
-
Hi qingquan
See if installing util-linux-dev.tcz helps.
-
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!
-
From meson_options.txt:
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"
-
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.
-
"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.
-
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.
-
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
-
Hi qingquan
list-man-pages.sh is a bash script. Install bash.tcz.
You should not need to modify the default shell.
-
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
-
Hi qingquan
I think you need to build that yourself.
Go here:
https://github.com/open-iscsi/open-iscsi
Read this section:
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
...
-
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
-
Did you try building isns with meson instead of autotools (configure, make)?
-
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
-
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.
-
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
-
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.
-
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?