Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
    
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 '13 at 10:10

1 Answer 1

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.

share|improve this answer
    
Isn't the last "64-bit" supposed to be 32-bit? –  the_Seppi Mar 7 at 9:41
    
Thanks! I hope now is more clear. –  Denis Štogl Mar 7 at 20:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.