<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
On Jun 8, 2024, at 08:14, Apostolis Stamatis via lustre-discuss <lustre-discuss@lists.lustre.org> wrote:<br>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<blockquote type="cite"></blockquote>
</div>
</div>
</blockquote>
<div dir="ltr">
<div dir="ltr">
<blockquote type="cite"><br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr"><span>Hello everyone,</span><br>
<span></span><br>
<span>I am trying to use the C api for lustre, using Ubuntu 22.04, kernel version 5.15.0-107 and lustre client modules version 2.15.4</span><br>
<span>I am building lustre from source with the following steps (removed some junk like git clone and cd) (mainly from the guide https://metebalci.com/blog/lustre-2.15.4-on-rhel-8.9-and-ubuntu-22.04/)</span><br>
</div>
</blockquote>
<div><br>
</div>
<div>It would be great to copy this page to wiki.lustre.org. It is a bit ironic that this page is mentioning that the wiki is outdated, but then proceeds to not update the wiki with new content...</div>
<br>
<blockquote type="cite">
<div dir="ltr"><span>```</span><br>
<span>sudo apt install build-essential libtool pkg-config flex bison libpython3-dev libmount-dev libaio-dev libssl-dev libnl-genl-3-dev libkeyutils-dev libyaml-dev libreadline-dev module-assistant debhelper dpatch libsnmp-dev mpi-default-dev quilt swig</span><br>
<span>sh autogen.sh</span><br>
<span>./configure --disable-server</span><br>
<span>make dkms-debs</span><br>
<span>sudo dpkg -i debs/lustre-client-modules-dkms_2.15.4-1_amd64.deb</span><br>
<span>sudo apt --fix-broken install</span><br>
<span>sudo dpkg -i debs/lustre-client-utils_2.15.4-1_amd64.deb</span><br>
<span>```</span></div>
</blockquote>
<div><br>
<blockquote type="cite">
<div dir="ltr"><span>The client works as expected and can mount and modify the filesystem.</span><br>
<span>However when I try to compile the sample program using gcc v 11.4.0 with the command</span><br>
<span>`gcc -I/usr/src/lustre-client-modules-2.15.4/lustre/include -I/usr/src/lustre-client-modules-2.15.4/lustre/include/uapi/ -I/usr/src/lustre-client-modules-2.15.4/lustre/include/lustre -llustreapi test_file.c -o test`</span><br>
<span>I get the error `/usr/bin/ld: cannot find -llustreapi: No such file or directory`</span><br>
<span></span><br>
<span>After trying to find the lustreapi library manually, indeed I can't seem to find it anywhere</span><br>
</div>
</blockquote>
<div><br>
</div>
According to the most recent build on the b2_15 branch on Ununtu 22.04  <a href="https://build.whamcloud.com/job/lustre-b2_15/87/arch=x86_64,build_type=client,distro=ubuntu2204,ib_stack=inkernel/">https://build.whamcloud.com/job/lustre-b2_15/87/arch=x86_64,build_type=client,distro=ubuntu2204,ib_stack=inkernel/</a>
<div><br>
</div>
<div>There is a "lustre-dev" package built, and it looks like that this would contain the library files, "This package provides development libraries for the Lustre filesystem."</div>
<div><br>
</div>
<div>Cheers, Andreas</div>
</div>
</div>
<blockquote type="cite">
<div dir="ltr">
<div>
<blockquote type="cite">
<div dir="ltr"><span></span></div>
</blockquote>
</div>
</div>
</blockquote>
</body>
</html>