LinearTapeFileSystem / ltfs

Reference implementation of the LTFS format Spec for stand alone tape drive
BSD 3-Clause "New" or "Revised" License
246 stars 73 forks source link

Cannot Configure #419

Closed m00nglum closed 3 months ago

m00nglum commented 1 year ago

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):

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 commented 10 months ago

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

So, it's not a surprise to me.

m00nglum commented 10 months ago

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

MaZe3D commented 5 months ago

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 commented 5 months ago

Holy capacoli batman!

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

piste-jp commented 3 months ago

Close this because there is no activity long time.

Please feel free to reopen if something new is found.