Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Configure #419

Open
m00nglum opened this issue Aug 4, 2023 · 4 comments
Open

Cannot Configure #419

m00nglum opened this issue Aug 4, 2023 · 4 comments

Comments

@m00nglum
Copy link

m00nglum commented Aug 4, 2023

Describe the bug
Trying to compile on a Debian 12.1 system. I'm following the instructions in the README.md, but every time I do a "./configure" it bombs out. It failes on icu >=0.21

To Reproduce
Steps to reproduce the behavior:

  1. Unpack the tarball or clone the source (I happen to be using ltfs-2.4.5.0-10502)
  2. cd into the new directory and do the ./autogen.sh
  3. Once the above completes, do ./configure
  4. Watch it bomb-out like so::
    checking pkg-config is at least version 0.9.0... yes
    checking for fuse >= 2.6.0... yes
    checking for libxml-2.0 >= 2.6.16... yes
    checking for uuid >= 1.36... yes
    checking for pthread_create in -lpthread... yes
    checking for clock_gettime in -lrt... yes
    checking for icu >= 0.21... no
    configure: error: Package requirements (icu >= 0.21) were not met:

Expected behavior
I expected it to configure appropriately. I do have the following installed:
icu-devtools
libicu-dev:amd64
libicu72:amd64

Screenshots
If applicable, add screenshots to help explain your problem.
image

** (please complete the following information):**

  • Debian 12.1

I have tried the suggestions here:
https://www.linuxquestions.org/questions/linux-software-2/compiling-quantum-ltfs-software-on-debian-894103/page2.html

but I didn't gain any insights. I've tried setting the PKG_CONFIG_PATH variable to the fully qualified path where I'm attempting my compile, but that didn't help either. I would set the ICU_MODULE_LIBS variable... but I don't have a clue on what to set that to... and I"m not convinced it would help anyway. What am I missing?

Thanks.

@piste-jp-ibm
Copy link
Member

They are not listed on https://github.com/LinearTapeFileSystem/ltfs#buildable-linux-distributions.

So, it's not a surprise to me.

@m00nglum
Copy link
Author

m00nglum commented Nov 7, 2023

@piste-jp-ibm Yes, those two versions of debian are 2 and 3 revisions behind current.

@MaZe3D
Copy link

MaZe3D commented Apr 18, 2024

I found a solution that worked for me.
Because of some reason you need to create the file /usr/bin/icu-config:

#!/bin/sh

opts=$1

case $opts in
  '--cppflags')
    echo '' ;;
  '--ldflags')
    echo '-licuuc -licudata' ;;
  *)
    echo '/usr/lib/x86_64-linux-gnu/icu/pkgdata.inc' ;;
esac

This is also done in the Debian 10 test build environment and worked for me. After installing all missing packages, I was able to configure, make and make install successfully.

I hope this helps.

@m00nglum
Copy link
Author

Holy capacoli batman!

That did it! Thanks MaZe. You are the bomb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants