4

I was trying to install a library named htk.

After downloading and extracting the source files, I run

sudo  LDFLAGS="-L /usr/lib/x86_64-linux-gnu" ./configure  

under the root directory of htk.Then I typed

sudo make all 

and got this error:

a - HModel.o
a - HNet.o
a - HParm.o
a - HRec.o
a - HShell.o
a - HSigP.o
a - HTrain.o
a - HUtil.o
a - HVQ.o
a - HWave.o
a - strarr.o
ranlib HTKLib.a
make[1]: Leaving directory `/home/rosfuerte/Desktop/hw2_1/htk/HTKLib'
(cd HTKTools && make all) \
      || case "" in *k*) fail=yes;; *) exit 1;; esac;
make[1]: Entering directory `/home/rosfuerte/Desktop/hw2_1/htk/HTKTools'
if [ ! -d /usr/local/bin -a X_ = X_yes ] ; then mkdir -p /usr/local/bin ; fi
if [ xHSLab = xHSLab ] ; then \
        gcc -o HSLab -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -DPHNALG HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -L /usr/lib/x86_64-linux-gnu -lm -lX11 ; \
        else \
        gcc -o HSLab -m32 -ansi -D_SVID_SOURCE -DOSS_AUDIO -D'ARCH="x86_64"' -Wall -Wno-switch -g -O2 -I../HTKLib -DPHNALG HSLab.c ../HTKLib/HTKLib.a -L/usr/X11R6/lib -L /usr/lib/x86_64-linux-gnu -lm ; fi
HSLab.c: In function 「FileExists」:
HSLab.c:1209:12: Warning: variable 「isEXF」 set but not used [-Wunused-but-set-variable]
HSLab.c: In function 「DoSpecial」:
HSLab.c:1596:13: Warning: ignoring return value of 「system」, declared with attribute warn_unused_result [-Wunused-result]
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.so when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libm.a when searching for -lm
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.so when searching for -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libX11.a when searching for -lX11
/usr/bin/ld: cannot find -lX11
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc
collect2: ld returned 1
make[1]: *** [HSLab] Error 1
make[1]: Leaving directory `/home/rosfuerte/Desktop/hw2_1/htk/HTKTools'
make: *** [htktools] Error 1

Does anyone know how to solve this problem?

Thanks in advance.

1
  • How you solved this error ? I am getting skipping incompatible ../../../libs//libperl.so when searching for -lperl on 64 bit Ubuntu 13.04.. Please help
    – Amit
    Aug 8, 2013 at 10:10

1 Answer 1

3

It seams that you are trying to link 32-bits libraries on 64-bits system and compile programs as 64-bits. The easiest solution is that you use 64-bits libraries (recompile them) or use 32-bit system.

1
  • Isn't the last "64-bit" supposed to be 32-bit?
    – s3lph
    Mar 7, 2014 at 9:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .